1. Conduid
  2. Developer Tools
  3. getAlby/mcp
MCP server · Developer Tools

getAlby/mcp

Connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect and Model Context Protocol

Unclaimed Apache-2.0 devtools
66Good

Scored 3 days ago · breakdown

About getAlby/mcp

getAlby/mcp is an MCP server published by getAlby in the Developer Tools category: connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect and Model Context Protocol.

The repository has 66 stars and 20 forks, with the last commit 20 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/getAlby/mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about getAlby/mcp

Powered by Claude · Grounded in docs

I know everything about getAlby/mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.1.2v1.1.2 · 2 Oct 2026Upgrade note (HTTP mode only): the HTTP server now binds `127.0.0.1` by default and only accepts loopback `Host` headers. If you expose it on a network, set `BIND_HOST` (e.g. `0.0.0.0`) and `ALLOWED_HOSTS` (your hostname). Requests…
v1.1.1v1.1.1 · 16 Jul 2025What's Changed docs: add extra instructions for using Alby MCP by @rolznz in https://github.com/getAlby/mcp/pull/12 Readme adjustments by @MoritzKa in https://github.com/getAlby/mcp/pull/14 [Freepilot] chore: update tool descriptions unit…
v1.1.0v1.1.0 · 23 Jun 2025Initial release of Alby MCP server, with a combination of tools from NWC (Alby JS SDK) and LNURL (Alby Lightning Tools) What's Changed readme: add example of the Authorization header by @bumi in https://github.com/getAlby/mcp/pull/2…

README

Alby Bitcoin Payments MCP Server

NEW: also checkout Alby CLI for agents that don't support MCP.

Connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect (NWC).

This MCP server uses the official MCP TypeScript SDK

This MCP server has knowledge of NWC, LNURL and L402 using Alby SDK and Alby Lightning Tools.

Take a look at Awesome AI Bitcoin for places where you can use the Alby MCP.

Quick Start

In case you get stuck, see troubleshooting section below.

Use the Alby-Hosted MCP Server

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

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

Authentication

Both require providing an NWC connection secret as authentication, either as Bearer authentication (preferred) or via the nwc query parameter.

Bearer Auth

Example: Authorization: Bearer nostr+walletconnect://...

If your agent UI supports bearer auth, just paste the connection secret into the bearer auth field.

Query Parameter

If your agent doesn't support bearer auth, you can pass the NWC connection secret as a query parameter.

Example: https://mcp.getalby.com/sse?nwc=ENCODED_CONNECTION_SECRET or https://mcp.getalby.com/mcp?nwc=ENCODED_CONNECTION_SECRET

To get ENCODED_CONNECTION_SECRET, open browser devtools (right click -> inspect) and enter this in the console, with your own NWC connection secret set:

encodeURIComponent("nostr+walletconnect://...");

In case there is a message asking for confirmation for pasting, follow the instructions, and then enter the above command again.

Once the command has run, copy the output and replace ENCODED_CONNECTION_SECRET. It will look like this: nostr%2Bwalletconnect%3A%2F%2F...

Add to Claude Web or Claude Desktop

Use the remote Alby MCP server

Currently, at least a Claude Pro subscription is required to be able to connect to remote MCP servers.

  1. Go to Settings -> Connectors
  2. Click on "Add custom connector"
  3. Call it alby
  4. What is the endpoint URI: https://mcp.getalby.com/mcp?nwc=ENCODED_NWC_URL (see above for instructions)

Client-side

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "nwc": {
      "command": "npx",
      "args": ["-y", "@getalby/mcp"],
      "env": {
        "NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE"
      }
    }
  }
}

Add to Goose Desktop

  1. Open Goose Desktop
  2. Go To Settings -> Advanced Settings
  3. Click on "Add custom Extension"
  4. Call it alby, and change the type to HTTP Streamable
  5. What is the SSE endpoint URI: https://mcp.getalby.com/mcp
  6. Timeout: 30
  7. Description: no
  8. environment variables: no

Add to Goose CLI

Use the Alby MCP server

  1. Type goose configure
  2. Add extension -> Remote Extension (HTTP Streamable)
  3. Call it alby
  4. What is the HTTP Streamable endpoint URI: https://mcp.getalby.com/mcp
  5. Timeout: 30
  6. Description: no
  7. environment variables: no
  8. add custom headers: yes
  9. header name: Authorization
  10. header value: Bearer nostr+walletconnect://... (replace with your connection secret)

Client-side

  1. Type goose configure
  2. Add extension -> Command Line Extension
  3. Call it alby
  4. What command should be run: npx -y @getalby/mcp
  5. Timeout: 30
  6. Description: no
  7. environment variables: yes
  8. environment variable name: NWC_CONNECTION_STRING
  9. environment variable value: nostr+walletconnect://... (your NWC connection secret here)

