Best for
- Users who already have an NWC-compatible Lightning wallet and want an LLM to act on it
- Developers integrating bitcoin payment capability into MCP-capable clients like Claude, Goose, Cline, or Windsurf
An officially maintained bitcoin Lightning MCP server from Alby, offering both self-hosted STDIO and Alby-hosted SSE/HTTP Streamable access; the main risk is safeguarding and securely transmitting the NWC connection secret.
The Alby MCP Server is officially maintained by getAlby and built on the official MCP TypeScript SDK. It lets an LLM or agent operate a bitcoin Lightning wallet through the Nostr Wallet Connect (NWC) protocol, with built-in knowledge of NWC, LNURL, and L402 via the Alby SDK and Alby Lightning Tools. It can run locally over STDIO or connect to Alby's hosted remote endpoints over SSE and HTTP Streamable transports. See the src/tools directory in the repository for the specific set of supported tools.
Local: install Node.js 20+, then run the @getalby/mcp package via npx with an NWC_CONNECTION_STRING environment variable set to your wallet's NWC connection secret (or build from source with yarn install / yarn build, copy .env.example to .env, and test with yarn inspect). Remote: connect directly to Alby's hosted endpoints at https://mcp.getalby.com/sse or https://mcp.getalby.com/mcp, authenticating with your NWC secret either as a Bearer token or via the nwc query parameter. The README provides example configurations for Claude Desktop, Claude Web, Claude Code, Goose Desktop/CLI, Cline, Windsurf, and N8N.
{
"mcpServers": {
"nwc": {
"command": "npx",
"args": [
"-y",
"@getalby/mcp"
],
"env": {
"NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE"
}
}
}
}