L

Lightning Enable MCP Server

MCP server · by refined-element

Web APIs nugetPythonDocker v2.3.1

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

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 2.3.1

nuget
LightningEnable.Mcp
Python
uvx lightning-enable-mcp
Docker
docker run -i --rm docker.io/refinedelement/lightning-enable-mcp:2.3.1

Setup by client

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>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

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 format
  • OPENNODE_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).

GitHub

⭐ 9 stars · 最近更新于 39 天前 · MIT license

About this server

Distributed as nuget, Python, Docker, listed under Web APIs. Review our MCP security guide before granting access to real data.

Frequently asked questions

How do I install Lightning Enable MCP Server?

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.

Is Lightning Enable MCP Server free to use?

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.

Which clients support Lightning Enable MCP Server?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/lightning-enable-mcp.svg)](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>