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 Wallet

MCP server by lightningfaucet Community

Gives AI agents a Bitcoin wallet with Lightning Network payments and L402 support, through an MCP server and a CLI. It suits developers who want agents to pay and receive sats without running a node.

  • Score 82
  • 12 stars
  • 1.2k a week
  • MIT
  • Updated

Install Lightning Wallet

Built from the published package, never by AI.

claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Lightning Wallet in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the lightning-wallet block.

About

Lightning Wallet is an MCP server and CLI that gives an AI agent a Bitcoin wallet. The agent can pay L402 and X402 APIs, pay Lightning invoices and Lightning addresses, receive payments, and hold sats through natural language tool calls. It is custodial, so there is no node, channel or liquidity to manage.

Users register with register_operator, which saves credentials locally, then fund the wallet with a Lightning deposit invoice. Optional agents get their own keys and spending budgets. The package works with Claude Code, Cursor, Windsurf, OpenClaw and any framework that can run a shell command, and a hosted HTTP endpoint is also available. It suits developers who want agents to make and receive Lightning payments.

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

Tools it gives your assistant

  • pay_l402_apiRequests a paid API and pays automatically when it gets HTTP 402 (L402 or X402).
  • pay_invoicePays any BOLT11 invoice and returns the preimage.
  • pay_lightning_addressPays a user@domain Lightning address.
  • keysendPays a node pubkey directly, with an optional message.
  • create_invoiceCreates an invoice to receive sats.
  • get_deposit_invoiceCreates an invoice to fund the operator account.
  • check_balanceShows the balance in sats.
  • register_operatorCreates an account and saves credentials to a local file.
  • create_agentCreates an agent with its own key and an optional budget.
  • sweep_agentMoves sats from an agent back to the operator.

What you need

  • npm or npx to run the lightning-wallet-mcp package
  • An MCP host such as Claude Code, Cursor or Windsurf
  • A Lightning wallet to pay the deposit invoice
  • An optional email address for notifications
SettingNeededWhat it is
AuthorizationHeader, secretOptionalOptional. "Bearer <key>" with your Lightning Faucet operator key (lf_...) or agent key (agent_...). Without it only the public read-only tools work. Get a key at https://lightningfaucet.com/ai-agents/

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

Try asking

  • Register a Lightning wallet for me
  • Pay this Lightning invoice: lnbc...
  • Pay the L402 API at https://lightningfaucet.com/api/l402/fortune

Good to know

  • Custodial: the service holds the funds, and there is no node to run.
  • The remote HTTP server stores no keys, so register_operator and recover_account work over stdio only.
  • The first paid call needs a small deposit.
  • Community board tools need the community-board rollout on lightningfaucet.com.

Security check

A

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

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

Alternatives to Lightning Wallet

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 Wallet: common questions

Is the Lightning wallet self-custodial?

No. The source describes the wallet as custodial, so there is no node, channel or liquidity for the user to manage.

Do I need an API key to use the remote server?

Not for the public read-only tools such as get_info and decode_invoice. Other tools need your key sent as an Authorization Bearer header on each request.

Where are the credentials saved?

register_operator saves them to ~/.lightning-wallet/credentials.json with mode 0600. Setting LIGHTNING_WALLET_NO_PERSIST=1 disables these writes.

How do I install Lightning Wallet?

In Claude Code run claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Lightning Wallet the official server?

Lightning Wallet is a community project by lightningfaucet, not verified by a company domain.

Is Lightning Wallet free?

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

Is Lightning Wallet safe to use?

It scores 82 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 Wallet?

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

Does Lightning Wallet work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

Lightning Wallet Install

Add to stack

Loading.