Tools · Agent-integration primitives
Model Context Protocol (MCP)
The open standard for giving agents structured access to tools and data — the rail a Lightning payment server plugs into so an agent can pay from inside its workflow.
What it is
The Model Context Protocol is an open standard for connecting AI applications to external systems — data sources, tools, and workflows — through a uniform interface. Think of it as a USB-C port for agents. It matters for the Bitcoin stack because payments plug in as just another set of tools: a Lightning MCP server exposes node operations (pay, invoice, balance, channels) to the agent as callable tools, so an agent can transact from inside Claude, Cursor, or n8n without bespoke integration code.
MCP is the connective tissue; the Lightning MCP servers are what make payments a first-class agent capability.
When to use it
- Exposing Lightning operations to an MCP-capable agent as structured tools.
- Standardizing how an agent reaches payment infrastructure (and everything else) through one interface.
- Building once and integrating across many clients (Claude, ChatGPT, VS Code, Cursor).
Quick start
Pair MCP with a payments server. Two on-stack options: lightning-mcp-server (part of lightning-agent-tools) and Alby’s nwc-mcp-server (see Alby & NWC). Example — add a Lightning Node Connect-backed node to Claude Code:
claude mcp add --transport stdio lnc -- npx -y @lightninglabs/lightning-mcp-server
Build your own servers and clients from the docs at modelcontextprotocol.io/docs.
Gotchas
- MCP itself is transport and tooling, not payments — it carries no money. Pair it with a Lightning MCP server to actually transact.
- Tools an agent can call are capabilities it can be tricked into using — scope server permissions tightly (read-only by default; mutating/payment tools behind deliberate, budgeted credentials).
- The spec is evolving quickly; pin to a known spec/SDK version.