Lightning Enable MCP Server
v2.4.0AI agent Lightning payments: L402, invoices, wallets, API discovery, budgets, self-serve signup.
Values you need
| Variable | What it is | |
|---|---|---|
STRIKE_API_KEY | optional secret | Strike API key for Lightning payments (recommended wallet) |
NWC_CONNECTION_STRING | optional secret | Nostr Wallet Connect URI (for NWC wallets like CoinOS, CLINK, Alby Hub) |
LND_REST_HOST | optional | LND REST API host (e.g., localhost:8080) |
LND_MACAROON_HEX | optional secret | LND admin macaroon in hex format |
OPENNODE_API_KEY | optional secret | OpenNode API key (direct payments only, no L402 support) |
OPENNODE_ENVIRONMENT | optional | OpenNode environment: production or dev (testnet) Default: production |
LIGHTNING_ENABLE_API_KEY | optional 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 | optional | 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_URL | optional | 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.0Add 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: setup_wallet, access_l402_resource, pay_invoice, pay_l402_challenge, test_l402_payment, get_balance, budget, receipts, ….
- 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