Lightning Enable MCP Server

v2.4.0
io.github.refined-element/lightning-enable-mcp Checked 1 day ago Published 19 days ago

AI agent Lightning payments: L402, invoices, wallets, API discovery, budgets, self-serve signup.

Values you need

VariableWhat it is
STRIKE_API_KEYoptional secret Strike API key for Lightning payments (recommended wallet)
NWC_CONNECTION_STRINGoptional secret Nostr Wallet Connect URI (for NWC wallets like CoinOS, CLINK, Alby Hub)
LND_REST_HOSToptional LND REST API host (e.g., localhost:8080)
LND_MACAROON_HEXoptional secret LND admin macaroon in hex format
OPENNODE_API_KEYoptional secret OpenNode API key (direct payments only, no L402 support)
OPENNODE_ENVIRONMENToptional OpenNode environment: production or dev (testnet) Default: production
LIGHTNING_ENABLE_API_KEYoptional 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_PROFILEoptional 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). Default: standard
AGENT_RELAY_URLoptional Nostr relay URL for agent events (default: wss://agents.lightningenable.com) Default: wss://agents.lightningenable.com

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add lightning-enable-mcp -- uvx lightning-enable-mcp==2.4.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "args": [
        "lightning-enable-mcp==2.4.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "args": [
        "lightning-enable-mcp==2.4.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "lightning-enable-mcp": {
      "args": [
        "lightning-enable-mcp==2.4.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.lightning-enable-mcp]
command = "uvx"
args = ["lightning-enable-mcp==2.4.0"]

Docker

Requires Docker

Run in a terminal
claude mcp add lightning-enable-mcp -- docker run -i --rm docker.io/refinedelement/lightning-enable-mcp:2.4.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/refinedelement/lightning-enable-mcp:2.4.0"
      ],
      "command": "docker"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/refinedelement/lightning-enable-mcp:2.4.0"
      ],
      "command": "docker"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "lightning-enable-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/refinedelement/lightning-enable-mcp:2.4.0"
      ],
      "command": "docker",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.lightning-enable-mcp]
command = "docker"
args = ["run", "-i", "--rm", "docker.io/refinedelement/lightning-enable-mcp:2.4.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: setup_wallet, access_l402_resource, pay_invoice, pay_l402_challenge, test_l402_payment, get_balance, budget, receipts, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json