Skip to content
VS Code

Lightning Enable MCP Server for VS Code

io.github.refined-element/lightning-enable-mcp

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

client:VS Code transport:stdio runtime:nuget

Install Lightning Enable MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "strike-api-key",
      "description": "STRIKE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nwc-connection-string",
      "description": "NWC_CONNECTION_STRING",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lnd-rest-host",
      "description": "LND_REST_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lnd-macaroon-hex",
      "description": "LND_MACAROON_HEX",
      "password": true
    },
    {
      "type": "promptString",
      "id": "opennode-api-key",
      "description": "OPENNODE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "opennode-environment",
      "description": "OPENNODE_ENVIRONMENT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lightning-enable-api-key",
      "description": "LIGHTNING_ENABLE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lightning-enable-tool-profile",
      "description": "LIGHTNING_ENABLE_TOOL_PROFILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agent-relay-url",
      "description": "AGENT_RELAY_URL",
      "password": true
    }
  ],
  "servers": {
    "lightning-enable-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "LightningEnable.Mcp",
        "--yes"
      ],
      "env": {
        "STRIKE_API_KEY": "${input:strike-api-key}",
        "NWC_CONNECTION_STRING": "${input:nwc-connection-string}",
        "LND_REST_HOST": "${input:lnd-rest-host}",
        "LND_MACAROON_HEX": "${input:lnd-macaroon-hex}",
        "OPENNODE_API_KEY": "${input:opennode-api-key}",
        "OPENNODE_ENVIRONMENT": "${input:opennode-environment}",
        "LIGHTNING_ENABLE_API_KEY": "${input:lightning-enable-api-key}",
        "LIGHTNING_ENABLE_TOOL_PROFILE": "${input:lightning-enable-tool-profile}",
        "AGENT_RELAY_URL": "${input:agent-relay-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Lightning Enable MCP Server in other clients