AI agent Lightning payments: L402, invoices, wallets, API discovery, budgets, self-serve signup.
registry version 2.3.1
nuget
LightningEnable.McpPython
uvx lightning-enable-mcpPython
uvx lightning-enable-mcp@2.3.1Docker
docker run -i --rm docker.io/refinedelement/lightning-enable-mcp:2.3.1
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}{
"mcpServers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp@2.3.1"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env STRIKE_API_KEY=<YOUR_STRIKE_API_KEY> --env NWC_CONNECTION_STRING=<YOUR_NWC_CONNECTION_STRING> --env LND_MACAROON_HEX=<YOUR_LND_MACAROON_HEX> --env OPENNODE_API_KEY=<YOUR_OPENNODE_API_KEY> --env LIGHTNING_ENABLE_API_KEY=<YOUR_LIGHTNING_ENABLE_API_KEY> lightning-enable-mcp -- uvx lightning-enable-mcp
claude mcp add --env STRIKE_API_KEY=<YOUR_STRIKE_API_KEY> --env NWC_CONNECTION_STRING=<YOUR_NWC_CONNECTION_STRING> --env LND_MACAROON_HEX=<YOUR_LND_MACAROON_HEX> --env OPENNODE_API_KEY=<YOUR_OPENNODE_API_KEY> --env LIGHTNING_ENABLE_API_KEY=<YOUR_LIGHTNING_ENABLE_API_KEY> lightning-enable-mcp -- uvx lightning-enable-mcp@2.3.1
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}{
"mcpServers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp@2.3.1"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}{
"servers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp@2.3.1"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}{
"mcpServers": {
"lightning-enable-mcp": {
"command": "uvx",
"args": [
"lightning-enable-mcp@2.3.1"
],
"env": {
"STRIKE_API_KEY": "<YOUR_STRIKE_API_KEY>",
"NWC_CONNECTION_STRING": "<YOUR_NWC_CONNECTION_STRING>",
"LND_MACAROON_HEX": "<YOUR_LND_MACAROON_HEX>",
"OPENNODE_API_KEY": "<YOUR_OPENNODE_API_KEY>",
"LIGHTNING_ENABLE_API_KEY": "<YOUR_LIGHTNING_ENABLE_API_KEY>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
STRIKE_API_KEY secret — Strike API key for Lightning payments (recommended wallet)NWC_CONNECTION_STRING secret — Nostr Wallet Connect URI (for NWC wallets like CoinOS, CLINK, Alby Hub)LND_REST_HOST — LND REST API host (e.g., localhost:8080)LND_MACAROON_HEX secret — LND admin macaroon in hex formatOPENNODE_API_KEY secret — OpenNode API key (direct payments only, no L402 support)OPENNODE_ENVIRONMENT — OpenNode environment: production or dev (testnet)LIGHTNING_ENABLE_API_KEY secret — Lightning Enable API key (unlocks producer + ASA tools). Optional: no key? The create_lightning_enable_account tool self-provisions one for ~100 sats over Lightning — no card, no subscription required.LIGHTNING_ENABLE_TOOL_PROFILE — How many tools to advertise: lite (the wallet-setup and spend/read basics), standard (default), or full (adds the deprecated legacy names), or full (adds the pre-consolidation tool names).⭐ 9 stars · 最近更新于 39 天前 · MIT license
Distributed as nuget, Python, Docker, listed under Web APIs. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/refined-element/lightning-enable-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/lightning-enable-mcp/)
HTML
<a href="https://mcpnav.net/server/lightning-enable-mcp/"><img src="https://mcpnav.net/badge/lightning-enable-mcp.svg" alt="Listed on MCPNav" height="20"></a>