Bitcoin MCP Server
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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bitcoin MCP Server get transaction details for 15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
βΏ 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-blockstream-info
Quick Start
Ready to explore Bitcoin blockchain data? Install in seconds:
Install in Cursor (Recommended):
Or install manually:
npm install -g @jamesanz/bitcoin-mcp
# Or from source:
git clone https://github.com/JamesANZ/bitcoin-mcp.git
cd bitcoin-mcp && npm install && npm run buildFeatures
π 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:
cursor://anysphere.cursor-deeplink/mcp/install?name=bitcoin-mcp&config=eyJiaXRjb2luLW1jcCI6eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBqYW1lc2Fuei9iaXRjb2luLW1jcCJdfX0=Manual Installation
Requirements: Node.js 18+ and npm
# Clone and build
git clone https://github.com/JamesANZ/bitcoin-mcp.git
cd bitcoin-mcp
npm install
npm run build
# Run server
npm startClaude Desktop
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bitcoin-mcp": {
"command": "npx",
"args": ["@jamesanz/bitcoin-mcp"]
}
}
}Restart Claude Desktop after configuration.
Usage Examples
Get Address Statistics
View funded/spent amounts and transaction counts for any Bitcoin address:
{
"tool": "get-address-stats",
"arguments": {
"address": "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv"
}
}Get Transaction History
Retrieve recent transactions for an address:
{
"tool": "get-address-transactions",
"arguments": {
"address": "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv",
"limit": 5
}
}Get Transaction Details
View complete information about a specific transaction:
{
"tool": "get-transaction",
"arguments": {
"txid": "15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521"
}
}Get Block Information
Retrieve block details by height:
{
"tool": "get-block",
"arguments": {
"block_height": 857808
}
}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
lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqaβΏ Bitcoin: bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
Ξ Ethereum/EVM: 0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f
Available Tools
7 toolsdecode_invoiceC
Decode a Lightning invoice
Inputs: invoice (required).
decode_txC
Decode a Bitcoin transaction
Inputs: rawHex (required).
generate_keyB
Generate a new Bitcoin key pair and address
Inputs: no named parameters.
get_latest_blockC
Get the latest block
Inputs: no named parameters.
get_transactionC
Get transaction details
Inputs: txid (required).
pay_invoiceC
Pay a Lightning invoice
Inputs: invoice (required).
validate_addressC
Validate a Bitcoin address
Inputs: address (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no ambiguity: decode_invoice and decode_tx handle decoding different data types, generate_key creates new keys, get_latest_block and get_transaction retrieve blockchain data, pay_invoice processes payments, and validate_address checks addresses. The descriptions reinforce these distinct roles, making misselection unlikely.
All tools follow a consistent verb_noun pattern with snake_case throughout, such as decode_invoice, get_transaction, and validate_address. This predictability makes the tool set easy to navigate and understand at a glance, with no deviations in naming style.
With 7 tools, this server is well-scoped for Bitcoin and Lightning operations, covering key areas like transaction handling, address management, and invoice processing. Each tool earns its place without feeling excessive or insufficient for the domain.
The tool set provides strong coverage for core Bitcoin and Lightning workflows, including decoding, retrieval, generation, validation, and payment. A minor gap exists in lifecycle operations, such as creating or broadcasting transactions, but agents can likely work around this with the existing tools.
Maintenance
Related MCP Connectors
Read-only Bitcoin blockchain, mempool, mining, market, and on-chain analytics; no API key.
mempool.space MCP β Bitcoin block explorer + mempool/fee stats
Bitcoin intelligence API. Pay per call via L402 Lightning (10-200 sats). No accounts needed.
Bitcoin full node data via MCP: fees, mempool, txs, whales, SEC. $0.001/call USDC on Base.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides AI agents with real-time and historical Bitcoin network data by wrapping the mempool.space WebSocket and REST APIs. It enables tracking addresses, monitoring blocks, and retrieving transaction details or fee estimates through natural language.MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying Bitcoin blockchain data including blocks, transactions, addresses, mempool, and fee estimates via the Blockstream.info Esplora API.150 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides real Bitcoin full node data via 17 tools, with pay-per-call in USDC on Base mainnet. Free tools include blockchain info, fees, and mempool; paid tools enable transaction tracking, address analysis, and more.MIT
- AlicenseBqualityDmaintenanceEnables Bitcoin blockchain data retrieval and analysis through free APIs, including transaction, address, market data, and network metrics.123MIT