Alby MCP Server
Connect a Lightning wallet to any MCP client over Nostr Wallet Connect
- Rank
- 3 of 14
- Composite score
- 8.3 / 10
- Schemes
- L402
- Role
- Pays 402 challenges; Charges with 402
- Kind
- mcp-server
- Maturity
- unstated
- Protocol / rail
- Bitcoin / Lightning (NWC, L402)
- Assets
- BTC
- Networks
- lightning
- Custody model
- Self-custodial with Alby Hub (custody follows the connected NWC wallet)
- Node management
- Not required
- MCP native
- Yes
- License
- MIT
- Last verified
- 2026-10-15
Overview
Alby's official MCP server connects a bitcoin Lightning wallet to an LLM over Nostr Wallet Connect. It runs over stdio with `npx -y @getalby/mcp` and an NWC connection string, or as a hosted remote endpoint, and gives agents tools to create and pay invoices, check balances, parse BOLT 11 invoices and access L402-protected resources. Custody follows the wallet you connect — self-custodial with Alby Hub — and NWC permissions scope what the agent may do. For L402, the wallet must return the payment preimage.
Key advantages
- Official MCP server, over stdio or as a hosted remote endpoint
- Creates and pays invoices, parses BOLT 11, and accesses L402-protected resources
- Scoped Nostr Wallet Connect permissions limit what the agent can do
- Works with Claude, Goose, Cline, n8n and other MCP clients
Trade-offs
- L402 needs a wallet that returns the payment preimage — not every NWC wallet does
- Custody follows the connected wallet; a custodial NWC wallet is custodial
- Lightning bitcoin only
Evaluation matrix
- Custody & Sovereignty8.0
Self-custodial with exit guarantees vs. centralized/custodial risk. A 10 means the holder keeps their own keys and can unilaterally exit to the base chain; a custodial platform scores around 4.
- Operational Friction7.5
Infrastructure burden. Zero nodes, channels or liquidity to manage scores a 10; running and maintaining your own Lightning node scores around 4–5.
- Agent Native Support9.5
Out-of-the-box MCP server integration, typed tool calls and LLM-friendly setup. A first-party MCP server scores 9–10; a library or CLI an agent can drive scores 6–8.
- Payment Rails & Assets7.0
Breadth of settlement rails and assets: Lightning for true micropayments, stablecoins for a stable unit of account, cards for mainstream reach. A single asset on a single network scores around 7.
- Settlement Speed & Fees9.5
Instant sub-second settlement with near-zero overhead scores a 10. Block-bound settlement scores around 8; card-network settlement and fees score lower.
- Developer DX8.5
SDK quality, documentation, maintenance and copy-paste integration speed. Alpha-stage API churn, stale releases or inconsistent docs lower the score.
Why these scores. Custody 8: self-custodial with Alby Hub, but it depends on the wallet. Friction 7.5: needs a funded NWC wallet with Lightning liquidity. Agent 9.5: official MCP server, local and remote. Rails 7: Lightning. Settlement 9.5: Lightning. DX 8.5: one npx command.
Integration
{
"mcpServers": {
"alby": {
"command": "npx",
"args": ["-y", "@getalby/mcp"],
"env": {
"NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE"
}
}
}
}https://mcp.getalby.com/mcp?nwc=ENCODED_NWC_URLBest for
Giving an existing MCP client a Lightning wallet, with permissions scoped by the wallet connection.
Sources
Every claim on this page was checked against these sources on 2026-10-15. Maturity “unstated” means: the vendor does not state a maturity level.
Machine-readable
curl "https://402mcp.org/api/v1/solutions?id=alby-mcp&view=full"curl -H 'Accept: text/markdown' https://402mcp.org/solutions/alby-mcpOther indexed solutions
- Lightning Labs WavelengthL402 / Lightning / Ark · rank 1 · 9.4
- x402 ProtocolEVM / Base / Solana (USDC) · rank 2 · 8.6
- Cloudflare Agents SDK (x402)x402 (USDC on Base) · rank 4 · 8.3
- Coinbase Payments MCPx402 (USDC on Base) · rank 5 · 8.3
- Machine Payments Protocol (MPP)Multi-method: Tempo, Stripe, Lightning, EVM, Solana and more · rank 6 · 8.3
- thirdweb x402x402 on 170+ EVM chains · rank 7 · 8.1
- PayAI Networkx402 on Solana and EVM networks · rank 8 · 8.0
- x402-mcp (Vercel)x402 (USDC on Base) for MCP servers · rank 9 · 7.8
- Crossmint Agent WalletsEVM (USDC on Base) · rank 10 · 7.8
- Stripe Machine PaymentsMPP (cards, stablecoins) and x402 (USDC) · rank 11 · 7.7
- lngetBitcoin / Lightning (L402) · rank 12 · 7.5
- ApertureBitcoin / Lightning (L402, MPP) · rank 13 · 7.1
- FewsatsBitcoin / Lightning (L402) · rank 14 · 7.1
Compare all 14 on the leaderboard, or read the scoring methodology.