Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Lightning Enable MCP Server

MCP server by refined-element Community

Lightning Enable MCP Server gives AI agents a Lightning wallet for paying invoices, paying L402 APIs and discovering paid APIs. It is for developers who want agents to make Bitcoin Lightning payments.

  • Score 57
  • 9 stars
  • MIT
  • Updated

About

Lightning Enable MCP Server is an open-source MCP server that lets AI agents make Lightning Network payments. It is available in .NET and Python, and a Docker image is also published. Wallet, invoice, L402, budget and API-discovery tools work with just a wallet. The agent can pay BOLT11 invoices, pay L402 challenges to access APIs, search the L402 API registry, track spending with budget limits and a receipt log, and create invoices.

The server connects to a wallet through Strike, Nostr Wallet Connect (NWC) or LND. The source notes that OpenNode cannot pay L402 challenges. Producer tools for selling API access via L402 and Agent Service Agreement tools for agent-to-agent commerce need an Agentic Commerce subscription. The project is aimed at developers building AI agents that pay for or sell API access over Lightning.

Written from the project's README and checked against it.

Tools it gives your assistant

  • setup_walletReports the configured wallet, or saves a validated NWC connection string to the config file.
  • test_l402_paymentPays a public 1-sat L402 endpoint to confirm the wallet can complete an L402 payment.
  • create_lightning_enable_accountPays a about 100-sat activation fee over L402 and returns a merchant API key.

What you need

  • A Lightning wallet: Strike, NWC or LND
  • Python or .NET, or Docker
  • Agentic Commerce subscription for producer and ASA tools
SettingNeededWhat it is
STRIKE_API_KEYEnvironment variable, secretOptionalStrike API key for Lightning payments (recommended wallet)
NWC_CONNECTION_STRINGEnvironment variable, secretOptionalNostr Wallet Connect URI (for NWC wallets like CoinOS, CLINK, Alby Hub)
LND_REST_HOSTEnvironment variableOptionalLND REST API host (e.g., localhost:8080)
LND_MACAROON_HEXEnvironment variable, secretOptionalLND admin macaroon in hex format
OPENNODE_API_KEYEnvironment variable, secretOptionalOpenNode API key (direct payments only, no L402 support)
OPENNODE_ENVIRONMENTEnvironment variableOptionalOpenNode environment: production or dev (testnet) Default: production
LIGHTNING_ENABLE_API_KEYEnvironment variable, secretOptionalLightning 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_PROFILEEnvironment variableOptionalHow 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_URLEnvironment variableOptionalNostr relay URL for agent events (default: wss://agents.lightningenable.com) Default: wss://agents.lightningenable.com

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Run setup_wallet
  • Run test_l402_payment
  • Buy me a Lightning Enable t-shirt from store.lightningenable.com

Good to know

  • OpenNode never returns a preimage, so it cannot pay L402 challenges.
  • Producer and Agent Service Agreement tools need an Agentic Commerce subscription.
  • Payments above the auto-approve threshold need a human to read back a confirmation code.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Lightning Enable MCP Server

All alternatives →
mcp stripe
96

Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.

AAA Remote 2.1k
TradingMCPatilaahmettaner
94

Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.

AAA Remote 5.4k
CCXTccxt
94

CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.

AAA Local 45k
Finance ToolkitJerBouma
94

Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.

AAA Local and remote 5.6k
Vapi Network MCP vAPI-Network
94

Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.

AAA Local 6.2k
Finance DatabaseJerBouma
94

Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.

AAA Local and remote 9.7k

Compare with mcp, TradingMCP or CCXT

Lightning Enable MCP Server: common questions

Which wallets work with Lightning Enable MCP Server?

The source lists Strike, NWC and LND as wallets that can pay L402 challenges. OpenNode works for invoicing and direct payments but not L402.

Can an agent approve its own large payments?

The source says the confirmation code is never returned to the agent. It is sent to the operator through a configured channel such as stderr, a webhook or a file.

Does it cost anything to try?

The source says test_l402_payment pays a public 1-sat endpoint and costs about 1 satoshi. A paid plan is described for selling APIs.

Is Lightning Enable MCP Server the official server?

Lightning Enable MCP Server is a community project by refined-element, not verified by a company domain.

Is Lightning Enable MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Lightning Enable MCP Server safe to use?

It scores 57 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Lightning Enable MCP Server?

Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.

Does Lightning Enable MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.