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"
}
}
}
}
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