# Lightning Enable MCP Server

> Lightning Enable MCP Server is a freemium MCP server for finance and payments. Give an AI agent a Lightning wallet to pay invoices, call L402 APIs and set budgets. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $49 a month
- **Platforms:** Windows, macOS, Linux, CLI, self-hosted
- **Website:** https://docs.lightningenable.com/products/agentic-commerce/mcp-complete-guide
- **Repository:** https://github.com/refined-element/lightning-enable-mcp
- **MCP Registry name:** io.github.refined-element/lightning-enable-mcp
- **Categories:** finance and payments
- **Listing updated:** 2026-11-14

## About

Wallet selection is automatic when several are configured, in the order LND, NWC, Strike, then OpenNode. That order favours L402 because LND and NWC always return preimages, and OpenNode is noted as direct payments only. Credentials come from environment variables such as `STRIKE_API_KEY` or `NWC_CONNECTION_STRING`, and a `setup_wallet` tool walks a first-time user through connecting one.

A tool profile setting controls how many tools the server advertises: lite (pay, check wallet, budget, receipts, setup), standard (the default, action-based tools) and full (adds deprecated pre-consolidation names, removed in v3.0.0). Wallet, invoice, L402, budget and API-discovery tools work with just a wallet. Producer tools for selling access via L402 and Agent Service Agreement tools over Nostr unlock with an Agentic Commerce subscription, or through `create_lightning_enable_account`, which pays about 100 sats to self-provision a key.

It installs as a .NET tool, a Python package (including `uvx`) or a Docker image, and the project is MIT licensed.

## Features

- **Pay invoices:** Sends Bitcoin over Lightning to a BOLT11 invoice.
- **L402 access:** Automatically pays L402 challenges to reach paid APIs.
- **API discovery:** Searches the L402 API registry by keyword or category.
- **Spending controls:** Budget limits, a durable receipt log and balance checks.
- **Four wallet types:** Works with LND, NWC, Strike and OpenNode wallets.
- **Sell via L402:** Producer tools price routes and verify payer tokens, with a subscription.
- **Tool profiles:** Lite, standard and full profiles limit how many tools are advertised.

## Good for

- Let an agent pay for metered APIs per request
- Cap an agent's spending with budgets and keep receipts
- Find paid APIs in the L402 registry
- Put your own API behind L402 and charge agents
- Create invoices to receive payments

## Install

### Claude Code (Terminal)

```sh
claude mcp add lightning-enable-mcp --env STRIKE_API_KEY='<STRIKE_API_KEY>' --env NWC_CONNECTION_STRING='<NWC_CONNECTION_STRING>' --env LND_MACAROON_HEX='<LND_MACAROON_HEX>' --env OPENNODE_API_KEY='<OPENNODE_API_KEY>' --env LIGHTNING_ENABLE_API_KEY='<LIGHTNING_ENABLE_API_KEY>' -- uvx lightning-enable-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "command": "uvx",
      "args": [
        "lightning-enable-mcp"
      ],
      "env": {
        "STRIKE_API_KEY": "<STRIKE_API_KEY>",
        "NWC_CONNECTION_STRING": "<NWC_CONNECTION_STRING>",
        "LND_MACAROON_HEX": "<LND_MACAROON_HEX>",
        "OPENNODE_API_KEY": "<OPENNODE_API_KEY>",
        "LIGHTNING_ENABLE_API_KEY": "<LIGHTNING_ENABLE_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "command": "uvx",
      "args": [
        "lightning-enable-mcp"
      ],
      "env": {
        "STRIKE_API_KEY": "<STRIKE_API_KEY>",
        "NWC_CONNECTION_STRING": "<NWC_CONNECTION_STRING>",
        "LND_MACAROON_HEX": "<LND_MACAROON_HEX>",
        "OPENNODE_API_KEY": "<OPENNODE_API_KEY>",
        "LIGHTNING_ENABLE_API_KEY": "<LIGHTNING_ENABLE_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lightning-enable-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lightning-enable-mcp"
      ],
      "env": {
        "STRIKE_API_KEY": "<STRIKE_API_KEY>",
        "NWC_CONNECTION_STRING": "<NWC_CONNECTION_STRING>",
        "LND_MACAROON_HEX": "<LND_MACAROON_HEX>",
        "OPENNODE_API_KEY": "<OPENNODE_API_KEY>",
        "LIGHTNING_ENABLE_API_KEY": "<LIGHTNING_ENABLE_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "command": "uvx",
      "args": [
        "lightning-enable-mcp"
      ],
      "env": {
        "STRIKE_API_KEY": "<STRIKE_API_KEY>",
        "NWC_CONNECTION_STRING": "<NWC_CONNECTION_STRING>",
        "LND_MACAROON_HEX": "<LND_MACAROON_HEX>",
        "OPENNODE_API_KEY": "<OPENNODE_API_KEY>",
        "LIGHTNING_ENABLE_API_KEY": "<LIGHTNING_ENABLE_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "command": "uvx",
      "args": [
        "lightning-enable-mcp"
      ],
      "env": {
        "STRIKE_API_KEY": "<STRIKE_API_KEY>",
        "NWC_CONNECTION_STRING": "<NWC_CONNECTION_STRING>",
        "LND_MACAROON_HEX": "<LND_MACAROON_HEX>",
        "OPENNODE_API_KEY": "<OPENNODE_API_KEY>",
        "LIGHTNING_ENABLE_API_KEY": "<LIGHTNING_ENABLE_API_KEY>"
      }
    }
  }
}
```

## Tools

- `setup_wallet`: Reports the configured wallet and walks through connecting one.
- `pay_invoice`: Pays a BOLT11 Lightning invoice.
- `access_l402_resource`: Pays an L402 challenge to access a paid API resource.
- `get_balance`: Checks the wallet balance.
- `create_lightning_enable_account`: Pays about 100 sats over L402 and returns a merchant API key.
- `renew_lightning_enable_subscription`: Renews the Lightning Enable subscription.

## FAQ

### Which wallets are supported?

LND, Nostr Wallet Connect, Strike and OpenNode; OpenNode supports direct payments only, without L402.

### Is it free?

The server is free and open source under MIT; producer and Agent Service Agreement tools need an Agentic Commerce subscription.

### How do I install it?

Via `dotnet tool install -g LightningEnable.Mcp`, `pip install lightning-enable-mcp`, `uvx`, or the Docker image.

### What does the self-serve signup cost?

The `create_lightning_enable_account` tool pays an activation fee of about 100 sats over Lightning.

### Is Lightning Enable MCP Server free?

Lightning Enable MCP Server has a free plan, with paid plans for more usage or features. Paid plans start at $49 a month.

### How do I add Lightning Enable MCP Server to Claude Code?

Run this command in your terminal: claude mcp add lightning-enable-mcp --env STRIKE_API_KEY='<STRIKE_API_KEY>' --env NWC_CONNECTION_STRING='<NWC_CONNECTION_STRING>' --env LND_MACAROON_HEX='<LND_MACAROON_HEX>' --env OPENNODE_API_KEY='<OPENNODE_API_KEY>' --env LIGHTNING_ENABLE_API_KEY='<LIGHTNING_ENABLE_API_KEY>' -- uvx lightning-enable-mcp

### What are the best alternatives to Lightning Enable MCP Server?

The closest alternatives to Lightning Enable MCP Server are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Quantivex Research and Provyan.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [L2WS](https://ai-powered.com/mcp/l2ws): L2WS is a paid MCP server for finance and payments.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/lightning-enable-mcp-server
