Connect a bitcoin lightning wallet to your LLM using Nostr Wallet Connect (NWC or NIP-47)
4 stars1 watching0 forks
NWC MCP Server
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
Quick Start
Add to Claude Desktop
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"
}
}
}
}
Add to Cline
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": []
}
From Source
Prerequisites
- Node.js 20+
- Yarn
- A connection string from a lightning wallet that supports NWC
Installation
yarn install
Building
yarn build
Add your NWC connection
Copy .env.example
to .env
and update your connection string
Inspect the tools (use/test without an LLM)
yarn inspect
Supported Tools
See the tools directory
Features
lightning
bitcoin
nostr
wallet
typescript
Category
Integrations