AbdelStark/bitcoin-mcp logo

AbdelStark/bitcoin-mcp

Free

使 AI 模型能与比特币交互的 MCP 服务器 (生成密钥/验证地址/解码交易/查询区块链等)。

FreeFree tier
Type
Open Source

About AbdelStark/bitcoin-mcp

A Model Context Protocol (MCP) server that enables AI models to interact with Bitcoin and Lightning Network. It allows AI agents to generate key pairs (address, public key, private key WIF), validate Bitcoin addresses, decode raw transactions into human-readable format, query blockchain data (latest block details, transaction info by TXID), and perform Lightning Network operations (decode BOLT11 invoices, pay invoices via LNBits wallet). The server integrates with Claude Desktop and Goose, and is available as an open-source npm package for easy setup with npx.

Key Features

Generate Bitcoin key pairs (address, public key, private key WIF)
Validate Bitcoin addresses for correctness
Decode raw Bitcoin transactions into human-readable format
Retrieve latest block details (hash, height, timestamp, transaction count)
Fetch detailed Bitcoin transaction information by TXID
Decode BOLT11 Lightning invoices with human-readable output
Pay Lightning invoices directly from an LNBits wallet
Seamless integration with Claude Desktop via MCP configuration
Integration with Goose as a local or remote extension
Easy setup using npx without manual installation

Pros & Cons

Pros
  • Open source and free to use with no licensing costs
  • Enables AI models to perform real Bitcoin and Lightning operations
  • Supports multiple integration methods (Claude Desktop, Goose)
  • No external dependencies for basic usage (runs via npx)
  • Detailed documentation with code examples and demo videos
  • Actively maintained with Docker and Smithery support
Cons
  • Requires Node.js and npm to run (not a standalone binary)
  • Lightning payment feature depends on an external LNBits wallet
  • Limited to read-only blockchain queries; no support for creating transactions or mining
  • Setup requires editing configuration files (e.g., claude_desktop_config.json)
  • Not designed for high-throughput production use; best suited for AI agent interactions

Best For

Generate Bitcoin key pairs for wallets or applicationsValidate Bitcoin addresses to prevent errors in transactionsAnalyze and decode raw Bitcoin transactions for debugging or explorationQuery the latest Bitcoin block or specific transaction detailsDecode Lightning invoices for payment verification or analysisExecute Lightning payments from an AI assistant using LNBits

FAQ

How do I use Bitcoin MCP with Claude Desktop?
Install the Claude Desktop app, then add an entry to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) under 'mcpServers' with command 'npx' and args ['-y', 'bitcoin-mcp@latest'].
What operations can the Bitcoin MCP server perform?
It can generate Bitcoin key pairs, validate addresses, decode transactions, query the latest block or transaction details, decode Lightning invoices, and pay Lightning invoices (requires LNBits wallet).
Is the Bitcoin MCP server free to use?
Yes, it is open source and free. You can run it using npx or clone the repository from GitHub.