(DEPRECATED) Model Context Protocol (MCP) server that lets an LLM control a Bitcoin Lightning wallet via Nostr Wallet Connect (NWC / NIP-47).
https://github.com/getAlby/nwc-mcp-serverImportant Note: This project has been deprecated. The team at Alby has consolidated this functionality into their main Alby MCP server, which includes all NWC tools plus additional Lightning capabilities.
The NWC MCP Server was an early experiment in connecting Bitcoin Lightning wallets directly to LLM agents through the Model Context Protocol. It used Nostr Wallet Connect (NWC/NIP-47) to let your AI assistant handle real Bitcoin payments - checking balances, creating invoices, and sending payments on your behalf.
Before this, there was no standardized way for AI agents to interact with Lightning wallets. You'd have to:
This MCP server eliminated that friction by giving LLMs native Lightning wallet access through a single, secure connection.
The server acted as a bridge between your AI agent and Lightning wallet:
This opened up powerful workflows like:
{
"mcpServers": {
"nwc": {
"command": "npx",
"args": ["-y", "@getalby/nwc-mcp-server"],
"env": {
"NWC_CONNECTION_STRING": "YOUR_NWC_CONNECTION_STRING"
}
}
}
}
The server could run as an HTTP service, making it perfect for workflow automation platforms. You'd connect N8N's MCP Client to the SSE endpoint with your NWC connection as bearer auth.
The Alby MCP server includes everything this tool did, plus:
If you're interested in connecting Lightning wallets to AI agents, that's where the active development continues.
This project demonstrated how blockchain protocols could integrate seamlessly with AI agents through standardized interfaces like MCP. It paved the way for more sophisticated crypto-AI integrations where agents can handle real financial transactions autonomously within defined parameters.
The concept of giving AI agents controlled access to financial tools through secure, standardized protocols remains compelling - it's just moved to a more comprehensive implementation.