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.

protocol Anthropic & the MCP community Links verified 2026-06-02

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

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