MCP Server logo

MCP Server

by lightningfaucet

Give AI agents a custodial Bitcoin wallet for Lightning payments, L402/X402 APIs, invoices, budgets, and agent accounts.

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— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

lightningfaucet/mcp-server gives MCP clients a custodial Bitcoin wallet for Lightning payments and paid APIs. Its tools can check balances, pay BOLT11 invoices, create and track invoices, and automatically handle L402 Lightning or X402 USDC-on-Base payment challenges. Operators can create agent accounts, fund them, set budgets, manage credentials, and receive payment webhooks. Use it when an agent needs controlled payment access without running a Lightning node, channels, or liquidity.

Use cases

  • Pay L402 and X402 APIs from an AI agent
  • Fund and manage separate agent spending accounts
  • Receive Lightning payments with generated invoices
  • Track invoice settlement and wallet transactions
  • Deliver payment notifications through webhooks

Key features

  • Lightning invoice payments and invoice creation
  • Automatic L402 and X402 payment handling
  • Operator and agent wallet credentials
  • Per-agent budgets and lifecycle controls
  • Payment webhooks with test and deletion tools
  • Local stdio and remote Streamable HTTP access

Tools77

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

Verified live~8.3k 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

Recent health check succeeded.

13/13 checks healthy over the last 64d

What it can do

From the 77 tools this server returned when we ran it.

Can delete or modify data · 4Handles credentials · 10Makes network requests · 10Read-only tools · 73
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age263 days
Maintainers1

Observed 2026-10-26 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

GitHub stars11Stargazers on the source repository.
npm downloads3.2kPackage downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Tools exposed77Callable tools this server registers over MCP.

How MCP Server works

What lightningfaucet/mcp-server does

lightningfaucet/mcp-server exposes a custodial Bitcoin wallet through MCP. Agents can inspect balances, pay BOLT11 Lightning invoices, create invoices for incoming payments, and review transaction history. The pay_l402_api tool requests a paid API and responds to HTTP 402 challenges by detecting and paying either L402 with Lightning or X402 using USDC on Base. When both protocols are available, L402 is preferred.

The wallet supports two credential contexts. An operator key can pay from the operator wallet; the service provisions a default agent for those payments. An agent key represents a separate agent account that can have its own balance and spending policy.

How it works

The local package runs as an MCP process through npx -y lightning-wallet-mcp. Credentials created or selected by registration and key-management tools are saved in ~/.lightning-wallet/credentials.json with restrictive file permissions. An API key supplied through LIGHTNING_WALLET_API_KEY takes precedence over the saved credentials, while LIGHTNING_WALLET_NO_PERSIST=1 disables credential writes.

Operators can request a deposit invoice and pay it from another Lightning wallet to fund the account. They can then create agents, transfer sats to them, inspect balances and budgets, or deactivate and reactivate them. Payment fees are generally 1% of the relevant amount, rounded down, with no fee for amounts below 100 sats where the payment fee rules apply. get_info reports the current fee schedule.

The service also provides a Streamable HTTP endpoint at https://lightningfaucet.com/mcp. Remote requests can include an agent or operator key in the Authorization header. The endpoint does not store keys, so local credential-management operations remain available through the stdio package.

Setup and configuration

For Claude Code, add the local server with:

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

For Cursor, Windsurf, or another MCP host, configure a server named lightning-wallet with npx as the command and -y lightning-wallet-mcp as its arguments. Register an operator through the register_operator tool, or provide an existing operator or agent key in the host environment:

config.json
{
  "env": {
    "LIGHTNING_WALLET_API_KEY": "lf_your_operator_key"
  }
}

Registration returns an API key and recovery code; both should be stored securely because they are not retrievable later. After registration, use get_deposit_invoice and pay the resulting invoice to add funds.

Tools and capabilities

  • Inspect service information, identity, balances, rate limits, and fee schedules.
  • Decode BOLT11 invoices without paying them.
  • Pay invoices or paid APIs and receive the Lightning payment preimage when applicable.
  • Create invoices and check whether they have been paid.
  • Create, fund, list, budget, deactivate, and reactivate agent accounts.
  • Register, test, list, and delete up to five payment webhooks per agent.
  • Recover accounts, rotate keys, switch credential contexts, and remove the local credentials file.

Payment operations can return pending: true while settlement is still in progress. In that case, do not retry the payment; check transaction history instead. Webhook registrations require an agent key, while budget changes and agent lifecycle actions require an operator key.

Limitations and notes

The wallet is custodial, so users do not operate their own Lightning node or manage channels and liquidity. Operator and agent keys have different permissions, and API-key rotation introduces a payment cooldown. The claim_promo flow requires a verified email and an operator account that meets the age requirement. The remote HTTP endpoint requires the caller to supply its own key for protected operations.

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 Bitcoin wallet and Lightning Network payments. Its main tools check balances, pay BOLT11 invoices, create and track invoices, and pay L402 or X402 APIs automatically. Operators can also create agents, fund them, and set spending budgets.

Install it as a local stdio server with `npx -y lightning-wallet-mcp`, then add that command to your MCP client configuration. Claude Code can use `claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp`; Cursor and Windsurf use the equivalent command-and-arguments configuration.

Use `get_deposit_invoice` to create a Lightning invoice, then pay that invoice from another Lightning wallet. The payment adds sats to the operator balance, which can be used directly or transferred to an agent with `fund_agent`.

Yes. Operators can use `set_budget` to set an agent limit and `get_budget_status` to view its limit, spent amount, remaining balance, and applicable platform fees. Budget changes require an operator key.

Yes. Cursor can run the local package as an MCP server using `npx` with `-y lightning-wallet-mcp` as the argument. The server can also be reached through its Streamable HTTP endpoint when the client supports MCP over HTTP.

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>