Lightning Enable MCP - Complete Guide
The Lightning Enable MCP (Model Context Protocol) server lets an AI agent pay, receive, and sell over Lightning. It is free and open source (MIT). This page is the full reference for its tools, configuration, and spending controls. For a 3-minute setup, see MCP Quick Start; for wallet-specific steps, see Wallet Configuration.
The MCP server is fully open source: github.com/refined-element/lightning-enable-mcp. Available on NuGet, PyPI, and Docker.
Overview
┌──────────────────────────────────────────────────────────────────────────┐
│ Lightning Enable MCP │
├──────────────────────────────────────────────────────────────────────────┤
│ AI Agent (Claude, etc.) │
│ ↓ │
│ MCP Server (wallet priority: LND > NWC > Strike > OpenNode) │
│ ↓ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────── ┐ │
│ │ LND │ │ NWC │ │ Strike │ │ OpenNode │ │
│ │ Wallet │ │ Wallet │ │ Wallet │ │ Wallet │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
│ ↓ ↓ ↓ ↓ │
│ Lightning Network │
└──────────────────────────────────────────────────────────────────────────┘
Wallet Priority: When multiple wallets are configured, the MCP server selects them in order: LND > NWC > Strike > OpenNode. This order is optimized for L402 compatibility (LND and NWC always return preimages). Override with the WALLET_PRIORITY environment variable or the priority field in your config file.
Installation
.NET (Windows, Linux, macOS)
dotnet tool install -g LightningEnable.Mcp
Python (All Platforms)
pip install lightning-enable-mcp
Or use uvx for no-install execution:
uvx lightning-enable-mcp
The base Python install supports NWC wallets on every platform, including Windows, with no build toolchain. The old pip install lightning-enable-mcp[nwc] still works, but the [nwc] extra adds nothing.
Updating
To update an existing install (docs needs 2.2.0 or later; renew_lightning_enable_subscription needs 2.1.0 or later):
dotnet tool update -g LightningEnable.Mcp # .NET
pip install --upgrade lightning-enable-mcp # Python
uvx --refresh lightning-enable-mcp # Python with uvx
Quick Start
Claude Code users: register the server with claude mcp add --transport stdio lightning-enable --env STRIKE_API_KEY=your-key -- lightning-enable-mcp (or a project .mcp.json) — see Claude Code Setup. Claude Code does not read claude_desktop_config.json.
Claude Desktop users: add to your Claude Desktop config:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"lightning-enable": {
"command": "lightning-enable-mcp",
"env": {
"STRIKE_API_KEY": "your-strike-api-key"
}
}
}
}
All Available Tools
Tool Profiles
The MCP server ships three tool profiles, selected once at startup with LIGHTNING_ENABLE_TOOL_PROFILE:
export LIGHTNING_ENABLE_TOOL_PROFILE=standard # default — omit this line to get the same result
| Profile | Surface | Use it when |
|---|---|---|
lite | Pay, check the wallet, budget, receipts, wallet setup | You want the smallest possible footprint — an agent that can pay and check its own wallet, and nothing else. |
standard (default) | Every current tool (listed below) | The current, canonical surface. Everything the server can do, addressed through a small number of action-based tools instead of one tool per operation. |
full | standard plus every pre-consolidation name, listed as a deprecated alias | Your agent discovers tools from the server's listing and its prompts use the old per-operation names (configure_budget, create_l402_challenge, …). Aliases forward to the consolidated tools and are removed in v3.0.0, so migrate when you can. |
Profiles change only what the server lists. Every tool and every deprecated alias stays callable by name under every profile, so a narrower profile never breaks a call that names a tool directly; it only keeps that tool's schema out of the agent's context.
lite: pay_invoice, access_l402_resource, get_balance, budget, receipts, setup_wallet
standard (default): access_l402_resource, pay_invoice, pay_l402_challenge, test_l402_payment, get_balance, budget, receipts, create_invoice, check_invoice_status, verify_confirmation_code, discover_api, docs, create_lightning_enable_account, renew_lightning_enable_subscription, setup_wallet, wallet_ops, l402_producer, agent_services
renew_lightning_enable_subscription pays for Agentic Commerce in sats (30 days over L402, at the price GET /api/merchant/subscription/renew quotes) using your merchant API key and connected wallet; it requires MCP 2.1.0 or later. See Renew in sats.
docs searches and reads this documentation site from inside the MCP server, so an agent without web access can look things up. It requires MCP 2.2.0 or later. See docs.
These lists mirror the server's own guard tests. The server's tool listing is authoritative for the version you have installed.
Tool Availability by Wallet
| Tool | Strike | OpenNode | LND | NWC (CoinOS/CLINK) | NWC (Alby) | NWC (Primal) | API key |
|---|---|---|---|---|---|---|---|
pay_invoice | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | No |
access_l402_resource | ✅ | ❌ | ✅ |