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
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"nwc": {
"command": "npx",
"args": ["-y", "@getalby/nwc-mcp-server"],
"env": {
"NWC_CONNECTION_STRING": "YOUR NWC CONNECTION STRING HERE"
}
}
}
}
- Type
goose configure
- Add extension -> Command Line Extension
- Call it
nwc
- What command should be run:
npx -y @getalby/nwc-mcp-server
- Timeout: 30
- Description: no
- environment variables: yes
- environment variable name:
NWC_CONNECTION_STRING
- environment variable value:
nostr+walletconnect://...
(your NWC connection secret here)
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/nwc-mcp-server"],
"env": {
"NWC_CONNECTION_STRING": "nostr+walletconnect://..."
},
"disabled": false,
"autoApprove": []
}
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/nwc-mcp-server
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
- Node.js 20+
- Yarn
- A connection string from a lightning wallet that supports NWC
yarn install
yarn build
Copy .env.example
to .env
and update your connection string
yarn inspect
See the tools directory