SuperAPI AI Directory

mcp

🎖️ 📇 ☁️ 🏠 - Connect any Bitcoin Lightning wallet to send and receive instant payments.

Open website

About this tool

Purpose

Alby Bitcoin Payments MCP Server aims to connect Bitcoin Lightning Network wallets to large language models (LLMs). It is based on the Model Context Protocol (MCP) and lets AI agents send and receive instant Bitcoin Lightning payments via Nostr Wallet Connect (NWC). The service also has built-in knowledge support for NWC, LNURL, and L402, implemented using the Alby SDK and Alby Lightning Tools.

Main Capabilities

  • Connect to a Bitcoin Lightning Network wallet to send and receive instant payments.
  • Built using the official MCP TypeScript SDK.
  • Supports NWC, LNURL, and L402 related capabilities.
  • Provides an Alby-hosted remote MCP server supporting SSE and HTTP Streamable transports.
  • By default runs locally in STDIO mode; Streamable HTTP and SSE (SSE is deprecated) can be enabled by setting the environment variable MODE=HTTP.
  • HTTP mode requires Bearer authorization, with the token being the wallet's NWC connection secret.
  • The HTTP endpoint only accepts requests whose Host header is in the allowlist; requests from browsers (carrying an Origin header) are rejected.
  • fetch_l402 only fetches http(s) URLs whose hostname resolves to a globally routable address; loopback, link-local, and private address ranges are rejected; this is a best-effort check and may be bypassed if a DNS server changes its answer between two queries.
  • fetch_l402 does not follow redirects; redirected URLs return an error.

Usage

Using the Alby-hosted MCP server

If the agent supports remote MCP servers (SSE, e.g. N8N) or the HTTP Streamable transport, you can connect to Alby's MCP server:

  • SSE:https://mcp.getalby.com/sse
  • HTTP Streamable:https://mcp.getalby.com/mcp

Both require providing the NWC connection secret as authentication, supporting Bearer authentication (recommended) or passing it via the nwc query parameter. For example: Authorization: Bearer nostr+walletconnect://...

If the agent UI supports bearer authentication, simply paste the connection secret into the bearer authentication field. If it does not support it, you can pass the NWC connection secret as a query parameter, for example:https://mcp.getalby.com/sse?nwc=ENCODED_CONNECTION_SECRET or https://mcp.getalby.com/mcp?nwc=ENCODED_CONNECTION_SECRET。

To obtain ENCODED_CONNECTION_SECRET: open the browser developer tools, enter the encoding command in the console (you need to set your own NWC connection secret), copy the output to replace the placeholder; the format is similar to nostr%2Bwalletconnect%3A%2F%2F...

Adding to Claude Web or Claude Desktop

Currently at least a Claude Pro subscription is required to connect to a remote MCP server. Go to Settings -> Connectors, click "Add custom connector", and fill in the endpoint URI with https://mcp.getalby.com/mcp?nwc=ENCODED_NWC_URL。也可将配置添加到 claude_desktop_config.json.

Adding to Goose Desktop

Open Goose Desktop, go to Settings -> Advanced Settings, click "Add custom Extension", name it alby, change the type to HTTP Streamable, and fill in the SSE endpoint URI with https://mcp.getalby.com/mcp。

Adding to Goose CLI

Run goose configure, select Add extension -> Remote Extension (HTTP Streamable), and fill in the endpoint URI with https://mcp.getalby.com/mcp,自定义头 The name is Authorization, and the value is Bearer nostr+walletconnect://.... You can also add a Command Line Extension, with the command npx -y @getalby/mcp, and set the environment variable NWC_CONNECTION_STRING to nostr+walletconnect://....

Add to Claude Code

You can copy the corresponding configuration and paste it into the cline prompt, and it will prompt you to update the connection string.

Add to N8N via SSE

Use the native N8N MCP Client tool to connect to the AI agent, enter the SSE endpoint, set authentication to "Bearer" and paste the NWC connection key. Existing tests use OpenRouter + anthropic/claude-3.7-sonnet.

Add to N8N via STDIO (Community Node)

Currently this MCP server only supports the command line (STDIO). You can install the n8n-nodes-mcp community node and run n8n with tools enabled. Create a blank workflow and add an AI agent node, configure the LLM model, add a new tool "MCP Client", configure the credentials (Command Line STDIO), with command as npx, arguments as -y @getalby/mcp, and environment variable NWC_CONNECTION_STRING=nostr+walletconnect://your_key_here.

Add to Windsurf

Download and open Windsurf Editor, click "Windsurf - Settings" -> "Advanced Settings" -> "Cascade" -> Plugins (MCP Servers) in the bottom toolbar, click "Manage plugins" -> "View raw config", paste the corresponding configuration into mcp_config.json, replace ENCODED_NWC_URL, save and restart the editor.

Run Locally

By default it runs locally in STDIO mode. You can set the environment variable MODE=HTTP to enable Streamable HTTP (http://localhost:3000/mcp) and SSE (http://localhost:3000/sse,已弃用)。

Prerequisites and Setup

You need a Lightning wallet connection string that supports NWC. To add an NWC connection: copy .env.example to .env and update the connection string. You can check the tool directory to test tools without an LLM.

Use Cases

Suitable for developers and users who want to integrate Bitcoin Lightning payments into AI agents or LLM workflows, for example letting AI applications send or receive Lightning payments, use L402 paid interfaces, etc. You can refer to Awesome AI Bitcoin to learn about scenarios for using Alby MCP.

Limitations and Notes

  • If connecting the wallet fails or the key is missing, please confirm that the full NWC connection key was copied and that there are no spaces.
  • It is recommended to use a better model (such as Claude Sonnet 3.7), otherwise the MCP server may not work properly.
  • HTTP mode only accepts requests within the Host header allowlist; browser requests will be rejected.
  • The address check for fetch_l402 is best-effort and may be bypassed by changes in DNS responses; it also does not follow redirects.
  • For support, visit support.getalby.com.
  • The repository also mentions Alby CLI, for agents that do not support MCP.

The above platforms, client names, commands, and URLs all come from the official description; other unmentioned fees, prices, or specific tool lists are not provided for now.