Bitcoin & Lightning Network MCP Server – exposes tools for key generation, address validation, transaction/block queries and Lightning invoice/payment so that AI agents (Claude Desktop, Goose, etc.) can interact with the Bitcoin blockchain via the Model Context Protocol.
https://github.com/AbdelStark/bitcoin-mcpStop copying and pasting transaction IDs and wallet addresses between your terminal and Claude. This MCP server connects your AI agents directly to Bitcoin and Lightning Network, turning them into blockchain-native tools that can generate keys, validate addresses, decode transactions, and execute Lightning payments.
Your AI agents can now handle Bitcoin operations without you switching contexts. Generate new addresses on demand, validate transactions, query the latest block data, and even process Lightning invoices—all through natural language commands to Claude or Goose.
Key Operations:
Integration Ready: Works out of the box with Claude Desktop and Goose AI agent framework. One config file edit and you're running blockchain queries through AI.
Crypto Development Workflows: Instead of manually checking if that address format is valid or looking up transaction confirmations on block explorers, ask your AI. It fetches live data and validates formats instantly.
Lightning App Development: Debug Lightning invoices by having Claude decode them for you. Process test payments during development without switching to separate Lightning tools.
Portfolio Management: Query your transaction history and current block height without leaving your AI conversation. Perfect for developers building Bitcoin applications who need quick blockchain data.
Educational Use: Teaching Bitcoin development? Your AI can now demonstrate key generation, show transaction structure, and explain Lightning invoice formats with live examples.
Claude Desktop - Add one JSON block to your config:
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["-y", "bitcoin-mcp@latest"]
}
}
}
Goose Agent - Configure as either local subprocess or remote service:
goose session --with-extension "bitcoin"
Development Setup - Standard Node.js workflow:
git clone https://github.com/AbdelStark/bitcoin-mcp.git
npm install && npm run build
Lightning Network features require LNBits configuration, but core Bitcoin functionality works immediately.
You're building AI-powered workflows, but hitting the limits when you need blockchain data. Instead of training models on outdated blockchain information or building custom APIs, this MCP server gives your existing AI tools direct, real-time access to Bitcoin and Lightning networks.
The server handles the complexity of Bitcoin cryptography, RPC calls, and Lightning protocol interactions. Your AI gets clean, structured data it can reason about and act on. You stay in your development flow without context switching to blockchain explorers or command-line tools.
Built with bitcoinjs-lib, proper TypeScript implementation, and comprehensive error handling. Ready for both experimentation and production workflows.