Add to Cline

Copy the below and paste it into a cline prompt. It should prompt you to update the connection string.

Add the following to my MCP servers list:

"nwc": {
  "command": "npx",
  "args": ["-y", "@getalby/mcp"],
  "env": {
    "NWC_CONNECTION_STRING": "nostr+walletconnect://..."
  },
  "disabled": false,
  "autoApprove": []
}

Add to Claude Code

Use the Alby MCP server

claude mcp add --transport http alby https://mcp.getalby.com/mcp --header "Authorization: Bearer nostr+walletconnect://..."

Add to N8N via SSE

You can use the native N8N MCP Client tool connected to an AI agent. Enter your SSE endpoint, set authentication to "Bearer" and paste your NWC connection secret.

Tested with OpenRouter + anthropic/claude-3.7-sonnet

See the N8N workflow for a simple example

Add to N8N via STDIO (Community Node)

Currently this MCP server only works via command line (STDIO).

You can install the n8n-nodes-mcp community node and run n8n with tools enabled e.g.

N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true npx n8n

Create a blank workflow and add an AI agent node. Configure your LLM model and add a new tool "MCP Client" (which will have a cube next to it showing it's a community node).

Configure the MCP Client by adding a credential with Command Line (STDIO) selected.

command: npx arguments: -y @getalby/mcp environments NWC_CONNECTION_STRING=nostr+walletconnect://your_key_here (create the whole line in a text editor and paste it in, since the password field cannot be switched to plaintext)

See the N8N paid chat workflow for a full example

Add to Windsurf

Use the remote Alby MCP server

  1. Download and open your Windsurf Editor
  2. Click on "Windsurf - Settings" in the toolbar at the bottom -> "Advanced Settings" -> "Cascade" -> Plugins (MCP Servers): Click on "Manage plugins" -> "View raw config" -> you'll see your "mcp_config.json"
  3. Paste this to your mcp_config.json:
{
  "mcpServers": {
    "alby": {
      "serverUrl": "https://mcp.getalby.com/sse?nwc=ENCODED_NWC_URL"
    }
  }
}
  1. Replace "ENCODED_NWC_URL" as descripted above. Click "Save" and restart the Windsurf editor.

Modes

STDIO

By default NWC MCP Server runs locally in STDIO mode.

HTTP

You can set the following environment variable: MODE=HTTP which will enable Streamable HTTP (http://localhost:3000/mcp) and SSE (http://localhost:3000/sse Note: SSE is deprecated).

HTTP requires bearer authorization, where the token is a wallet's NWC connection secret. See the authentication section further above in the README.

Request validation

The HTTP endpoints only accept requests whose Host header is allowlisted. Requests from browsers (carrying an Origin header) are refused; MCP clients that aren't browsers don't send one. fetch_l402 only fetches http(s) URLs whose hostname resolves to globally-routable addresses — loopback, link-local and private ranges are refused. This is a best-effort check: the hostname is resolved again when fetching, so a DNS server that changes its answer between the two lookups can bypass it. Configure via environment variables:

Variable Default Purpose
ALLOWED_HOSTS localhost, 127.0.0.1, [::1] Host header values to accept (comma-separated). When set, it replaces the defaults, so include localhost if you still want it. Set this to your public hostname when deploying (e.g. mcp.getalby.com).
BIND_HOST 127.0.0.1 Address the HTTP listener binds to. The default keeps it off the network; set :: (or 0.0.0.0) when deploying, or when running in Docker and connecting from the host.

fetch_l402 does not follow redirects; a URL that redirects returns an error.

From Source

Prerequisites

  • Node.js 20+
  • Yarn
  • A connection string from a lightning wallet that supports NWC

Installation

yarn install

Building

yarn build

Add your NWC connection

Copy .env.example to .env and update your connection string

Inspect the tools (use/test without an LLM)

yarn inspect

Supported Tools

See the tools directory

Troubleshooting

Model Usage

Make sure you use a decent model (e.g. Claude Sonnet 3.7) otherwise the MCP server will not work.

Failure to connect to wallet, secret missing

Make sure you copied the entire NWC connection secret, without spaces

Contact Alby Support

Visit support.getalby.com and we're happy to help you get the MCP server working.

README fetched from the repository 4 days ago. The original is authoritative.

Questions

About getAlby/mcp

How do I install getAlby/mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is getAlby/mcp safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is getAlby/mcp still maintained?

Yes — the latest release is v1.1.2 (2 Oct 2026), and the last commit was 20 days ago. The repository has 66 stars and 6 open issues.