MCP Server logo

MCP Server

by lightningfaucet

Provides AI agents with a custodial Bitcoin wallet for Lightning payments, invoices, balances, and L402 or X402 API access.

Install MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-134": {
      "command": "npx",
      "args": [
        "-y",
        "lightning-wallet-mcp"
      ],
      "env": {
        "LIGHTNING_WALLET_API_KEY": "YOUR_VALUE_HERE",
        "LIGHTNING_WALLET_NO_PERSIST": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

lightningfaucet/mcp-server gives MCP-compatible agents access to a custodial Bitcoin wallet through Lightning Faucet. It supports paying BOLT11 invoices, Lightning addresses, keysend payments, Nostr zaps, and paid APIs that use L402 or X402. Agents can also create invoices, check balances, review transactions, manage credentials, and use optional per-agent budgets. Reach for it when an agent needs to hold or move sats without operating a Lightning node, channels, or liquidity.

Use cases

  • Pay L402 APIs from an AI agent
  • Send sats to Lightning addresses
  • Create invoices for incoming payments
  • Manage separate agent spending budgets
  • Inspect wallet transactions and balances

Key features

  • BOLT11 invoice payments and decoding
  • Lightning address, keysend, and Nostr zap payments
  • Automatic L402 and X402 API payment handling
  • Invoice creation, status checks, and withdrawals
  • Operator and agent credential management
  • Per-agent funding and spending controls

Tools32

What MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~449 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 41d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · lightning-wallet-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
npm downloads915Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Tools exposed32Callable tools this server registers over MCP.

How MCP Server works

What lightningfaucet/mcp-server does

lightningfaucet/mcp-server connects an MCP host to the Lightning Faucet custodial wallet service. It gives an AI agent a wallet context that can hold satoshis, make Lightning payments, receive funds, and inspect account activity. The service handles the wallet infrastructure, so the deployment does not require a Lightning node, channels, or independently managed liquidity.

The server can pay a BOLT11 invoice, a Lightning address, or a node public key using keysend. It also supports NIP-57 Nostr zaps, LNURL-auth, and LNURL-withdraw claims. For HTTP services that answer with status 402, pay_l402_api detects L402 Lightning or X402 USDC-on-Base payment requirements and attempts payment before requesting the API.

How it works

MCP tools run through a local stdio process started with the lightning-wallet-mcp npm package. The server uses an operator API key or an agent key to identify the current wallet context. When no environment key is supplied, credentials saved locally by supported account tools are loaded on startup.

Operator-level payments can use the operator key directly. Optional agents provide separate keys and spending budgets; the operator can create them, fund them, list them, and sweep funds back. Payment calls can report a pending state while an in-flight payment settles, so callers should not automatically retry a payment that may have completed.

Setup and configuration

Install the server through an MCP host with npx:

config.json
{
  "mcpServers": {
    "lightning-wallet": {
      "command": "npx",
      "args": ["-y", "lightning-wallet-mcp"]
    }
  }
}

Claude Code can add the same server with claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp. Cursor and Windsurf can use their MCP configuration files. An existing operator key can be supplied as LIGHTNING_WALLET_API_KEY; this takes precedence over the saved credentials file. Account registration saves credentials under ~/.lightning-wallet/credentials.json with restrictive file permissions. Set LIGHTNING_WALLET_NO_PERSIST=1 to disable credential writes.

Tools and capabilities

lightningfaucet/mcp-server includes unauthenticated service inspection and invoice decoding through get_info and decode_invoice. Identity, balance, rate-limit, transaction, and invoice-status tools help an agent inspect its wallet state.

Payment and funding capabilities include:

  • Pay invoices, Lightning addresses, node keys, Nostr users, and Nostr events.
  • Request L402 or X402 APIs through automatic payment handling.
  • Create receiving invoices and deposit invoices.
  • Withdraw to an external invoice or create an LNURL-withdraw link.
  • Claim LNURL-withdraw funds and authenticate with LNURL-auth.
  • Register or update an operator, rotate or recover credentials, and switch keys.
  • Create agents, assign budgets, fund them, and sweep their balances.

Limitations and notes

The wallet is custodial and depends on the Lightning Faucet service. The material does not describe self-hosted node operation or local channel management. Withdrawals require at least 10 sats. Rotating an API key pauses payments for 60 minutes. Credential persistence is enabled by default unless disabled with the documented environment variable, so deployments should protect the local credentials file and API key.

The server can use the operator context directly, while agent contexts are useful when separate budgets or balances are required. Calls that return pending: true need status-aware handling rather than immediate retries.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server

lightningfaucet/mcp-server is an MCP server that connects AI agents to a custodial Lightning Faucet wallet. Its main tools pay BOLT11 invoices, Lightning addresses, keysend and Nostr payments, handle L402 or X402 APIs, create invoices, check balances, review transactions, and manage operator or agent credentials.

Install it through an MCP host with `npx -y lightning-wallet-mcp`. Claude Code supports `claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp`; Cursor and Windsurf can use the equivalent JSON MCP configuration.

Yes, lightningfaucet/mcp-server works with Cursor through its MCP configuration. Add a server entry that runs `npx` with `-y lightning-wallet-mcp`, then provide an API key through the environment block if you already have one.

Use `pay_l402_api`; it requests the URL, detects an HTTP 402 response requiring L402 Lightning or X402 USDC on Base, and pays automatically before completing the request.

By default, supported account tools save credentials in `~/.lightning-wallet/credentials.json`. `LIGHTNING_WALLET_API_KEY` takes priority over that file, and `LIGHTNING_WALLET_NO_PERSIST=1` disables credential writes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-server-134?style=directory)](https://allmcps.com/mcp/mcp-server-134)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-server-134"><img src="https://allmcps.com/api/badge/mcp-server-134?style=directory" alt="MCP Server on AllMCPs" /></a>