Bitcoin MCP

v0.5.1
io.github.Bortlesboat/bitcoin-mcp Checked 15 hours ago Published 8 months ago

49 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

VariableWhat it is
BITCOIN_RPC_HOSToptional Bitcoin Core RPC host (default: 127.0.0.1)
BITCOIN_RPC_PORToptional Bitcoin Core RPC port (default: auto-selected by network)
BITCOIN_NETWORKoptional Bitcoin network: mainnet, testnet, signet, or regtest (default: mainnet). Sets default RPC port if BITCOIN_RPC_PORT is not set.
SATOSHI_API_URLoptional Override the default hosted API URL (default: https://bitcoinsapi.com). The hosted API is used automatically when no local node is detected.
SATOSHI_API_KEYoptional 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.1
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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