Connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect and Model Context Protocol
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"
}
}
}
}
goose configure
nwc
npx -y @getalby/nwc-mcp-server
NWC_CONNECTION_STRING
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": []
}
yarn install
yarn build
Copy .env.example
to .env
and update your connection string
yarn inspect
See the tools directory