MCP Blockchain Query Server
by pavel-bc
The MCP Blockchain Query Server provides tools for querying BTC data via Blockchain APIs. It leverages the Model Context Protocol to offer various functionalities related to Bitcoin blockchain data.
Last updated: N/A
What is MCP Blockchain Query Server?
This server is a Model Context Protocol (MCP) server that allows users to query Bitcoin blockchain data using the Blockchain Data and Query APIs. It provides a set of tools to retrieve information about blocks, transactions, addresses, and various network statistics.
How to use MCP Blockchain Query Server?
To use the server, first install the dependencies using pip install -r requirements.txt
. Then, run the main.py
script. You can run it in stdio mode (default) or SSE mode by specifying the --transport
and --port
arguments. The available tools can be accessed through the Model Context Protocol.
Key features of MCP Blockchain Query Server
Supports stdio and SSE transports
Provides tools to get block by hash, transaction by hash, and address by hash
Offers functionalities to retrieve block count, difficulty, address balance, and hash rate
Includes features to get average transaction size, total bitcoins, probability of finding a block, and 24-hour market price
Provides tools to get block interval, block reward, next retarget, latest hash, unconfirmed count, and 24-hour transaction count
Use cases of MCP Blockchain Query Server
Retrieving specific block or transaction details for analysis
Monitoring network statistics such as difficulty and hash rate
Checking the balance of a Bitcoin address
Analyzing market data related to Bitcoin
Integrating blockchain data into other applications via the MCP protocol
FAQ from MCP Blockchain Query Server
What is Model Context Protocol (MCP)?
What is Model Context Protocol (MCP)?
Model Context Protocol is a protocol for interacting with language models.
What data sources does this server use?
What data sources does this server use?
This server uses the Blockchain Data and Query APIs.
How do I install the server?
How do I install the server?
You can install the server by running pip install -r requirements.txt
after creating a virtual environment.
How do I run the server in SSE mode?
How do I run the server in SSE mode?
You can run the server in SSE mode by using the command python main.py --transport sse --port 8000
.
What tools are available?
What tools are available?
A list of available tools is provided in the Features section of the README.