Skip to main content

MCP server for querying the Bitcoin blockchain

Project description

MCP Blockchain Query Server

Logo

[!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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_blockchain_query-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_blockchain_query-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_blockchain_query-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mseep_mcp_blockchain_query-0.1.0.tar.gz
Algorithm Hash digest
SHA256 95a85408177074f756e5f1cc5a0eb645110f97f884ce8a8c01bf54833064c467
MD5 9c9e3461c893ea97aa82d31d3e832fb6
BLAKE2b-256 696e48874dfdcc30aaf9806bb8a3b9e7facd0ad9d8a193986fadce66889212d2

See more details on using hashes here.

File details

Details for the file mseep_mcp_blockchain_query-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_blockchain_query-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbae4cf8ec2461c552a3e776ed01b4e5c907e1534c02bb5d8407ba201cf0de51
MD5 e562d9726423eb020d7ae9b847ff6318
BLAKE2b-256 4570c4181494f0a3562b3e2f4ac868aa4249faaac1bd10a6689f23d0f9024f20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page