Bitcoin MCP server
io.github.Bortlesboat/bitcoin-mcp·v0.5.1·5 stars49 Bitcoin tools for AI agents: fees, mempool, blocks, mining, price. Zero config.
5 stars61 downloads/wk
Reviews
Write oneNobody has reviewed Bitcoin MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Bitcoin MCP tools (49, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
analyze_blockAnalyze a block: mining pool, SegWit/Taproot adoption, fee distribution, revenue.
analyze_mempoolAnalyze the mempool: tx count, fee buckets, congestion level, next-block minimum fee.
analyze_next_blockPredict next block: transactions, weight utilization, miner revenue, fee percentiles, top-fee txs.
analyze_psbt_securityAnalyze a PSBT for ordinals inscription listing mempool sniping vulnerability.
analyze_transactionDecode and analyze a transaction: inputs, outputs, fee rate, SegWit/Taproot flags, inscription detection.
check_utxoCheck if a specific transaction output is unspent (UTXO lookup).
compare_blocksCompare block statistics between two block heights side by side.
compare_fee_estimatesCompare fee estimates side-by-side with urgency labels and cost for a typical 140 vB transaction.
decode_bolt11_invoiceDecode a BOLT11 Lightning invoice without external dependencies.
decode_raw_transactionDecode a raw transaction hex without looking up inputs.
describe_rpc_commandGet structured help for a Bitcoin RPC command: description, arguments, examples.
estimate_smart_feeGet fee estimate for a specific confirmation target.
estimate_transaction_costEstimate Bitcoin transaction cost in sats AND USD at different urgency levels. Supports address types: p2pkh (legacy), p2sh-p2wpkh (nested segwit), p2wpkh (native segwit), p2tr (taproot). Shows how much you save by waiting.
explain_inscription_listing_securityExplain in plain language whether an ordinals inscription listing is snipe-resistant.
explain_scriptDecode a Bitcoin Script hex and break down the opcodes.
generate_keypairGenerate a new Bitcoin address via the connected node's wallet. Requires a local node with a wallet loaded — not available when using the hosted Satoshi API.
get_address_balanceGet the total balance, transaction count, and first/last seen times for a Bitcoin address.
get_address_historyGet paginated transaction history for a Bitcoin address.
get_address_utxosScan the UTXO set for all unspent outputs belonging to an address. Note: scans full UTXO set, may take minutes.
get_block_countGet current block height (lightweight, fast).
get_block_statsGet raw block statistics: median fee, total output, subsidy, weight, tx count.
get_blockchain_infoGet blockchain info: chain, difficulty, softfork statuses, chain work, pruning.
get_btc_priceGet current BTC/USD price from CoinGecko (free, no API key). Returns price, 24h change, and market cap. Use this to convert sat/vB fees into dollar amounts.
get_chain_tipsGet chain tips: active chain, forks, and stale branches. Useful for detecting chain splits.
get_chain_tx_statsGet transaction rate statistics over N blocks.
get_difficulty_adjustmentCalculate difficulty adjustment progress: blocks into epoch, blocks remaining, estimated time, and projected adjustment.
get_fee_estimatesGet fee rate estimates for 1/3/6/25/144 block confirmation targets in sat/vB.
get_fee_recommendationGet a plain-English fee recommendation based on current estimates, with raw rate data.
get_halving_countdownGet a focused countdown to the next Bitcoin halving: blocks remaining, estimated date, and subsidy change.
get_indexed_transactionGet enriched transaction details from the blockchain indexer.
get_indexer_statusCheck the blockchain indexer sync progress.
get_market_sentimentGet Bitcoin Fear & Greed Index: current value (0-100), classification (Extreme Fear/Fear/Neutral/Greed/Extreme Greed), and 7-day history. Use this to gauge market sentiment alongside price data.
get_mempool_ancestorsGet all unconfirmed ancestor transactions of a mempool transaction. Useful for CPFP analysis.
get_mempool_entryGet details of a specific unconfirmed transaction in the mempool.
get_mempool_infoGet quick mempool stats: transaction count, size in bytes, min relay fee.
get_mining_infoGet mining info: difficulty, network hashrate, current block size.
get_mining_pool_rankingsGet top 10 Bitcoin mining pools by hashrate share over the last week. Returns pool name, percentage of total hashrate, and block count. Use this to understand mining centralization and pool dominance.
get_network_infoGet network info: protocol version, relay fee, connections, warnings. In hosted API mode, reflects the API server's network view.
get_node_statusGet Bitcoin network status: chain, height, sync progress, disk usage, connections, version. In hosted API mode, reflects the API server's node.
get_peer_infoGet connected peer details: addresses, latency, services, version. In hosted API mode, shows the API server's peers.
get_situation_summaryGet a quick Bitcoin briefing: price, fees, mempool, and chain tip in one call. Use this as your first call to understand current conditions — replaces calling 5+ tools separately.
get_supply_infoGet Bitcoin supply data: circulating supply, max supply, inflation rate, subsidy per block, and next halving estimate.
get_utxo_set_infoGet UTXO set statistics: total UTXOs, total supply, disk size. Note: this is a slow operation (1-2 minutes on local nodes, may vary on hosted API).
list_rpc_commandsList all available RPC commands grouped by category.
query_remote_apiQuery a remote Satoshi API instance, auto-paying with Lightning if needed.
search_blockchainSmart search: auto-detects if query is a txid, block hash, block height, or address and returns the right data.
search_blocksGet block statistics for a range of heights. Max 10 blocks.
send_raw_transactionwrite actionBroadcast a signed raw transaction to the Bitcoin network.
validate_addressValidate a Bitcoin address and return its type (legacy/segwit/taproot), network, and script info. Use this to check if an address is valid before sending, or to identify what kind of address you're looking at.
Public scan report
scanner v0.1.10 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 18 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Bitcoin MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 65% of 48,255 servers
- Tools
- 49
- the typical server has 7
- Tools that change things
- 2%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 5
- more than 83% of 28,688 servers
- Downloads a week
- 61
- more than 49% of 12,191 servers with a package
What its tools let an agent do: 47 read · 1 create · 1 send or post
Install Bitcoin MCP in Claude Code, Cursor or VS Code
claude mcp add bitcoin-mcp -- uvx bitcoin-mcp
What the publisher says
From the Bitcoin MCP repository's README, as published. We do not edit it. Read it on GitHub
bitcoin-mcp
<!-- mcp-name: io.github.Bortlesboat/bitcoin-mcp -->
Give any AI agent Bitcoin superpowers — fee intelligence, mempool analysis, and 50 tools backed by your Bitcoin node or compatible API.
50 standard tools · 6 prompts · 8 resources · Bitcoin Core or compatible API backend · MIT licensed
If bitcoin-mcp is useful to you, consider giving it a star — it helps others discover the project.
pip install "bitcoin-mcp>=0.5.2"bitcoin-mcp needs a Bitcoin data backend. It auto-detects a local Bitcoin Core/Knots node from its cookie or RPC settings. Without a local node, set SATOSHIAPIURL to a compatible deployment.
Service status: the public Satoshi API previously hosted at bitcoinsapi.com is paused and should not be treated as a working default. Use a local node or an explicitly configured compatible API.
Install status
Version 0.5.2 includes the MCP SDK 1.x compatibility constraint and explicit backend selection. Upgrade older installations to receive these fixes.
Quick Start
Claude Desktop
Add to your claudedesktopconfig.json:
{
"mcpServers": {
"bitcoin": {
"command": "uvx",
"args": ["--from", "bitcoin-mcp>=0.5.2", "bitcoin-mcp"]
}
}
}Claude Code
claude mcp add bitcoin -- uvx --from "bitcoin-mcp>=0.5.2" bitcoin-mcpCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"bitcoin": {
"command": "uvx",
"args": ["--from", "bitcoin-mcp>=0.5.2", "bitcoin-mcp"]
}
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"bitcoin": {
"command": "uvx",
"args": ["--from", "bitcoin-mcp>=0.5.2", "bitcoin-mcp"]
}
}
}Zed
Add to your Zed settings.json under context_servers:
{
"context_servers": {
"bitcoin": {
"command": "uvx",
"args": ["--from", "bitcoin-mcp>=0.5.2", "bitcoin-mcp"]
}
}
}See the Zed MCP docs for the current settings location and custom server flow.
Docker
docker build -t bitcoin-mcp .
docker run -i bitcoin-mcpOr with docker compose:
docker compose upPass environment variables to connect to a local Bitcoin Core node or a compatible API:
docker run -i -e BITCOIN_RPC_HOST=host.docker.internal -e BITCOIN_RPC_PORT=8332 bitcoin-mcp
# or
docker run -i -e SATOSHI_API_URL=https://your-api.example bitcoin-mcpAsk whether to send Bitcoin now
Use this as the first useful activation path after install:
"I need to send a Bitcoin transaction today. Use bitcoin-mcp to decide whether to send now or wait, and show the fee rate you used."
Expected path:
- The agent calls getfeerecommendation.
- The answer gives a clear send now or wait recommendation with fee rates in sat/vB.
- If the backend is unavailable, configure a local node or set SATOSHIAPIURL before retrying.
After it works, Star this repo and share a short showcase with the prompt, tool call, and outcome so other Bitcoin agent builders can see the path.
Agent Integration
For repos that need Bitcoin tools, add bitcoin-mcp to the agent's MCP config and configure one of its supported backends:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Bitcoin MCP: common questions
- Is Bitcoin MCP server safe?
- Mostly: it is graded B (83/100). Read the Bitcoin MCP safety report
- How do I install Bitcoin MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Bitcoin MCP need an API key?
- Yes. The registry entry asks for
SATOSHI_API_KEY. - Is Bitcoin MCP maintained?
- The last commit was 55 days ago (2026-09-10). The latest release is v0.5.1.
- How does Bitcoin MCP compare with other MCP servers?
- safety score 83/100 (higher than 65% of 48,255 servers); tools 49 (the typical server has 7); tools that change things 2% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.