Skip to main content
Glama
btc-public-data

btc-public-data

by matthewrball

btc-public-data

本地 MCP 服务器及 CLI 封装公共 Bitcoin API。无密钥。无私有数据。

八个工具,CLI 与 MCP tools/list / tools/call 使用相同接口:

  • get_fees — mempool.space 推荐的 sat/vB

  • get_mempool — 积压交易数、vsize、总手续费

  • get_hashrate — 网络算力与难度

  • get_network — 来自 mempool.space 和 Blockstream 的链顶高度、难度、价格

  • get_tx — Blockstream 公共交易摘要

  • get_address — Blockstream 只读地址统计

  • get_lightning — Lightning 节点、通道、容量、典型手续费

  • snapshot — 单次调用仪表盘

第二数据源是 Blockstream Esplora,因此链顶 / 交易 / 地址可以独立校验。HTTP GET 请求使用 15 秒 TTL 缓存,并对 429 / 5xx 进行重试。

运行

bun src/cli.ts list
bun src/cli.ts snapshot
bun src/cli.ts get_fees
bun src/server.ts
bun test

Related MCP server: mcp-blockstream-info

可选的 Lightning 支持

该工具基于 MIT 许可且免费。一个可选的 5,000-sat Lightning 附加组件在 SUPPORT.md 中。

许可证

MIT © 2026 Matthew Ball

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
    9 npm
    4
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables querying Bitcoin blockchain data including blocks, transactions, addresses, mempool, and fee estimates via the Blockstream.info Esplora API.
    449 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides real Bitcoin full node data via 17 tools, with pay-per-call in USDC on Base mainnet. Free tools include blockchain info, fees, and mempool; paid tools enable transaction tracking, address analysis, and more.
    MIT