Give AI agents a Bitcoin wallet with Lightning Network payments and L402 support.
MCPpedia last refreshed this data
io.github.lightningfaucet/mcp-server is an MCP server that give AI agents a Bitcoin wallet with Lightning Network payments and L402 support. It exposes 35 tools over stdio and http, requires no API key, and scores 82/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"lightning-wallet": {
"args": [
"lightning-wallet-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Give AI agents a Bitcoin wallet with Lightning Network payments and L402 support.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'lightning-wallet-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked lightning-wallet-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in finance
OKX trading MCP server — connect AI agents to spot, swap, futures, options & grid bots via the Model Context Protocol.
Install, configure, operate and integrate self-hosted PayRam crypto payment gateways.
Unofficial read-only deweloperuch.pl data: new-build asking prices, RCN transactions, GUS and NBP
Free Indian data and AI: pincode, IFSC, GSTIN, holidays, GST invoice, OCR, calculators, translation.
MCP Security Weekly
Get CVE alerts and security updates for io.github.lightningfaucet/mcp-server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Give your AI agent a Bitcoin wallet. One MCP server plus a CLI. Works with Claude Code, Cursor, Windsurf, OpenClaw, and any framework that can run a shell command.
Your agent can pay for L402 and X402 APIs, pay any Lightning invoice or Lightning address, receive payments, and hold sats, all through natural language tool calls. Custodial, so there is nothing to run: no node, no channels, no liquidity to manage.
Claude Code
claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp
Then in Claude: "Register a Lightning wallet for me".
That is it. register_operator saves your credentials to ~/.lightning-wallet/credentials.json (mode 0600) and every later session reuses them automatically. Registering is free. Your first paid call needs a small deposit (minimum 100 sats): ask for a deposit invoice with get_deposit_invoice (or lw deposit <sats> on the CLI) and pay it from any Lightning wallet. Payments and L402 calls work straight from the operator key. Prediction-market bets and the Arena need an agent key: create_agent, fund_agent, then set_agent_credentials. An email address is optional and only used for notifications; click the verification link if you add one.
Cursor / Windsurf / any MCP host (.cursor/mcp.json, .mcp.json, or the host's MCP settings):
{
"mcpServers": {
"lightning-wallet": {
"command": "npx",
"args": ["-y", "lightning-wallet-mcp"]
}
}
}
Already have a key? Put it in the env block instead of registering again. The env var always wins over the saved file:
{
"mcpServers": {
"lightning-wallet": {
"command": "npx",
"args": ["-y", "lightning-wallet-mcp"],
"env": { "LIGHTNING_WALLET_API_KEY": "lf_your_operator_key" }
}
}
}
Remote server (no install): hosted AI apps and agent frameworks that speak MCP over HTTP can connect to
https://lightningfaucet.com/mcp
It is a stateless Streamable HTTP endpoint with the same tools. Without a key you get the public read-only set (get_info, decode_invoice, list_l402_apis, verify_fair, prediction_markets, prediction_market, markets_browse, arena_list, arena_leaderboard, gateway_catalog, pickem_browse, tournament_list, board_agent_profile, board_agent_badge). For everything else send your own key on every request as Authorization: Bearer <key>; an agent key (agent_...) with a budget and spend policy is the safe choice. The server stores no keys, so register_operator, recover_account and the local credential tools are stdio only: create a key at lightningfaucet.com/ai-agents or with the local package first.
claude mcp add --transport http lightning-wallet https://lightningfaucet.com/mcp \
--header "Authorization: Bearer agent_your_agent_key"
CLI (any agent framework, CI, or a plain shell):
npm install -g lightning-wallet-mcp
lw register # free; saves credentials locally, no export needed (--email you@example.com is optional, for notifications)
lw deposit 500 # prints a Lightning invoice; pay it to fund the wallet
lw balance
lw pay-api https://lightningfaucet.com/api/l402/fortune
lw pay <bolt11>
lw pay-address someone@getalby.com 100
pay_l402_api (CLI: lw pay-api) makes the request, reads the HTTP 402 challenge, pays, and retries with the proof. It handles three kinds of challenge