MCP Hub
Back to servers

Bitcoin MCP

MCP server for Bitcoin Core nodes — 32 tools for AI agents to query blockchain data

Registry
Updated
Mar 7, 2026

Quick Install

uvx bitcoin-mcp

bitcoin-mcp

PyPI MCP Registry Python 3.10+ License: MIT Tests

MCP server for Bitcoin Core/Knots nodes. 35 tools, 6 prompts, 7 resources for AI agents to query the blockchain, analyze mempool fee markets, decode transactions, broadcast transactions, decode Lightning invoices, inspect mining economics, and explore the protocol.

Runs against your local node — no API keys, no rate limits, no third-party dependencies.

The first Bitcoin MCP server on the official Anthropic MCP Registry.

No Node? No Problem

Point at a hosted Satoshi API instance instead of running your own node:

SATOSHI_API_URL=https://bitcoinsapi.com bitcoin-mcp

This adds a query_remote_api tool that proxies requests through the REST API, with optional L402 Lightning micropayments.

60-Second Quickstart

# 1. Install
pip install bitcoin-mcp

# 2. Add to Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "bitcoin": { "command": "bitcoin-mcp" }
  }
}

# 3. Ask Claude: "What's the current Bitcoin fee environment?"

That's it. The server auto-detects your node via cookie authentication.

Install

pip install bitcoin-mcp

Configuration

Override with environment variables if needed:

BITCOIN_RPC_HOST=127.0.0.1
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_USER=myuser
BITCOIN_RPC_PASSWORD=mypassword
BITCOIN_DATADIR=E:/
BITCOIN_NETWORK=mainnet          # mainnet (default) | testnet | signet | regtest
SATOSHI_API_URL=https://bitcoinsapi.com  # optional: use remote API instead of local node

35 Tools

Node & Network (3)

ToolDescription
get_node_statusChain, height, sync progress, disk, connections, version
get_peer_infoConnected peer addresses, latency, services
get_network_infoProtocol version, relay fee, warnings

Blockchain & Blocks (6)

ToolDescription
analyze_blockFull analysis: pool ID, SegWit/Taproot adoption, fee distribution
get_blockchain_infoChain, difficulty, softforks, chain work
get_block_statsRaw statistics: median fee, total output, subsidy
get_chain_tx_statsTransaction rate over N blocks
get_chain_tipsActive chain, forks, and stale branches
search_blocksBlock stats for a range of heights (max 10)

Mempool (4)

ToolDescription
analyze_mempoolFee buckets, congestion level, next-block minimum fee
get_mempool_entryDetails of a specific unconfirmed tx
get_mempool_infoQuick stats: count, bytes, min relay fee
get_mempool_ancestorsAncestor transactions for CPFP analysis

Transactions (4)

ToolDescription
analyze_transactionFull decode + inscription detection + fee analysis
decode_raw_transactionDecode raw hex without input lookup
send_raw_transactionBroadcast a signed transaction (with fee safety limit)
check_utxoCheck if a specific output is unspent

Fee Estimation (4)

ToolDescription
get_fee_estimatesRates for 1/3/6/25/144 block targets
get_fee_recommendationPlain-English send/wait advice
estimate_smart_feeCustom confirmation target
compare_fee_estimatesSide-by-side urgency labels + cost for 140vB tx

Mining (2)

ToolDescription
get_mining_infoDifficulty, hashrate, block size
analyze_next_blockBlock template: revenue, fee percentiles, top-fee txs

UTXO Set (2)

ToolDescription
get_utxo_set_infoTotal UTXOs, supply, disk size (slow: ~1-2 min)
get_block_countCurrent block height (fast)

AI Developer Tools (8)

ToolDescription
describe_rpc_commandStructured help for any RPC command
list_rpc_commandsAll commands grouped by category
search_blockchainSmart router: auto-detects txid, block hash/height, or address
explain_scriptDecode script hex into readable opcodes
get_address_utxosScan UTXO set for an address
validate_addressValidate and classify address type (P2PKH/P2SH/P2WPKH/P2WSH/P2TR)
get_difficulty_adjustmentEpoch progress, estimated adjustment percentage
compare_blocksSide-by-side block statistics comparison

Lightning (1)

ToolDescription
decode_bolt11_invoiceDecode a BOLT11 Lightning invoice (no LN node needed)

6 Agent Workflow Prompts

Pre-built multi-step analysis templates that agents can invoke:

PromptDescription
analyze_fee_environmentFee market analysis with send/wait recommendation
investigate_transactionDeep-dive transaction investigation
monitor_mempool_feesWatch for fee drops below threshold
taproot_adoption_reportP2TR adoption trends over recent blocks
network_health_reportComprehensive network health assessment
track_transactionTrack a tx from mempool to confirmation

7 Resources

Static data endpoints for AI agents:

  • bitcoin://node/status — node summary
  • bitcoin://fees/current — fee estimates
  • bitcoin://mempool/snapshot — mempool analysis
  • bitcoin://connection/status — connection status + troubleshooting hints
  • bitcoin://protocol/script-opcodes — Bitcoin Script opcodes reference
  • bitcoin://protocol/address-types — address type properties and BIPs
  • bitcoin://protocol/sighash-types — signature hash types

Example Configs

See examples/ for ready-to-use config snippets:

What Makes This Different

Featurebitcoin-mcpCompetitors
Official MCP RegistryYesNo
Tools / Prompts / Resources35 / 6 / 7Fewer
Data sourceYour local nodeThird-party APIs
No-node fallbackSatoshi API remoteN/A
Mempool analysisFee bucketing, congestion, CPFPBasic stats only
Inscription detectionYesNo
Pool identificationYesNo
SegWit/Taproot metricsYesNo
Next-block predictionYesNo
Agent workflow prompts6 built-inNone
Rate limitsNoneAPI-dependent
Typed responsesPydantic modelsRaw JSON

CLI

bitcoin-mcp              # Start MCP server (default)
bitcoin-mcp --version    # Print version
bitcoin-mcp --check      # Test RPC connection and exit

Requirements

  • Python 3.10+
  • Bitcoin Core or Bitcoin Knots with server=1 in bitcoin.conf
  • txindex=1 recommended for transaction lookups

Related

License

MIT

Reviews

No reviews yet

Sign in to write a review