MCP.so
登录

MCP Blockchain Query Server

@pavel-bc

关于 MCP Blockchain Query Server

🤖 MCP server for querying BTC data via Blockchain.com APIs

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

pavel-bc

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-blockchain-query": {
      "command": "python",
      "args": [
        "main.py"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Blockchain Query Server?

MCP Blockchain Query Server is a Model Context Protocol server that provides tools for querying Bitcoin blockchain data via the Blockchain.com Data and Query APIs. It is intended for developers who need to retrieve live BTC blockchain information through a standardized MCP interface.

How to use MCP Blockchain Query Server?

Install dependencies with pip install -r requirements.txt inside a Python virtual environment, then run python main.py for stdio mode or python main.py --transport sse --port 8000 for SSE mode. Optional CLI arguments: --port (default 8000) and --transport (stdio or sse, default stdio).

Key features of MCP Blockchain Query Server

  • Supports both stdio and SSE transport modes
  • 17 built-in MCP tools for BTC blockchain queries
  • Get block, transaction, and address details by hash
  • Retrieve blockchain statistics (difficulty, hash rate, average transaction size)
  • Access market price and network metrics (block reward, interval, next retarget)
  • Query unconfirmed transaction count and 24-hour transaction count

Use cases of MCP Blockchain Query Server

  • Retrieve the current Bitcoin block height and difficulty
  • Look up a specific transaction or address balance
  • Monitor network statistics like hash rate and average transaction size
  • Check the latest market price and block reward
  • Get the current unconfirmed transaction count

FAQ from MCP Blockchain Query Server

What transport modes are supported?

Both stdio (default) and SSE (Server-Sent Events) are supported. Use --transport sse to enable SSE and specify a port with --port.

How do I install and run the server?

Create a Python virtual environment, install dependencies from requirements.txt, and run python main.py. For SSE mode, append --transport sse --port 8000.

What tools are available?

The server provides 17 tools: get block by hash, get transaction by hash, get address by hash, get block count, get difficulty, get address balance, get hash rate, get average transaction size, get total bitcoins, get probability of finding a block, get 24-hour market price, get block interval, get block reward, get next retarget, get latest hash, get unconfirmed count, and get 24-hour transaction count.

Which blockchain does the server query?

It queries Bitcoin (BTC) data via the Blockchain.com Data and Query APIs.

What runtime dependencies are required?

Python 3, a virtual environment, and the packages listed in requirements.txt are required. The majority of the code in this repository was generated using Grok 3 Beta.

评论

其他 分类下的更多 MCP 服务器