Please use Alby MCP instead! This repository has been deprecated in favor of Alby MCP, which includes all the NWC tools along with additional Lightning tools. Connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect (NWC or NIP-47). This MCP server uses the official MCP TypeScript SDK If your agent supports SSE (e.g. N8N) or HTTP Streamable transports, you can connect to Alby's MC
Add this skill
npx mdskills install getalby/nwc-mcp-serverWell-documented Bitcoin Lightning wallet integration with multiple transport modes and platform examples.
1# ⚠️ DEPRECATED ⚠️23**Please use [Alby MCP](https://github.com/getAlby/mcp/) instead!**45This repository has been deprecated in favor of Alby MCP, which includes all the NWC tools along with additional Lightning tools.67# NWC MCP Server89Connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect ([NWC](https://nwc.dev/) or [NIP-47](https://github.com/nostr-protocol/nips/blob/master/47.md)).1011This MCP server uses the [official MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk)1213> See also the [Alby MCP server](https://github.com/getAlby/mcp) which includes additional useful tools.1415## Quick Start1617### Use the Alby-Hosted MCP Server1819If your agent supports SSE (e.g. N8N) or HTTP Streamable transports, you can connect to Alby's MCP server.2021- SSE: `https://mcp.getalby.com/sse`22- HTTP Streamable: `https://mcp.getalby.com/mcp`2324Both require providing an NWC connection secret as `Bearer` authentication.2526### Add to Claude Desktop2728Add this to your claude_desktop_config.json:2930```json31{32 "mcpServers": {33 "nwc": {34 "command": "npx",35 "args": ["-y", "@getalby/nwc-mcp-server"],36 "env": {37 "NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE"38 }39 }40 }41}42```4344### Add to Goose45461. Type `goose configure`472. Add extension -> Command Line Extension483. Call it `nwc`494. What command should be run: `npx -y @getalby/nwc-mcp-server`505. Timeout: 30516. Description: no527. environment variables: yes538. environment variable name: `NWC_CONNECTION_STRING`549. environment variable value: `nostr+walletconnect://...` (your NWC connection secret here)5556### Add to Cline5758> Copy the below and paste it into a cline prompt. It should prompt you to update the connection string.5960```json61Add the following to my MCP servers list:6263"nwc": {64 "command": "npx",65 "args": ["-y", "@getalby/nwc-mcp-server"],66 "env": {67 "NWC_CONNECTION_STRING": "nostr+walletconnect://..."68 },69 "disabled": false,70 "autoApprove": []71}72```7374### Add to N8N via SSE7576You 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.7778Tested with OpenRouter + anthropic/claude-3.7-sonnet7980See the [N8N workflow](examples/n8n-sse) for a simple example8182### Add to N8N via STDIO (Community Node)8384Currently this MCP server only works via command line (STDIO).8586You can install the [n8n-nodes-mcp](https://github.com/nerding-io/n8n-nodes-mcp) community node and run n8n with tools enabled e.g.8788```bash89N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true npx n8n90```9192Create 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).9394Configure the MCP Client by adding a credential with Command Line (STDIO) selected.9596command: `npx`97arguments: `-y @getalby/nwc-mcp-server`98environments `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)99100See the [N8N paid chat workflow](examples/n8n-paid-chat-stdio) for a full example101102## Modes103104### STDIO105106By default NWC MCP Server runs locally in `STDIO` mode.107108### HTTP109110You 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).111112HTTP requires bearer authorization, where the token is a wallet's NWC connection secret.113114## From Source115116### Prerequisites117118- Node.js 20+119- Yarn120- A connection string from a lightning wallet that supports NWC121122### Installation123124```bash125yarn install126```127128### Building129130```bash131yarn build132```133134### Add your NWC connection135136Copy `.env.example` to `.env` and update your connection string137138### Inspect the tools (use/test without an LLM)139140`yarn inspect`141142### Supported Tools143144See the [tools directory](./src/tools)145
Full transparency — inspect the skill content before installing.