The Bitcoin MCP Server provides comprehensive Bitcoin blockchain data access and utilities. You can query blockchain data by retrieving address statistics, transaction history, UTXOs, detailed transaction information by ID, and block data by height. It offers key management tools to generate new Bitcoin key pairs and addresses, validate address authenticity, and decode raw transaction hex data. The server provides real-time access to the latest Bitcoin block information. Additionally, it supports Lightning Network functionality for decoding and paying BOLT11 Lightning invoices.
Provides real-time Bitcoin blockchain data through the mempool.space API, offering tools to query address statistics, transaction histories, UTXOs, transaction details, and block information.
Used for schema validation of tool parameters, ensuring proper data validation for Bitcoin-related queries.
āæ Bitcoin MCP Server
Real-time Bitcoin blockchain data in your AI workflow. Query addresses, transactions, blocks, and UTXOs from the mempool.space API. No API keys required.
An MCP (Model Context Protocol) server that brings live Bitcoin blockchain data into AI coding environments like Cursor and Claude Desktop.
Why Use Bitcoin MCP?
š No API Keys ā Works out of the box with mempool.space
ā” Real-time Data ā Live blockchain data, addresses, transactions, blocks
šÆ Easy Setup ā One-click install in Cursor or simple manual setup
š Comprehensive ā Address stats, transaction history, UTXOs, block info
š Public API ā Uses reliable mempool.space infrastructure
Related MCP server: MCP Etherscan Server
Quick Start
Ready to explore Bitcoin blockchain data? Install in seconds:
Install in Cursor (Recommended):
Or install manually:
Features
š Address Tools
get-address-statsā Get funded/spent amounts, transaction countsget-address-transactionsā Transaction history with status, dates, feesget-address-utxosā Current unspent outputs with amounts and confirmations
š Transaction Tools
get-transactionā Complete transaction details (inputs, outputs, fees, confirmations)
š§± Block Tools
get-blockā Block information (hash, timestamp, size, transaction count, fees)
Installation
Cursor (One-Click)
Click the install link above or use:
Manual Installation
Requirements: Node.js 18+ and npm
Claude Desktop
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after configuration.
Usage Examples
Get Address Statistics
View funded/spent amounts and transaction counts for any Bitcoin address:
Get Transaction History
Retrieve recent transactions for an address:
Get Transaction Details
View complete information about a specific transaction:
Get Block Information
Retrieve block details by height:
Data Source
Source | Coverage | Update Frequency |
mempool.space | Bitcoin mainnet blockchain | Real-time |
All amounts are displayed in BTC (converted from satoshis). Timestamps are in ISO format.
Use Cases
Blockchain Analytics ā Track addresses, transactions, and blocks
Bitcoin Developers ā Build apps with real blockchain data
Researchers ā Analyze transaction patterns and network activity
Traders ā Monitor addresses and transaction flows
Technical Details
Built with: Node.js, TypeScript, MCP SDK
Dependencies: @modelcontextprotocol/sdk, superagent, zod
Platforms: macOS, Windows, Linux
API Endpoints:
GET /api/address/{address}ā Address statisticsGET /api/address/{address}/txsā Transaction historyGET /api/address/{address}/utxoā UTXOsGET /api/tx/{txid}ā Transaction detailsGET /api/block/{height}ā Block information
Contributing
ā If this project helps you, please star it on GitHub! ā
Contributions welcome! Please open an issue or submit a pull request.
License
MIT License ā see LICENSE.md for details.
Support
If you find this project useful, consider supporting it:
ā” Lightning Network
āæ Bitcoin: bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
Ī Ethereum/EVM: 0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f