MCP Etherscan Server
Provides access to blockchain data on the Abstract network via Etherscan's V2 API, including tools for checking balances, transaction history, and contract details.
Enables retrieval of BNB Chain blockchain information such as account balances, transaction logs, and smart contract source code through the Etherscan V2 API.
Integrates comprehensive Ethereum mainnet data tools, allowing for balance checking, transaction history tracking, ENS resolution, and gas price monitoring via the Etherscan V2 API.
Allows interaction with Fantom network data using the Etherscan V2 API, supporting tools for native token balances, token transfers, and block details.
Provides blockchain data tools for the Optimism Layer 2 network, including account activity, token portfolio analysis, and contract verification via the Etherscan V2 API.
Facilitates access to Polygon blockchain data through the Etherscan V2 API, enabling users to track ERC20/ERC721 transfers, view top token holders, and query contract events.
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., "@MCP Etherscan Server Show me the token portfolio for vitalik.eth"
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.
MCP Etherscan Server
An MCP (Model Context Protocol) server that provides Ethereum blockchain data tools via Etherscan's V2 API. Supports 72+ blockchain networks with a single API key, including Ethereum, Arbitrum, Base, Polygon, Optimism, and many more.
Features
Core Features
Multi-Chain Support: 72+ networks (Ethereum, L2s, sidechains, testnets)
Balance Checking: Get native token balance for any address
Transaction History: View recent transactions with detailed information
Token Transfers: Track ERC20/ERC721/ERC1155 token transfers
Contract Tools: Fetch ABIs, source code, verify contracts
Gas Prices: Monitor current gas prices across networks
ENS Resolution: Resolve Ethereum addresses to ENS names
V2 API Features (New)
Beacon Withdrawals: Track ETH 2.0 staking withdrawals
Token Info: Get comprehensive token metadata and social links
Token Holders: View top holders for any token
Token Portfolio: Get all token balances for an address
Event Logs: Query contract events with advanced filtering
Network Stats: ETH supply, price, market cap data
Daily Statistics: Historical transaction counts
Related MCP server: Etherscan MCP
Supported Networks
72+ networks including:
Category | Networks |
Ethereum | Mainnet, Sepolia, Holesky, Hoodi |
Layer 2 | Arbitrum, Optimism, Base, zkSync, Scroll, Linea, Mantle, Blast |
Sidechains | Polygon, BNB Chain, Avalanche, Fantom, Gnosis |
Emerging | Berachain, Sonic, Taiko, Unichain, World, Abstract |
See docs/api/NETWORK_SUPPORT.md for the complete list.
Prerequisites
Node.js >= 18
An Etherscan API key (get one at https://etherscan.io/apis)
One API key works for all 72+ networks!
Installation
Clone the repository:
git clone [your-repo-url]
cd mcp-etherscan-serverInstall dependencies:
npm installCreate a
.envfile in the root directory:
ETHERSCAN_API_KEY=your_api_key_hereBuild the project:
npm run buildRunning the Server
Start the server:
npm startThe server will run on stdio, making it compatible with MCP clients like Claude Desktop.
How It Works
This server implements the Model Context Protocol (MCP) to provide tools for interacting with Ethereum blockchain data through Etherscan's API. Each tool is exposed as an MCP endpoint that can be called by compatible clients.
Available Tools (24 Total)
Account Tools
Tool | Description |
| Get native token balance for any address |
| Recent transactions with timestamps and values |
| ERC20 token transfers with token details |
| Internal transactions with trace details |
| Blocks mined by an address with rewards |
| ETH 2.0 staking withdrawals |
Token Tools (V2)
Tool | Description |
| Comprehensive token metadata and social links |
| Top token holders with balances |
| All token balances for an address |
Contract Tools
Tool | Description |
| Contract ABI in JSON format |
| Verified source code and metadata |
| Creator address and deployment tx |
| Submit contract for verification |
| Check verification status |
| Verify proxy contract |
| Recently verified contracts |
Block Tools
Tool | Description |
| Block info (hash, gas, transactions) |
| Block and uncle rewards |
Network Tools (V2)
Tool | Description |
| Current gas prices in Gwei |
| ETH supply, price, market cap |
| Daily transaction statistics |
| Event logs with topic filtering |
| All 72+ supported networks |
Utility Tools
Tool | Description |
| Resolve address to ENS name |
Using with Claude Desktop
To add this server to Claude Desktop:
In Claude Desktop settings, add this server configuration:
{ "mcpServers": { "etherscan": { "command": "node", "args": ["/path/to/mcp-etherscan-server/build/index.js"], "env": { "ETHERSCAN_API_KEY": "your_api_key_here" } } } }The Etherscan tools will now be available in your Claude conversations
Example Usage in Claude
Check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e on EthereumShow me recent transactions for vitalik.eth on mainnetGet token holders for USDC on PolygonList all supported networksSpecifying Networks
All tools support a network parameter. You can use:
Network slug:
"ethereum","polygon","arbitrum","base"Chain ID:
1,137,42161,8453
Check balance of 0x... on arbitrum
Check balance of 0x... with chainId 42161Documentation
Comprehensive API documentation is available in the docs/ directory:
API Index - Overview of all endpoints
Network Support - Complete list of 72+ networks
Development
Project Structure
src/
├── index.ts # Entry point
├── server.ts # MCP server with 24 tools
├── config/
│ └── networks.ts # 72+ network configurations
├── api/
│ └── v2-request-builder.ts # V2 API request builder
├── services/
│ └── etherscanService.ts # Etherscan API service
├── types/
│ └── index.ts # TypeScript type definitions
└── __tests__/ # Test suitesBuilding
npm run build # Compile TypeScript
npm run test # Run tests
npm start # Start serverAdding New Networks
Networks are configured in src/config/networks.ts. The V2 API automatically handles the chainid parameter.
V2 API Migration
This server uses Etherscan's V2 API which:
Uses a unified endpoint:
https://api.etherscan.io/v2/apiRequires
chainidparameter for all requestsSupports 72+ networks with a single API key
Deprecates the old per-network API URLs
See Etherscan V2 Migration Guide for details.
License
MIT License - See LICENSE file for details
Available Tools
24 toolscheck-balanceA
Check the ETH balance of an Ethereum address across 70+ supported networks
Inputs: address (required), network.
check-verificationB
Check the status of a contract verification request
Inputs: guid (required), network.
get-beacon-withdrawalsB
Get beacon chain withdrawals for an Ethereum address (ETH 2.0 staking withdrawals)
Inputs: address (required), page, offset, network, +2 more.
get-block-detailsC
Get detailed information about a specific block
Inputs: blockNumber (required), network.
get-block-rewardC
Get reward information for a specific block
Inputs: blockNumber (required), network.
get-contract-abiB
Get the ABI for a smart contract
Inputs: address (required), network.
get-contract-creationC
Get creation information for a specific contract address
Inputs: address (required), network.
get-contract-sourceA
Get the source code and metadata for a verified smart contract
Inputs: address (required), network.
get-daily-statsB
Get daily transaction count statistics for a date range
Inputs: endDate (required), startDate (required), sort, network.
get-ens-nameA
Get the ENS name for an Ethereum address (mainnet only)
Inputs: address (required).
get-gas-pricesB
Get current gas prices in Gwei
Inputs: network.
get-internal-transactionsB
Get internal transactions for an Ethereum address
Inputs: address (required), page, offset, network, +2 more.
get-logsB
Get event logs filtered by address and/or topics with advanced filtering options
Inputs: topic0, topic1, topic2, topic3, +4 more.
get-mined-blocksB
Get blocks mined by an address
Inputs: address (required), page, offset, network, +3 more.
get-network-statsA
Get network statistics including ETH supply, ETH2 staking, price, and market cap
Inputs: network.
get-token-holdersB
Get top token holders for an ERC20 token with their balances and ownership percentage
Inputs: contractAddress (required), page, offset, network.
get-token-infoA
Get comprehensive information about an ERC20/ERC721/ERC1155 token including metadata and social links
Inputs: contractAddress (required), network.
get-token-portfolioA
Get all token balances for an address across ERC20/ERC721/ERC1155 standards
Inputs: address (required), network.
get-token-transfersC
Get ERC20 token transfers for an Ethereum address
Inputs: address (required), limit, network.
get-transactionsC
Get recent transactions for an Ethereum address across 70+ supported networks
Inputs: address (required), limit, network.
get-verified-contractsC
Get recently verified contracts
Inputs: page (required), offset, sortBy.
list-networksA
List all supported blockchain networks (70+) with their chain IDs and native currencies
Inputs: filter.
verify-contractB
Submit a contract for source code verification
Inputs: sourceCode (required), contractName (required), compilerVersion (required), contractAddress (required), +6 more.
verify-proxyC
Submit a proxy contract for verification
Inputs: address (required), network, expectedImplementation.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Each tool targets a unique aspect of Ethereum blockchain data: balances, blocks, contracts, tokens, transactions, and more. Descriptions clearly differentiate similar tools like get-transactions, get-internal-transactions, and get-token-transfers.
Most tools follow a 'get_' prefix pattern, but there are a few using 'check_', 'list_', and 'verify_'. While all are verb_noun, the inconsistency in verb choice prevents a perfect score.
24 tools is slightly above the typical 3-15 range, but the broad domain of Ethereum data (accounts, blocks, contracts, tokens, etc.) justifies the count. Each tool serves a distinct purpose.
The surface covers nearly all common Etherscan API operations: balance, transactions, blocks, contract verification, token data, logs, ENS, gas, and network stats. No obvious gaps for the intended domain.
Maintenance
Related MCP Connectors
Etherscan MCP — multichain block-explorer API (Etherscan V2)
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Read-only Etherscan V2 blockchain data: balances, transactions, transfers, tokens, contracts, logs.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that fetches on-chain blockchain data via the Ankr API, allowing LLMs to retrieve token balances for wallet addresses on specific networks.156 npm3MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides access to Etherscan blockchain data APIs, allowing users to query Ethereum blockchain information through natural language.655 npm18MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that bridges AI models with Ethereum blockchains via all JSON-RPC calls, enabling natural language queries for block numbers, balances, transactions, and smart contract data.7 npm21MIT
- AlicenseAqualityFmaintenanceProvides MCP tools to query Etherscan for Ethereum blockchain data—ETH balances, ERC-20 tokens, transactions, contract ABIs, and gas prices—without requiring an API key.814 npmMIT