Bitcoin MCP
v0.5.149 Bitcoin tools for AI agents: fees, mempool, blocks, mining, price.
Starts only with mcp<2 (written for an older SDK); the install commands pin it.
Values you need
| Variable | What it is | |
|---|---|---|
BITCOIN_RPC_HOST | optional | Bitcoin Core RPC host (default: 127.0.0.1) |
BITCOIN_RPC_PORT | optional | Bitcoin Core RPC port (default: auto-selected by network) |
BITCOIN_NETWORK | optional | Bitcoin network: mainnet, testnet, signet, or regtest (default: mainnet). Sets default RPC port if BITCOIN_RPC_PORT is not set. |
SATOSHI_API_URL | optional | Override the default hosted API URL (default: https://bitcoinsapi.com). The hosted API is used automatically when no local node is detected. |
SATOSHI_API_KEY | optional secret | API key for authenticated access to the hosted Satoshi API (get one free at POST /api/v1/register) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add bitcoin-mcp -- uvx --with 'mcp<2' bitcoin-mcp==0.5.1Add to
claude_desktop_config.json{
"mcpServers": {
"bitcoin-mcp": {
"args": [
"--with",
"mcp<2",
"bitcoin-mcp==0.5.1"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"bitcoin-mcp": {
"args": [
"--with",
"mcp<2",
"bitcoin-mcp==0.5.1"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"bitcoin-mcp": {
"args": [
"--with",
"mcp<2",
"bitcoin-mcp==0.5.1"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.bitcoin-mcp]
command = "uvx"
args = ["--with", "mcp<2", "bitcoin-mcp==0.5.1"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_node_status, get_peer_info, get_network_info, get_blockchain_info, analyze_block, get_block_stats, get_chain_tx_stats, get_chain_tips, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json