MCP server for querying the Bitcoin blockchain
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_mcp_blockchain_query-0.1.1.tar.gz.
File metadata
- Download URL: mseep_mcp_blockchain_query-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2814b30c2c1172cc99fc2bda8731ac6f45a8a560dde293fa863092e25ff97f7
|
|
| MD5 |
50bd49cfa92333887863def668a009a3
|
|
| BLAKE2b-256 |
0c3d9e6d3e62e37a6a8802d61d1830d5a4fc4d8a012f0841321a9dea4ede64d6
|
File details
Details for the file mseep_mcp_blockchain_query-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp_blockchain_query-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02de1669079353eff49617eac2b56e11cacd78ad6c1f8e61dad5b04e7564d883
|
|
| MD5 |
854b60631521df4b1f358f8ca632d6ed
|
|
| BLAKE2b-256 |
2fcb1ef7410dcd451c7db3964363edc6939e8bf5e624af17e2bde293aabf7127
|