
3xpl.com JSON API MCP server
A Model Context Protocol (MCP) server for querying data from 48 blockchains using 3xpl.com blockchain explorer JSON API
What is 3xpl.com JSON API MCP server?
3xpl.com JSON API MCP server is a Model Context Protocol (MCP) server that allows querying data from 48 different blockchains using the 3xpl.com JSON API.
How to use 3xpl.com JSON API MCP server?
To use the server, clone the repository from GitHub, set up a virtual environment, install the dependencies, and configure the MCP settings as per the provided instructions.
Key features of 3xpl.com JSON API MCP server?
- Interact with data from 48 blockchains.
- Tools for resolving ENS domains, detecting blockchains, retrieving block information, and more.
- Expandable list of tools for various blockchain interactions.
Use cases of 3xpl.com JSON API MCP server?
- Querying the latest block information from a specific blockchain.
- Resolving ENS domains to regular addresses.
- Analyzing transaction fees over the last 24 hours.
FAQ from 3xpl.com JSON API MCP server?
- What is the purpose of the MCP server?
The MCP server facilitates interaction with multiple blockchains through a unified API.
- How do I install the server?
Follow the installation instructions provided in the repository, including cloning the repo and setting up a virtual environment.
- Can I contribute to the project?
Yes! Contributions are welcome, and you can open issues or submit pull requests on GitHub.
3xpl.com JSON API MCP server
Overview
3xpl API in form of a Model Context Protocol (MCP) server.
Allows LLMs to interact with data on 48 blockchains.
This repository can also be an example of 3xpl JSON API usage, see details in the code.
List of available tools
name | description | status |
---|---|---|
resolve_ens_domain | resolves an ENS domain to a regular address | ✅ |
detect_blockchains | retrieve a list of blockchains on which a transaction/address is present | ✅ |
get_latest_block | get latest block height in specified blockchain | ✅ |
get_average_fee_24h_usd | retrieves average transaction fee for last 24 hours in specified blockchain in US dollars. | ✅ |
get_mempool_events_count | get the number of unconfirmed events(transfers, inputs/outputs, not transactions) at the moment in the memory pool of provided blockchain | ✅ |
get_events_count_24h | retrieve number of events(transfers, inputs/outputs, not whole transactions) in last 24h for provided blockchain | ✅ |
get_block_overview | extract short summary about a block in provided blockchain | ✅ |
get_address_overview | extract short summary about an address in provided blockchain | ✅ |
get_transaction_overview | extract short summary about a transaction in provided blockchain(to be improved) | ✅ |
List will expand soon, stay tuned!
Installation
# get the repository
git clone https://github.com/exekerey/3xpl-mcp.git
cd 3xpl-mcp
# create and activate virtual environment
uv venv
source .venv/bin/activate
# install dependencies
uv pip install -e .
MCP configuration:
{
"mcpServers": {
"3xpl_API": {
"command": "/Users/danial/.local/bin/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/Users/danial/3xpl_mcp/main.py"
],
"env": {
"THREEXPL_API_KEY": ""
}
}
}
}
*Note: Set your API key from 3xpl to use the main API.
If the THREEXPL_API_KEY
field in the config file is left blank,
the MCP server will use the sandbox API, which has rate limits.
*Note 2: if MCP server doesn't start you might need to provide full path to uv in the command
field.
Contribution
Feel free to open issues for bugs or suggestions.
Pull requests are also welcome – just make sure to provide description of your changes.