mcp-otc
OfficialThe MCP Etherscan Server provides access to Ethereum blockchain data via Etherscan's API. With this server, you can:
Check ETH balance of any Ethereum address
View transaction history for an Ethereum address
Track ERC20 token transfers for an Ethereum address
Fetch ABI for smart contracts
Monitor current gas prices in Gwei
Resolve ENS names associated with Ethereum addresses
Provides Ethereum blockchain data tools via Etherscan's API, including checking ETH balances, viewing transaction history, tracking ERC20 transfers, fetching contract ABIs, monitoring gas prices, and resolving ENS names
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-otc check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
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 API. Features include checking ETH balances, viewing transaction history, tracking ERC20 transfers, fetching contract ABIs, monitoring gas prices, and resolving ENS names.
Features
Balance Checking: Get ETH balance for any Ethereum address
Transaction History: View recent transactions with detailed information
Token Transfers: Track ERC20 token transfers with token details
Contract ABI: Fetch smart contract ABIs for development
Gas Prices: Monitor current gas prices (Safe Low, Standard, Fast)
ENS Resolution: Resolve Ethereum addresses to ENS names
Related MCP server: Etherscan MCP Python
Prerequisites
Node.js >= 18
An Etherscan API key (get one at https://etherscan.io/apis)
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
check-balanceInput: Ethereum address
Output: ETH balance in both Wei and ETH
get-transactionsInput: Ethereum address, optional limit
Output: Recent transactions with timestamps, values, and addresses
get-token-transfersInput: Ethereum address, optional limit
Output: Recent ERC20 token transfers with token details
get-contract-abiInput: Contract address
Output: Contract ABI in JSON format
get-gas-pricesInput: None
Output: Current gas prices in Gwei
get-ens-nameInput: Ethereum address
Output: Associated ENS name if available
Using with Claude Desktop
To add this server to Claude Desktop:
Start the server using
npm startIn Claude Desktop:
Go to Settings
Navigate to the MCP Servers section
Click "Add Server"
Enter the following configuration:
{ "name": "Etherscan Tools", "transport": "stdio", "command": "node /path/to/mcp-etherscan-server/build/index.js" }Save the configuration
The Etherscan tools will now be available in your Claude conversations
Example Usage in Claude
You can use commands like:
Check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44eor
Show me recent transactions for vitalik.ethDevelopment
To add new features or modify existing ones:
The main server logic is in
src/server.tsEtherscan API interactions are handled in
src/services/etherscanService.tsBuild after changes:
npm run build
License
MIT License - See LICENSE file for details
Available Tools
6 toolscheck-balanceB
Check the ETH balance of an Ethereum address
Inputs: address (required).
get-contract-abiC
Get the ABI for a smart contract
Inputs: address (required).
get-ens-nameB
Get the ENS name for an Ethereum address
Inputs: address (required).
get-gas-pricesA
Get current gas prices in Gwei
Inputs: no named parameters.
get-token-transfersC
Get ERC20 token transfers for an Ethereum address
Inputs: address (required), limit.
get-transactionsB
Get recent transactions for an Ethereum address
Inputs: address (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose targeting different Ethereum-related functions: checking balances, retrieving contract ABIs, resolving ENS names, getting gas prices, fetching token transfers, and listing transactions. There is no overlap or ambiguity in their intended use cases.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., check-balance, get-contract-abi, get-ens-name). The naming is uniform and predictable across all six tools.
With 6 tools, this server is well-scoped for its Ethereum/blockchain domain. Each tool serves a specific, essential function without redundancy, making the count appropriate and manageable.
The toolset covers key read-only operations for Ethereum interactions, including balance checks, contract data, ENS resolution, gas prices, token transfers, and transactions. A minor gap exists in write operations (e.g., sending transactions or interacting with contracts), but the provided tools are sufficient for common querying tasks.
Maintenance
Related MCP Connectors
Etherscan MCP — multichain block-explorer API (Etherscan V2)
Read-only Etherscan V2 blockchain data: balances, transactions, transfers, tokens, contracts, logs.
Etherscan Api - 71 tools for data, metrics, and on-chain analytics
Keyless, read-only BNB Chain and Ethereum data: transactions by hash, tokens with a lookalike check
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables comprehensive blockchain data analysis and exploration through the BlockScout API. Provides 56+ tools for transaction analysis, address exploration, token management, smart contract analysis, and market research across multiple blockchain networks.-
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to Ethereum blockchain data through the Etherscan API, including account, block, contract, transaction, token, gas, statistics, logs, and RPC proxy tools.4MIT
- AlicenseAqualityCmaintenanceA read-only MCP server that queries multichain EVM on-chain data through Blockscout REST API, providing tools for address info, transactions, logs, and more.1625 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides multichain block-explorer data from Etherscan via MCP tools for token balances, contract ABI, and source code.166 npmMIT