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": []
}
- 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