GetAlby MCP logo

GetAlby MCP

by getAlby

Connects an NWC-enabled Lightning wallet to an AI agent for sending and receiving Bitcoin payments.

Install GetAlby 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": {
    "getalby-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@getalby/mcp"
      ],
      "env": {
        "NWC_CONNECTION_STRING": "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.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @getalby/mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

The getAlby/mcp MCP server connects AI agents to Bitcoin Lightning wallets through Nostr Wallet Connect (NWC). It can run locally over STDIO or use Alby's hosted Streamable HTTP and SSE endpoints, with the NWC connection secret supplied as an environment variable or bearer credential. Its payment knowledge includes NWC, LNURL, and L402 through Alby SDK libraries. Use it when an agent needs to interact with an NWC-compatible Lightning wallet.

Use cases

  • Send Lightning payments from an AI agent
  • Receive Lightning payments through an agent workflow
  • Connect an NWC-compatible wallet to an MCP client
  • Inspect wallet-related MCP tools without an LLM

Key features

  • Bitcoin Lightning wallet access
  • Nostr Wallet Connect authentication
  • Local STDIO transport
  • Streamable HTTP transport
  • LNURL and L402 knowledge
  • Hosted Alby MCP endpoints

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.

26/26 checks healthy over the last 89d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @getalby/mcp (npm)

Adoption & maintenance

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

GitHub stars66Stargazers on the source repository.
npm downloads250Package downloads in the last 30 days.
Last commit18d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How GetAlby MCP works

What getAlby/mcp MCP server does

The getAlby/mcp MCP server gives an MCP-compatible agent access to a Bitcoin Lightning wallet through Nostr Wallet Connect. The wallet connection is represented by an NWC connection string, typically beginning with nostr+walletconnect://. With a compatible wallet and client, agents can send and receive instant Lightning payments.

The project also includes knowledge of NWC, LNURL, and L402. These capabilities are implemented with the Alby JavaScript SDK and Alby Lightning Tools. The repository uses the official MCP TypeScript SDK.

Reach for the getAlby/mcp MCP server when an agent needs wallet-backed Lightning payment operations rather than general Bitcoin information. The wallet itself must support NWC, and the connection secret must be available to the server or remote endpoint.

How it works

In its default local mode, the server communicates with an MCP client over STDIO. The npm package can be launched with npx -y @getalby/mcp, while the wallet credential is passed through NWC_CONNECTION_STRING.

The project also supports an HTTP mode. Setting MODE=HTTP enables Streamable HTTP at http://localhost:3000/mcp and SSE at http://localhost:3000/sse; the README marks SSE as deprecated. Alby provides hosted endpoints at https://mcp.getalby.com/mcp and https://mcp.getalby.com/sse for clients that support remote MCP connections.

Remote requests authenticate with the NWC connection secret as a Bearer token. Clients that cannot set bearer authentication can pass the encoded secret in the nwc query parameter instead. Treat this value as a wallet credential.

Setup and configuration

For local use, install Node.js 20 or newer, then run the package through a client’s MCP configuration. The documented STDIO configuration sets NWC_CONNECTION_STRING to the complete NWC connection string. When working from source, install dependencies with Yarn, build with yarn build, and create .env from .env.example with the wallet connection string.

The hosted service avoids a local build. Configure the client with the hosted MCP or SSE URL and provide the NWC secret using the supported authentication method. The README includes setup instructions for Claude, Goose, Cline, N8N, Windsurf, and other MCP-capable environments.

Tools and capabilities

The getAlby/mcp MCP server exposes wallet-related MCP tools from the repository’s src/tools directory. The supported payment scope includes sending and receiving Lightning payments. Its documented protocol knowledge covers:

  • Nostr Wallet Connect (NWC)
  • LNURL
  • L402
  • Bitcoin Lightning wallet connections

The repository also provides a yarn inspect command for inspecting or testing the available tools without connecting an LLM.

Limitations and notes

A valid connection string from an NWC-compatible Lightning wallet is required. Connection failures can result from an incomplete or incorrectly copied secret, including spaces in the value.

Remote MCP support depends on the client. HTTP mode requires bearer authorization, and the hosted service requires the wallet’s NWC secret.

The project’s troubleshooting guidance recommends using a capable model, such as Claude Sonnet 3.7, for reliable MCP operation. SSE is available in the documented modes but is marked deprecated for the local HTTP mode.

Reviews

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

Frequently Asked Questions about GetAlby MCP

Run `npx -y @getalby/mcp` in an MCP client configuration and provide the `NWC_CONNECTION_STRING` environment variable.

Yes.

It needs a connection string from a Lightning wallet that supports Nostr Wallet Connect. Local mode uses `NWC_CONNECTION_STRING`; remote mode accepts the secret as Bearer authentication or an encoded `nwc` query parameter.

Yes. Setting `MODE=HTTP` enables local Streamable HTTP and SSE endpoints. Alby also provides hosted Streamable HTTP and SSE endpoints.

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