blockscout-mcp-server
The blockscout-mcp-server is a read-only multichain EVM blockchain analysis server that queries on-chain data through the Blockscout REST API, designed for LLM clients.
Key capabilities:
Onboarding guard — A mandatory first tool (
__unlock_blockchain_analysis__) ensures agents understand usage rules before proceeding.Chain discovery — List all supported chains (bundled + custom), filterable by name or chain ID.
Address lookup — Get balance, type (EOA vs. contract), and metadata for any address.
Token balances — Retrieve ERC-20/721/1155 token balances held by an address.
Token transfers — List token transfer events for an address or within a specific transaction.
Transaction history & details — Fetch native transactions by address or full details (status, value, gas, decoded input) by hash.
Block info — Retrieve block details by number or hash, or get the latest block height.
Event logs — Fetch event logs emitted by a contract/address (large fields truncated).
Smart contract analysis — Get verified contract ABIs, source code, and compiler metadata.
NFT holdings — List ERC-721/1155 NFTs owned by an address.
Token search — Look up tokens by symbol or name to find their contract addresses.
Raw API access — An escape hatch (
direct_api_call) to call any Blockscout/api/v2endpoint directly.Pagination — All list tools support cursor-based pagination for efficient traversal of large datasets.
Custom chains — Register or override chains via a
CHAINS_FILEenvironment variable.
Provides tools for querying on-chain data from EVM-compatible blockchains, including Ethereum, via the Blockscout API. Allows retrieving address balances, transaction details, token balances, block information, and more.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@blockscout-mcp-server show me the latest block on Ethereum"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
blockscout-mcp-server
A read-only stdio MCP server that gives AI agents multichain EVM on-chain data — addresses, transactions, blocks, logs, tokens, NFTs, and contract source — through the Blockscout REST API.
This isnot the official Blockscout MCP server. It is a custom, independently built server maintained by an individual developer, and it is not affiliated with or endorsed by the Blockscout team.
Quick start
npx downloads the published package and runs it — nothing to install manually. Works from any
project;
{
"mcpServers": {
"blockscout": {
"command": "npx",
"args": ["-y", "blockscout-mcp-server"],
}
}
}point CHAINS_FILE at that project's chains file (a relative ./chains.json resolves
against the client's working directory).
{
"mcpServers": {
"blockscout": {
"command": "npx",
"args": ["-y", "blockscout-mcp-server"],
"env": {
"CHAINS_FILE": "./chains.json",
"ONLY_CHAINS_FILE": "true"
}
}
}
}The chain registry and env are read once at startup. After changing config or code, restart (reconnect) the server in your MCP client. A ready-to-edit
.mcp.example.jsonis included.
Related MCP server: mcp-etherscan
Supported chains
These chains are registered out of the box from the bundled snapshot
(src/chains/bundled.json) — no configuration required. The chain argument of
any tool accepts either the name (ethereum) or the numeric chain ID (1).
Chain name | Chain ID | Blockscout instance |
| 1 | |
| 10 | |
| 100 | |
| 8453 | |
| 42161 | |
| 534352 | |
| 11155111 |
Call the get_chains_list tool to see the chains actually registered on a running
server.
Custom chains
Point CHAINS_FILE at a JSON file describing extra chains (or overriding bundled ones).
Each entry needs a name, chainId, and Blockscout instance url:
[
{ "name": "my-l2", "chainId": 42, "url": "https://scan.my-l2.io" }
]If CHAINS_FILE is set but the file is missing or malformed, the server exits immediately (fail-fast).
Set ONLY_CHAINS_FILE=true to register only the chains from CHAINS_FILE and exclude the
bundled snapshot entirely. It requires CHAINS_FILE to be set (otherwise no chains would exist and
the server fails fast). The default (false) merges bundled chains with CHAINS_FILE.
Local development
The MCP Inspector is wired up as a dev dependency, so you can walk through the MCP handshake and call tools by hand without hooking the server into a real client.
git clone https://github.com/imelon2/blockscout-mcp-server.git
cd blockscout-mcp-server
pnpm install
pnpm run inspectpnpm run inspect builds first, then opens the Inspector UI — pick the stdio transport
and point it at node dist/index.js. Two shortcuts:
License
MIT
Available Tools
16 toolsdirect_api_callCall a raw Blockscout API endpointA
Escape hatch: call any Blockscout REST v2 endpoint not covered by a dedicated tool. endpoint_path is relative to /api/v2 (e.g. "/addresses/0x.../counters"). Response is capped in size.
Inputs: chain (required), endpoint_path (required), cursor, query_params. Returns: data, notes, pagination, instructions, +1 more
get_address_infoGet address infoA
Get balance, type (account vs contract), and metadata for an address on a chain. Use this first when asked about a wallet or contract.
Inputs: chain (required), address (required). Returns: data, notes, pagination, instructions, +1 more
get_block_infoGet block infoA
Get details for a block by number or hash: timestamp, miner, gas used, and tx count.
Inputs: block (required), chain (required). Returns: data, notes, pagination, instructions, +1 more
get_block_numberGet latest block numberA
Get the latest (most recent) block height for a chain.
Inputs: chain (required). Returns: data, notes, pagination, instructions, +1 more
get_chains_listList supported chainsA
List all chains this server can query (bundled registry + any custom chains from CHAINS_FILE). Optionally filter by name or chain ID.
Inputs: filter. Returns: data, notes, pagination, instructions, +1 more
get_contract_abiGet contract ABIA
Get the ABI of a verified smart contract. Returns the ABI array only.
Inputs: chain (required), address (required). Returns: data, notes, pagination, instructions, +1 more
get_logsGet event logs by addressA
List event logs emitted by a contract/address. Large data fields are truncated. Paginated.
Inputs: chain (required), address (required), cursor. Returns: data, notes, pagination, instructions, +1 more
get_tokens_by_addressGet token balances by addressA
List ERC-20/721/1155 token balances held by an address. Paginated.
Inputs: chain (required), address (required), cursor. Returns: data, notes, pagination, instructions, +1 more
get_token_transfers_by_addressGet token transfers by addressA
List token transfer events involving an address (in and out). Paginated.
Inputs: chain (required), address (required), cursor. Returns: data, notes, pagination, instructions, +1 more
get_token_transfers_by_transactionGet token transfers by transactionC
List token transfers that occurred within a single transaction.
Inputs: hash (required), chain (required). Returns: data, notes, pagination, instructions, +1 more
get_transaction_infoGet transaction infoB
Get full details for a transaction by hash: status, value, gas, and decoded input.
Inputs: hash (required), chain (required). Returns: data, notes, pagination, instructions, +1 more
get_transactions_by_addressGet transactions by addressA
List native transactions involving an address (sent and received). Paginated.
Inputs: chain (required), address (required), cursor. Returns: data, notes, pagination, instructions, +1 more
inspect_contract_codeInspect contract source codeA
Get verified source code and compiler metadata for a smart contract.
Inputs: chain (required), address (required). Returns: data, notes, pagination, instructions, +1 more
lookup_token_by_symbolLook up token by symbolA
Search for tokens by symbol or name on a chain. Returns candidate tokens with their contract addresses.
Inputs: chain (required), symbol (required). Returns: data, notes, pagination, instructions, +1 more
nft_tokens_by_addressGet NFT tokens by addressA
List NFT (ERC-721/1155) tokens owned by an address. Paginated.
Inputs: chain (required), address (required), cursor. Returns: data, notes, pagination, instructions, +1 more
__unlock_blockchain_analysis__Unlock blockchain analysis (start here)A
MANDATORY FIRST STEP for AI agents. Returns usage rules and conventions for this server. Call this once before invoking any other tool.
Inputs: no named parameters. Returns: data, notes, pagination, instructions, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct blockchain data type or operation—address, block, transaction, token, contract, chain, logs, etc. No two tools have overlapping purposes; even the escape hatch `direct_api_call` is clearly separate from dedicated tools.
The majority of tools follow a `get_<resource>` pattern, but there are exceptions like `lookup_token_by_symbol`, `inspect_contract_code`, `nft_tokens_by_address`, and the unusual `__unlock_blockchain_analysis__`. While still readable, this mix of conventions introduces inconsistency.
With 16 tools covering core blockchain explorer functionality—addresses, blocks, transactions, tokens, contracts, chains—the count is well-scoped. It is slightly above the ideal 3-15 range but still reasonable for the domain.
The tool set covers the main blockchain query needs: address details, block info, transactions, token balances, transfers, contract ABI/source, logs, and chains list. Minor gaps like pending transactions or general search exist, but the escape hatch `direct_api_call` mitigates them effectively.
Related MCP Connectors
Blockscout MCP — multi-chain block-explorer aggregate
8-chain EVM MCP (Base/Eth/Arb/Op/Poly/BNB/Arc): event-log decode, contract audit, ENS & gas quotes.
Etherscan MCP — multichain block-explorer API (Etherscan V2)
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server with 43 tools for blockchain data — token lookups, wallet balances, live chain queries across 10+ networks, and full API documentation search.27292 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides multichain block-explorer data from Etherscan via MCP tools for token balances, contract ABI, and source code.81 npmMIT

Pharos MCP Serverofficial
AlicenseAqualityDmaintenanceEnables querying Pharos blockchain data (EVM-compatible) through MCP, with read-only tools for blocks, transactions, balances, and contract calls, plus optional transaction broadcasting when self-hosted.14MIT- AlicenseAqualityCmaintenanceA read-only MCP server that lets you interact with the Ethereum blockchain via natural language, providing tools for reading blocks, transactions, token metadata, events, and more, with provenance tracking and no private key access.10MIT