Deploy and manage Lightning Network infrastructure with container-first tools for running litd nodes, remote signer security, L402 payment-gated APIs, scoped macaroon credentials, and MCP server integration for AI agent connectivity.
Install and run Aperture, the L402 Lightning reverse proxy from Lightning Labs. Use when creating L402 paywalls, configuring paid API endpoints, hosting paid content for other agents, or testing L402 authentication flows.
End-to-end agentic commerce workflow using Lightning Network. Use when an agent needs to set up a full payment stack (lnd + lnget + aperture), buy or sell data via L402, or enable agent-to-agent micropayments.
Build and configure the MCP server for Lightning Node Connect (LNC). Connects AI assistants to lnd nodes via encrypted WebSocket tunnels using pairing phrases — no direct network access or TLS certs needed. Read-only by default (18 tools for querying node state, channels, payments, invoices, peers, on-chain data).
Set up an lnd remote signer container that holds private keys separately from the agent. Exports a credentials bundle (accounts JSON, TLS cert, admin macaroon) for watch-only litd nodes. Container-first with Docker, native fallback. Use when firewalling private key material from AI agents.
Reference for litd (Lightning Terminal) gRPC API in Go: managing accounts, baking macaroons, listing payments, and creating LNC sessions.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
AI agents can read documentation, write code, and orchestrate complex workflows, but they can't easily pay for things. Traditional payment rails require government IDs, bank accounts, and manual enrollment, none of which work for autonomous software. Lightning Agent Tools bridges this gap by giving agents native access to the Lightning Network, a decentralized payment protocol capable of instant, high-volume transactions with no identity requirements.
The toolkit consists of seven composable skills and an MCP server. Together they let an agent run a Lightning node, pay for resources on the web using the L402 protocol, host its own paid API endpoints, manage scoped credentials, and query node state through the Model Context Protocol. The skills work with any agent framework that can execute shell commands: Claude Code, Codex, or your own tooling. The MCP server follows the Model Context Protocol standard and works with any compatible client. The security model defaults to a remote signer architecture that keeps private keys on a separate machine, away from the agent's runtime environment.
MCP server (zero-install, any MCP client):
claude mcp add --transport stdio lnc -- npx -y @lightninglabs/lightning-mcp-server
Full plugin (all 7 skills via Claude Code):
claude plugin marketplace add lightninglabs/lightning-agent-tools
claude plugin install lightning-agent-tools@lightninglabs
From source (requires Go 1.24+):
git clone https://github.com/lightninglabs/lightning-agent-tools.git
cd lightning-agent-tools
skills/lightning-mcp-server/scripts/install.sh
skills/lightning-mcp-server/scripts/configure.sh --production
skills/lightning-mcp-server/scripts/setup-claude-config.sh --scope project
See Quick Start below for detailed setup options including environment variables, regtest mode, and the full commerce stack.
graph TD
CC["Your Agent"] --> Skills
subgraph Skills["Skills"]
lnd["lnd<br/><i>run a Lightning node</i>"]
lsm["lightning-security-module<br/><i>remote signer</i>"]
mb["macaroon-bakery<br/><i>scoped credentials</i>"]
lg["lnget<br/><i>L402 HTTP client</i>"]
ap["aperture<br/><i>L402 reverse proxy</i>"]
mcp["lightning-mcp-server<br/><i>MCP server</i>"]
com["commerce<br/><i>buyer/seller workflows</i>"]
end
subgraph Runtime["Daemons & Tools"]
lnd_d["lnd daemon"]
signer_d["lnd signer"]
aperture_d["aperture proxy"]
lnget_d["lnget CLI"]
mcp_d["lightning-mcp-server"]
end
lnd --> lnd_d
lsm --> signer_d
lg --> lnget_d
ap --> aperture_d
mcp --> mcp_d
lnd_d <-->|"remote signing"| signer_d
lnget_d -->|"pays invoices"| lnd_d
aperture_d -->|"generates invoices"| lnd_d
mcp_d <-->|"LNC tunnel"| lnd_d
com -.-> lnd
com -.-> lg
com -.-> ap
The skills break down into three functional groups:
Payment infrastructure. The lnd skill runs a Lightning node using the
Neutrino light client (no full Bitcoin node required) with SQLite storage. The
lightning-security-module sets up a remote signer to hold private keys on a
separate machine. The macaroon-bakery bakes least-privilege credentials so
agents only get the permissions they need.
Commerce. The lnget skill installs a command-line HTTP client that handles
L402 payments automatically. When it hits a 402 response, it pays the embedded
Lightning invoice, caches the token, and retries. The aperture skill runs an
L402 reverse proxy that gates access to a backend service behind Lightning
invoices. The commerce skill ties these together into buyer and seller
workflows.
Node access. The lightning-mcp-server skill builds and configures an MCP server that
connects to a Lightning node via Lightning Node Connect (encrypted WebSocket
tunnels, pairing-phrase auth, no stored credentials). It exposes 18 read-only
tools for querying node state and works with any MCP-compatible client.
claude mcp addRegister the MCP server with Claude Code in one command — no Go toolchain or git clone required:
claude mcp add --transport stdio lnc -- npx -y @lightninglabs/lightning-mcp-server
With a specific mailbox server:
claude mcp add --transport stdio \
--env LNC_MAILBOX_SERVER=mailbox.terminal.lightning.today:443 \
lnc -- npx -y @lightninglabs/lightning-mcp-server
For development/regtest:
npx claudepluginhub lightninglabs/lightning-agent-tools --plugin lightning-agent-toolsClaude Code bridge for the existing AgentLayer wallet runtime. Connects to Solana, Bitcoin, and EVM wallets without creating a new one.
Claude Code skill pack for QuickNode (18 skills)
On-chain AI skills via x402 micropayments on Base
Expert subagent and skills for implementing the Machine Payments Protocol (MPP) — the open standard co-authored by Stripe and Tempo Labs for HTTP 402-based machine-to-machine payments, enabling AI agents to pay for API calls, data, and services autonomously.
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.