Skip to main content
Glama
btc-explorer-mcp

btc-explorer-mcp

btc-explorer-mcp

An unofficial MCP server that wraps Bitcoin.com's free, keyless, read-only Explorer API — with local caching, rate-limit handling, and stdio transport.

License MCP Keyless

Why

Bitcoin.com launched a free public Explorer API and remote MCP server in November 2026 — no API key, no signup, 60 uncached requests/min/IP. This project gives you a local stdio server over that data, so clients that only speak stdio (Claude Desktop, Cursor, Cline, older Codex setups) can use it too.

It is a derivative work built on the official Model Context Protocol TypeScript SDK. Attribution is in NOTICE. This project is not affiliated with Bitcoin.com.

Related MCP server: mcp-mempool-space

What it adds over calling the API directly

  • stdio transport — works with any MCP client that launches local processes.

  • TTL cache (60s) — repeated lookups of the same block/tx/address don't burn the 60 req/min quota.

  • Rate-limit handling — a clear 429 message with Retry-After instead of an opaque failure.

  • Complete toolset — the three JSON endpoints plus get_chain_tip and search, which only exist on the official remote MCP; this server forwards those transparently.

  • Enriched output — every result carries the plain-English explanation, the source url, an asOf timestamp, and an attribution field.

  • No credentials required — fully keyless by default. An optional env var exists for a future authenticated tier; nothing is hardcoded.

Tools

Tool

Input

Data source

get_block

id (height or 64-hex hash)

Bitcoin.com JSON API

get_transaction

txid (64 hex)

Bitcoin.com JSON API

get_address

address (mainnet)

Bitcoin.com JSON API

get_chain_tip

none

Bitcoin.com remote MCP

search

query (height/hash/txid/address/xpub)

Bitcoin.com remote MCP

All tools are read-only (readOnlyHint: true).

Install

npm install
npm run build

Requires Node.js 20+ (tested on v22).

Configure your MCP client

Claude Desktop / Cursor / Windsurf (claude_desktop_config.json or .cursor/mcp.json):

{
  "mcpServers": {
    "btc-explorer": {
      "command": "node",
      "args": ["/absolute/path/to/btc-explorer-mcp/dist/index.js"]
    }
  }
}

Claude Code / Codex:

claude mcp add btc-explorer -- node /absolute/path/to/btc-explorer-mcp/dist/index.js
# or: codex mcp add btc-explorer -- node /absolute/path/to/btc-explorer-mcp/dist/index.js

Authentication

None required. Bitcoin.com's free tier is keyless (no key is needed, per their API docs).

If Bitcoin.com later exposes an authenticated tier, set:

export BITCOIN_COM_API_KEY="your-own-key-here"

The key is read from the environment at runtime and sent as a Bearer token. It is never stored in this repository, config files, or logs. Never paste keys into agent chat.

Test

node scripts/smoke-test.mjs

This spawns the server over stdio, performs the MCP handshake, lists tools, and calls all five tools with real network requests. Verified output on 2026-11-29: all 5 tools pass against live Bitcoin mainnet data.

Rate limits

Bitcoin.com allows 60 uncached requests per minute per IP. Over the limit the API returns 429 with Retry-After. This server caches responses for 60s to reduce quota use; if you still hit the limit, wait for the Retry-After interval or supply your own key.

Scope and disclaimer

  • Read-only Bitcoin mainnet data. No wallet, no signing, no transactions, no keys.

  • Unofficial. Not affiliated with, endorsed by, or operated by Bitcoin.com. Trademarks belong to their owners.

  • Derivative work. Built on the Apache-2.0/MIT MCP TypeScript SDK (Copyright Anthropic) and Zod (MIT). See NOTICE.

  • Free tier terms are set by Bitcoin.com and may change. Check their API docs before relying on it.

License

Apache-2.0. See LICENSE and NOTICE for upstream attribution.

Available Tools

5 tools
get_addressA
Read-only

Get balance and lifetime totals for a Bitcoin mainnet address, with a plain-English explanation. Data: Bitcoin.com Explorer.

Inputs: address (required).

get_blockA
Read-only

Get a Bitcoin mainnet block by height or hash. Returns full block data plus a plain-English explanation and the explorer URL. Data: Bitcoin.com Explorer.

Inputs: id (required).

get_chain_tipA
Read-only

Get the latest Bitcoin block: height, hash and time mined. Forwarded from Bitcoin.com's official remote MCP.

Inputs: no named parameters.

get_transactionA
Read-only

Get a Bitcoin transaction by txid. Returns value, fee, confirmations, inputs/outputs and a plain-English explanation. Data: Bitcoin.com Explorer.

Inputs: txid (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    The four get_* tools each target a clearly distinct Bitcoin resource (block, transaction, address, chain tip), so misselection between them is unlikely. The only soft overlap is `search`, which can resolve block/txid/address/xpub and thus partially duplicates the getters; its description frames it as a lightweight resolver, which mitigates but does not eliminate the ambiguity.

    Naming Consistency4/5

    Four of five tools follow a clean verb_noun pattern (get_block, get_transaction, get_address, get_chain_tip), which reads as a coherent explorer vocabulary. `search` breaks the pattern by being a bare verb with no noun, a minor deviation in an otherwise predictable set.

    Tool Count4/5

    Five tools is a tight, focused surface for a Bitcoin explorer, and each tool clearly earns its place with no filler. It sits at the lean end for the domain—single-resource lookups only—but is not thin enough to be a problem.

    Completeness4/5

    Core lifecycle coverage for an explorer is present: block, transaction, address, chain tip, and a type-agnostic resolver for when the input type is unknown. Gaps exist around richer history (per-address transaction lists, xpub detail beyond resolution, mempool/fee data), but agents can route most queries through search plus the getters.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Provides real-time Bitcoin blockchain data by querying the mempool.space API, offering tools to get address statistics, transaction history, UTXOs, transaction details, and block information.
      7
      24 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for Bitcoin block explorer and mempool/fee statistics, providing tools to query fees, mempool stats, blocks, transactions, addresses, hashrate, and mining pools.
      64 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Read-only MCP server that monitors a Bitcoin Core full node via JSON-RPC, providing tools to check node status, network info, mempool, and peer information.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for querying live Bitcoin data from mempool.space, including recommended fees, mempool stats, blocks, transactions, addresses, and price. No API key required.
      7
      MIT