
Blockscout MCP Server
A server that exposes blockchain data (balances, tokens, NFTs, contract metadata) via the Model Context Protocol, enabling AI agents and tools to access and analyze blockchain information contextually.
README
Blockscout MCP Server
The Model Context Protocol (MCP) is an open protocol designed to allow AI agents, IDEs, and automation tools to consume, query, and analyze structured data through context-aware APIs.
This server wraps Blockscout APIs and exposes blockchain data—balances, tokens, NFTs, contract metadata—via MCP so that AI agents and tools (like Claude, Cursor, or IDEs) can access and analyze it contextually.
Key Features:
- Contextual blockchain data access for AI tools
- Multi-chain support via getting Blockscout instance URLs from Chainscout
- Custom instructions for MCP host to use the server
- Supports MCP progress notifications for multi-step tool operations, allowing clients to track execution status
- Enhanced User Experience: Provides periodic progress updates for long-running API queries (e.g., fetching extensive transaction histories) when requested by the client, improving responsiveness
Technical details
Refer to SPEC.md for the technical details.
Repository Structure
Refer to AGENTS.md for the repository structure.
Testing
Refer to TESTING.md for instructions on how to test the server locally using HTTP mode and curl commands.
Tool Descriptions
__get_instructions__()
- Provides custom instructions for the MCP host to use the server. This tool is required since the fieldinstructions
of the MCP server initialization response is not used by the MCP host so far (tested on Claude Desktop).get_chains_list()
- Returns a list of all known chains.get_address_by_ens_name(name)
- Converts an ENS domain name to its corresponding Ethereum address.lookup_token_by_symbol(chain_id, symbol)
- Searches for token addresses by symbol or name, returning multiple potential matches.get_contract_abi(chain_id, address)
- Retrieves the ABI (Application Binary Interface) for a smart contract.get_address_info(chain_id, address)
- Gets comprehensive information about an address including balance, ENS association, contract status, and token details.get_tokens_by_address(chain_id, address, ...)
- Returns detailed ERC20 token holdings for an address with enriched metadata and market data.get_latest_block(chain_id)
- Returns the latest indexed block number and timestamp.get_transactions_by_address(chain_id, address, age_from, age_to, methods)
- Gets transactions for an address within a specific time range with optional method filtering.get_token_transfers_by_address(chain_id, address, age_from, age_to, token)
- Returns ERC-20 token transfers for an address within a specific time range.transaction_summary(chain_id, hash)
- Provides human-readable transaction summaries using Blockscout Transaction Interpreter.nft_tokens_by_address(chain_id, address)
- Retrieves NFT tokens owned by an address, grouped by collection.get_block_info(chain_id, number_or_hash)
- Returns block information including timestamp, gas used, burnt fees, and transaction count.get_transaction_info(chain_id, hash)
- Gets comprehensive transaction information with decoded input parameters and detailed token transfers.get_transaction_logs(chain_id, hash)
- Returns transaction logs with decoded event data.get_address_logs(chain_id, address, ...)
- Gets logs emitted by a specific address with decoded event data.
Example Prompts for AI Agents (to be added)
Placeholder: Practical examples of prompts for chats or IDEs to retrieve and analyze blockchain data via the MCP server will be added in this section.
Installation & Usage
Local Installation
Clone the repository and install dependencies:
git clone https://github.com/blockscout/mcp-server.git
cd mcp-server
uv pip install -e . # or `pip install -e .`
Running the Server
The server runs in stdio
mode by default:
python -m blockscout_mcp_server
HTTP Streamable Mode:
To run the server in HTTP Streamable mode (stateless, JSON responses):
python -m blockscout_mcp_server --http
You can also specify the host and port for the HTTP server:
python -m blockscout_mcp_server --http --http-host 0.0.0.0 --http-port 8080
CLI Options:
--http
: Enables HTTP Streamable mode.--http-host TEXT
: Host to bind the HTTP server to (default:127.0.0.1
).--http-port INTEGER
: Port for the HTTP server (default:8000
).
Building Docker Image Locally
Build the Docker image with the official tag:
docker build -t ghcr.io/blockscout/mcp-server:latest .
Pulling from GitHub Container Registry
Pull the pre-built image:
docker pull ghcr.io/blockscout/mcp-server:latest
Running with Docker
HTTP Streamable Mode:
To run the Docker container in HTTP mode with port mapping:
docker run --rm -p 8000:8000 ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --http-host 0.0.0.0
With custom port:
docker run --rm -p 8080:8080 ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --http-host 0.0.0.0 --http-port 8080
Note: When running in HTTP mode with Docker, use --http-host 0.0.0.0
to bind to all interfaces so the server is accessible from outside the container.
Stdio Mode: The default stdio mode is designed for use with MCP hosts/clients (like Claude Desktop, Cursor) and doesn't make sense to run directly with Docker without an MCP client managing the communication.
Configuring Claude Desktop
To use this MCP server with Claude Desktop:
-
Open Claude Desktop and click on Settings
-
Navigate to the "Developer" section
-
Click "Edit Config"
-
Open the file
claude_desktop_config.json
and configure the server:{ "mcpServers": { "blockscout": { "command": "docker", "args": [ "run", "--rm", "-i", "ghcr.io/blockscout/mcp-server:latest" ] } } }
-
Save the file and restart Claude Desktop
-
When chatting with Claude, you can now enable the Blockscout MCP Server to allow Claude to access blockchain data
License
This project is primarily distributed under the terms of the MIT license. See LICENSE for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.