blockscout-mcp-server
blockscout-mcp-server
Blockscout REST API를 통해 AI 에이전트에게 멀티체인 EVM 온체인 데이터(주소, 트랜잭션, 블록, 로그, 토큰, NFT, 컨트랙트 소스)를 제공하는 읽기 전용 stdio MCP 서버입니다.
[!IMPORTANT] 이는 공식 Blockscout MCP 서버가 아닙니다. 개인 개발자가 유지 관리하는 맞춤형 독립 서버이며, Blockscout 팀과 제휴하거나 보증하지 않습니다.
빠른 시작
npx가 게시된 패키지를 다운로드하여 실행합니다. 수동으로 설치할 것이 없습니다. 모든 프로젝트에서 작동하며, CHAINS_FILE을 해당 프로젝트의 체인 파일로 지정하세요(상대 경로 ./chains.json은 클라이언트의 작업 디렉터리를 기준으로 해석됩니다).
{
"mcpServers": {
"blockscout": {
"command": "npx",
"args": ["-y", "blockscout-mcp-server"],
"env": {
"CHAINS_FILE": "./chains.json",
"ONLY_CHAINS_FILE": "true"
}
}
}
}체인 레지스트리와 환경 변수는 시작 시 한 번만 읽힙니다. 구성이나 코드를 변경한 후에는 MCP 클라이언트에서 서버를 재시작(다시 연결)하세요. 바로 편집할 수 있는
.mcp.example.json이 포함되어 있습니다.
Related MCP server: mcp-etherscan
지원 체인
이 체인들은 번들 스냅샷(src/chains/bundled.json)에서 기본으로 등록되어 있어 구성이 필요 없습니다. 모든 도구의 chain 인자는 이름(ethereum) 또는 숫자 체인 ID(1)를 허용합니다.
체인 이름 | 체인 ID | Blockscout 인스턴스 |
| 1 | |
| 10 | |
| 100 | |
| 8453 | |
| 42161 | |
| 534352 | |
| 11155111 |
실행 중인 서버에 실제로 등록된 체인을 보려면 get_chains_list 도구를 호출하세요.
사용자 정의 체인
CHAINS_FILE을 추가 체인(또는 번들 체인을 재정의하는 체인)을 설명하는 JSON 파일로 지정하세요. 각 항목에는 name, chainId, Blockscout 인스턴스 url이 필요합니다.
[
{ "name": "my-l2", "chainId": 42, "url": "https://scan.my-l2.io" }
]CHAINS_FILE이 설정되었지만 파일이 없거나 잘못된 형식이면 서버는 즉시 종료됩니다(fail-fast).
ONLY_CHAINS_FILE=true로 설정하면 CHAINS_FILE의 체인만 등록하고 번들 스냅샷을 완전히 제외합니다. 이 경우 CHAINS_FILE이 설정되어 있어야 합니다(그렇지 않으면 체인이 없어 서버가 빠르게 실패합니다). 기본값(false)은 번들 체인과 CHAINS_FILE을 병합합니다.
로컬 개발
MCP Inspector가 dev dependency로 연결되어 있어, 서버를 실제 클라이언트에 연결하지 않고도 MCP 핸드셰이크를 진행하고 도구를 직접 호출할 수 있습니다.
git clone https://github.com/imelon2/blockscout-mcp-server.git
cd blockscout-mcp-server
pnpm install
pnpm run inspectpnpm run inspect는 먼저 빌드한 다음 Inspector UI를 엽니다. stdio 전송을 선택하고 node dist/index.js를 지정하세요. 두 가지 바로 가기가 있습니다:
라이선스
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