Server data from the Official MCP Registry
Provide AI agents and automation tools with contextual access to blockchain data including balance…
Provide AI agents and automation tools with contextual access to blockchain data including balance…
Remote endpoints: streamable-http: https://server.smithery.ai/@blockscout/mcp-server/mcp
Valid MCP server (1 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
Endpoint verified · Requires authentication · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"ai-smithery-blockscout-mcp-server": {
"url": "https://server.smithery.ai/@blockscout/mcp-server/mcp"
}
}
}From the project's GitHub README.
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:
For more powerful and efficient blockchain analysis, install the Blockscout Analysis skill from the agent-skills repository. This skill provides AI agents with structured guidance for execution strategies, response handling, security best practices, and workflow orchestration.
Learn more: See the agent-skills README for full capabilities and installation instructions.
The easiest way to use the Blockscout MCP server with Claude ( Claude Web, Claude Desktop and Claude Code) is through the official Anthropic Connectors Directory. This provides a native, managed installation experience with automatic updates.
Visit claude.com/connectors/blockscout and click links in "Used in" section to install the Blockscout connector.
Note: Connectors require a paid Claude plan (Pro, Team, Max, or Enterprise).
To quickly install the Blockscout MCP server for use with Claude Code, run the following command in your terminal:
claude mcp add --transport http blockscout https://mcp.blockscout.com/mcp
After running this command, Blockscout will be available as an MCP server in Claude Code, allowing you to access and analyze blockchain data directly from your coding environment.
Use this deeplink to install the Blockscout MCP server in Cursor.
Add the following configuration to your ~/.gemini/settings.json file:
{
"mcpServers": {
"blockscout": {
"httpUrl": "https://mcp.blockscout.com/mcp",
"timeout": 180000
}
}
}
For detailed Gemini CLI MCP server configuration instructions, see the official documentation.
Experience the power of the Blockscout MCP server through our showcase GPT: Blockscout X-Ray
This GPT demonstrates the full capabilities of the MCP server, providing intelligent blockchain analysis and insights. It's a great way to explore what's possible when AI agents have contextual access to blockchain data.
If you want to run the server locally for development purposes:
{
"mcpServers": {
"blockscout": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"ghcr.io/blockscout/mcp-server:latest"
]
}
}
}
Refer to SPEC.md for the technical details.
Refer to AGENTS.md for the repository structure.
Refer to TESTING.md for comprehensive instructions on running both unit and integration tests.
__unlock_blockchain_analysis__() - Provides custom instructions for the MCP host to use the server. This is a mandatory first step before using other tools.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.inspect_contract_code(chain_id, address, file_name=None) - Allows getting the source files of verified contracts.get_address_info(chain_id, address) - Gets comprehensive information about an address including balance, ENS association, contract status, token details, and public tags.get_tokens_by_address(chain_id, address, cursor=None) - Returns detailed ERC20 token holdings for an address with enriched metadata and market data.get_block_number(chain_id, [datetime]) - Retrieves the block number and timestamp for a specific date/time or the latest block.get_transactions_by_address(chain_id, address, age_from, age_to, methods, cursor=None) - 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, cursor=None) - Returns ERC-20 token transfers for an address within a specific time range.nft_tokens_by_address(chain_id, address, cursor=None) - Retrieves NFT tokens owned by an address, grouped by collection.get_block_info(chain_id, number_or_hash, include_transactions=False) - Returns block information including timestamp, gas used, burnt fees, and transaction count. Can optionally include a list of transaction hashes.get_transaction_info(chain_id, hash, include_raw_input=False) - Gets comprehensive transaction information with decoded input parameters and detailed token transfers.read_contract(chain_id, address, abi, function_name, args='[]', block='latest') - Executes a read-only smart contract function and returns its result. The abi argument is a JSON object describing the specific function's signature.direct_api_call(chain_id, endpoint_path, query_params=None, cursor=None) - Calls a curated raw Blockscout API endpoint for specialized or chain-specific data.Is any approval set for OP token on Optimism chain by `zeaver.eth`?
Calculate the total gas fees paid on Ethereum by address `0xcafe...cafe` in May 2025.
Which 10 most recent logs were emitted by `0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7`
before `Nov 08 2024 04:21:35 AM (-06:00 UTC)`?
Tell me more about the transaction `0xf8a55721f7e2dcf85690aaf81519f7bc820bc58a878fa5f81b12aef5ccda0efb`
on Redstone rollup.
Is there any blacklisting functionality of USDT token on Arbitrum One?
What is the latest block on Gnosis Chain and who is the block minter?
Were any funds moved from this minter recently?
When the most recent reward distribution of Kinto token was made to the wallet
`0x7D467D99028199D99B1c91850C4dea0c82aDDF52` in Kinto chain?
Which methods of `0x1c479675ad559DC151F6Ec7ed3FbF8ceE79582B6` on the Ethereum
mainnet could emit `SequencerBatchDelivered`?
What is the most recent executed cross-chain message sent from the Arbitrum Sepolia
rollup to the base layer?
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 .`
To customize the leading part of the User-Agent header used for RPC requests,
set the BLOCKSCOUT_MCP_USER_AGENT environment variable (defaults to
"Blockscout MCP"). The server version is appended automatically.
The server runs in stdio mode by default:
python -m blockscout_mcp_server
HTTP Mode (MCP only):
To run the server in HTTP Streamable mode (stateless, SSE responses by default):
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
Development Mode (Plain JSON Responses):
For development and testing with simple HTTP clients (curl, Insomnia), you can enable plain JSON responses instead of SSE streams:
export BLOCKSCOUT_DEV_JSON_RESPONSE=true
python -m blockscout_mcp_server --http
Note: This disables Server-Sent Events (SSE) and progress notifications. Only use this for local testing and debugging.
Tunneling with Ngrok (Development Mode):
The Python MCP SDK enforces DNS rebinding protection, which blocks requests from ngrok tunnels by default. To enable tunneling for development and testing:
Start an ngrok tunnel to your local server:
ngrok http 8000
Configure the allowed host and origin using your ngrok URL:
export BLOCKSCOUT_MCP_ALLOWED_HOSTS="your-tunnel-id.ngrok-free.app"
export BLOCKSCOUT_MCP_ALLOWED_ORIGINS="https://your-tunnel-id.ngrok-free.app"
python -m blockscout_mcp_server --http
Note: These settings are primarily for development use. When these variables are not set, DNS rebinding protection
is automatically determined by the server's bind host: enabled for localhost, disabled for non-localhost (e.g.,
0.0.0.0). If your Host header includes a non-standard port, use the :* wildcard suffix (e.g.,
"example.com:*") or specify the exact host:port value.
For more details on ngrok tunneling with MCP servers, see the OpenAI Apps SDK Examples documentation.
HTTP Mode with REST API:
To enable the versioned REST API alongside the MCP endpoint, use the --rest flag (which requires --http).
python -m blockscout_mcp_server --http --rest
With custom host and port:
python -m blockscout_mcp_server --http --rest --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).--rest: Enables the REST API (requires --http).Build the Docker image with the official tag:
docker build -t ghcr.io/blockscout/mcp-server:latest .
Pull the pre-built image:
docker pull ghcr.io/blockscout/mcp-server:latest
HTTP Mode (MCP only):
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
HTTP Mode with REST API:
To run with the REST API enabled:
docker run --rm -p 8000:8000 ghcr.io/blockscout/mcp-server:latest python -m blockscout_mcp_server --http --rest --http-host 0.0.0.0
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.
Use MCP bundle to test the server with Claude Desktop.
blockscout-mcp-dev.mcpb file to automatically install the bundle.http://127.0.0.1:8000/mcp)To help us improve the Blockscout MCP Server, community-run instances of the server collect anonymous usage data by default. This helps us understand which tools are most popular and guides our development efforts.
What we collect:
get_block_number).What we DO NOT collect:
You can disable this feature at any time by setting the following environment variable:
export BLOCKSCOUT_DISABLE_COMMUNITY_TELEMETRY=true
This project is primarily distributed under the terms of the MIT license. See LICENSE for details.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.