3xpl
A Model Context Protocol (MCP) server for querying data from 48 blockchains using 3xpl.com blockchain explorer JSON API
claude mcp add --transport stdio exekerey-3xpl-mcp uv run --with mcp[cli] mcp run {:path_to_cloned}/3xpl_mcp/main.py \
--env THREEXPL_API_KEY=""How to use
The 3xpl MCP server exposes a JSON-driven interface for interacting with the 3xpl JSON API across multiple blockchains. It provides a suite of tools (such as resolve_ens_domain, detect_blockchains, get_latest_block, get_average_fee_24h_usd, and many more) that allow large language models to query blockchain data, aggregate information, and summarize blocks, addresses, transactions, and mempool activity. The MCP server translates LLM prompts into structured API calls, aggregates results, and returns concise, usable responses that can be integrated into chatbots, assistants, or automated workflows. To start using it, run the MCP server with the uv-based command described in the configuration, ensure your API key for 3xpl is supplied if you have one, and then issue prompts that invoke the listed tools via the MCP interface.
How to install
Prerequisites:
- Python 3.10+ and uv (as part of the uvx runner) installed on your system
- Access to the repository with the 3xpl MCP code
Step-by-step installation:
-
Clone the repository git clone https://github.com/exekerey/3xpl-mcp.git cd 3xpl-mcp
-
Create and activate a Python virtual environment (example with uv): uv venv source .venv/bin/activate
-
Install dependencies in editable mode (as shown in the README): uv pip install -e .
-
Prepare the MCP configuration (example provided in the README): Ensure you have your THREEXPL_API_KEY ready and place it in the mcp configuration under env. If left blank, the sandbox API will be used.
-
Run the MCP server using the provided uv command (adapt to your environment): uv run --with mcp[cli] mcp run {:path_to_cloned}/3xpl_mcp/main.py
Notes:
- If the MCP server doesn’t start, you may need to provide the full path to uv in the command field.
- Replace {:path_to_cloned} with the actual path to the cloned repository on your system.
Additional notes
Tips and notes:
- The server exposes a variety of tools for blockchain data, including block/transaction/address overviews, mempool stats, block/transaction aggregation, and blockchain discovery (detect_blockchains).
- To use the main 3xpl API you typically need an API key; if not provided, the sandbox API with rate limits will be used as a fallback.
- Ensure the THREEXPL_API_KEY environment variable is set if you have a production key; otherwise, leave it blank to use the sandbox.
- If you encounter startup issues, verify that the path in the command matches your environment and that Python/uv are correctly installed.
- Keep your dependencies up to date to ensure compatibility with new MCP prompts and tools.
Related MCP Servers
AstrBot
Agentic IM Chatbot infrastructure that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
evm
MCP server that provides LLMs with tools for interacting with EVM networks
lihil
2X faster ASGI web framework for python, offering high-level development, low-level performance.
maestro
Maestro MCP Server for Bitcoin
nodit
A Model Context Protocol (MCP) server for AI agents to interact with blockchain data via Nodit’s Web3 Data and Node APIs. Enables LLMs to access structured, multi-chain blockchain context with zero blockchain-specific logic.
ordiscan
An MCP server for getting information about Ordinals and Runes on Bitcoin