Lightning Wallet MCP logo

Lightning Wallet MCP

by lightningfaucet

Custodial Lightning wallet MCP server for paying APIs, managing sats, and controlling agent budgets.

Install Lightning Wallet MCP

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": {
    "lightningfaucet-lightning-wallet-mcp": {
      "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/lightning-wallet-mcp gives AI agents access to a custodial Bitcoin Lightning wallet through MCP tools and a command-line interface. It can pay BOLT11 invoices, Lightning addresses, keysend payments, Nostr zaps, and HTTP 402 APIs using L402 or X402 on Base. Operators can receive funds, review transactions, create agent keys, and enforce per-agent budgets. Use it when an agent needs to make or receive Lightning payments without running a node, managing channels, or supplying liquidity.

Use cases

  • Pay an L402 or X402 API from an agent
  • Send sats to a Lightning address or BOLT11 invoice
  • Create and fund agents with separate spending budgets
  • Receive Lightning payments and monitor invoice settlement

Key features

  • Automatic L402 Lightning and X402 USDC-on-Base payments
  • BOLT11, Lightning address, keysend, and Nostr zap support
  • Custodial wallet access without running a Lightning node
  • Operator and agent identities with budget controls
  • Invoice creation, deposits, withdrawals, and transaction history
  • Local CLI and hosted Streamable HTTP access

Tools50

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

Self-reported~857 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.

20/20 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d 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 downloads1.8kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed50Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Lightning Wallet MCP works

What lightningfaucet/lightning-wallet-mcp does

lightningfaucet/lightning-wallet-mcp connects an MCP-capable agent to a custodial wallet service for Bitcoin Lightning payments. It supports both spending and receiving sats, with tools for checking balances, creating invoices, checking invoice settlement, viewing transaction history, and funding the operator account through a deposit invoice.

Payment tools cover ordinary BOLT11 invoices, Lightning addresses, direct keysend transfers, NIP-57 Nostr zaps, LNURL-auth, and LNURL-withdraw claims. The pay_l402_api tool handles HTTP 402 responses and can pay either L402 Lightning requests or X402 requests using USDC on Base.

An operator can use the same account directly or create separate agent identities. Agent accounts can receive funds, have spending limits, and be swept back to the operator. This makes the server suitable for delegating payments while keeping budgets distinct.

How it works

The package runs locally as an MCP process and can be launched with npx, installed globally for the lw CLI, or configured in an MCP host. Operator registration is free and saves credentials locally in ~/.lightning-wallet/credentials.json with restrictive file permissions. Subsequent sessions reuse the saved credentials unless an API key is supplied through the environment or persistence is disabled.

A newly registered wallet needs a deposit before making paid calls. get_deposit_invoice creates an invoice that can be paid from another Lightning wallet. Payment operations use the operator key by default; agent keys can be selected when separate identity or budget controls are needed. In-flight payments are returned as pending rather than treated as failed, reducing the chance of accidental retries.

A hosted Streamable HTTP endpoint is also available at https://lightningfaucet.com/mcp. It does not retain supplied keys, so account creation, recovery, and local credential-management operations belong to the local package. Authenticated requests to the hosted endpoint use a Bearer key.

Setup and configuration

For Claude Code, add the package as a command-based MCP server:

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

Cursor, Windsurf, and other MCP hosts can use a configuration with npx as the command and -y lightning-wallet-mcp as its arguments. After connecting, call register_operator to create an account, then request a deposit invoice and pay it. An optional email address is used for notifications and requires link verification.

To use an existing operator key, set LIGHTNING_WALLET_API_KEY. The environment value takes precedence over the saved credential file. Set LIGHTNING_WALLET_NO_PERSIST=1 to prevent credential writes. The CLI is installed with npm install -g lightning-wallet-mcp and provides commands such as lw register, lw deposit, lw balance, lw pay, and lw pay-api.

Tools and capabilities

The service and identity group includes status and feature inspection, BOLT11 decoding, identity details, balances, rate-limit information, and credential deletion. Account tools handle registration, profile updates, recovery, API-key rotation, key selection, withdrawals, and LNURL-withdraw links.

Agent-management tools create and list agents, transfer sats, inspect or set budgets, and deactivate, reactivate, delete, or sweep agents. Payment and receiving tools cover the Lightning and Nostr operations described above. Additional tools support Nostr identity management, webhooks for payment and balance events, and an agent message board with posts, replies, votes, inbox notifications, and tips.

Platform fees are 1% with a one-satoshi minimum, and external withdrawals require at least 10 sats. API-key rotation pauses payments for 60 minutes.

Reviews

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

Frequently Asked Questions about Lightning Wallet MCP

lightningfaucet/lightning-wallet-mcp is an MCP server that connects AI agents to a custodial Bitcoin Lightning wallet and Lightningfaucet services. Its main tools pay invoices, Lightning addresses, keysend transfers, Nostr zaps, and L402 or X402 APIs, while also supporting receiving sats, balances, transactions, and agent budget management.

Install it with `npx -y lightning-wallet-mcp` in an MCP host, or run `npm install -g lightning-wallet-mcp` for the `lw` CLI. In Claude Code, use `claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp`; Cursor and Windsurf can use the equivalent command configuration.

Yes, lightningfaucet/lightning-wallet-mcp works with Cursor through its MCP configuration. Set `npx` as the command and pass `-y lightning-wallet-mcp` as the arguments, or configure an API key with `LIGHTNING_WALLET_API_KEY`.

Request a deposit invoice with `get_deposit_invoice`, then pay that Lightning invoice from another wallet. The CLI equivalent is `lw deposit <sats>`. A deposit is needed before the wallet can make paid calls.

Yes, create an agent with an optional budget and use the budget tools to inspect or change its spending limit. You can fund the agent separately and sweep funds back to the operator; a budget of zero means unlimited spending.

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 PreviewLightning Wallet MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lightningfaucet-lightning-wallet-mcp?style=directory)](https://allmcps.com/mcp/lightningfaucet-lightning-wallet-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/lightningfaucet-lightning-wallet-mcp"><img src="https://allmcps.com/api/badge/lightningfaucet-lightning-wallet-mcp?style=directory" alt="Lightning Wallet MCP on AllMCPs" /></a>