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.1.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.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mseep_mcp_blockchain_query-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2814b30c2c1172cc99fc2bda8731ac6f45a8a560dde293fa863092e25ff97f7
MD5 50bd49cfa92333887863def668a009a3
BLAKE2b-256 0c3d9e6d3e62e37a6a8802d61d1830d5a4fc4d8a012f0841321a9dea4ede64d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_mcp_blockchain_query-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02de1669079353eff49617eac2b56e11cacd78ad6c1f8e61dad5b04e7564d883
MD5 854b60631521df4b1f358f8ca632d6ed
BLAKE2b-256 2fcb1ef7410dcd451c7db3964363edc6939e8bf5e624af17e2bde293aabf7127

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