MCP Blockchain Query Server

by pavel-bc

Integrations

  • Provides tools for querying Bitcoin blockchain data including blocks, transactions, addresses, network statistics and market information.

  • Allows querying Bitcoin blockchain data via Blockchain.com's Data and Query APIs, providing functionality to retrieve block information, transaction details, address data, and various Bitcoin network statistics.

MCP Blockchain Query Server

Warning

Majority of the code in this repository was generated using Grok 3 Beta

Model Context Protocol server providing tools for querying BTC data via Blockchain Data and Query APIs.

Demo

https://github.com/user-attachments/assets/b270979b-b22f-467c-bcb4-54bd48504073

Features

  • Supports both stdio and SSE transports
  • Available 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
    • Get 24-hour transaction count

Installation

python -m venv venv source venv/bin/activate pip install -r requirements.txt

Running

Run in stdio mode (default):

$ python main.py

Run in SSE mode:

$ python main.py --transport sse --port 8000

CLI Arguments:

  • --port: Port number for SSE transport (default: 8000)
  • --transport: Transport type (stdio or sse, default: stdio)
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol server providing tools for querying Bitcoin blockchain data via Blockchain Data and Query APIs, supporting various BTC information retrieval functions.

  1. Demo
    1. Features
      1. Installation
        1. Running

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Facilitates interaction with the Bitcoin network via the Model Context Protocol, enabling key generation, address validation, transaction decoding, and blockchain data retrieval.
            Last updated -
            5
            103
            18
            TypeScript
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.
            Last updated -
            9
            5
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            A cryptocurrency price query service based on Model Context Protocol that provides tools for retrieving virtual currency prices, market trends, detailed information, and K-line data.
            Last updated -
            2
            Python
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that allows AI assistants like Claude to directly query cryptocurrency and blockchain project data from RootData, including project information, organization details, and search results.
            Last updated -
            Python
            • Apple

          View all related MCP servers

          ID: 71ow3uvx5n