MCP Etherscan Server
Mirror of
MCP-Mirror
README
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
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-server
- Install dependencies:
npm install
- Create a
.env
file in the root directory:
ETHERSCAN_API_KEY=your_api_key_here
- Build the project:
npm run build
Running the Server
Start the server:
npm start
The 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-balance
- Input: Ethereum address
- Output: ETH balance in both Wei and ETH
-
get-transactions
- Input: Ethereum address, optional limit
- Output: Recent transactions with timestamps, values, and addresses
-
get-token-transfers
- Input: Ethereum address, optional limit
- Output: Recent ERC20 token transfers with token details
-
get-contract-abi
- Input: Contract address
- Output: Contract ABI in JSON format
-
get-gas-prices
- Input: None
- Output: Current gas prices in Gwei
-
get-ens-name
- Input: Ethereum address
- Output: Associated ENS name if available
Using with Claude Desktop
To add this server to Claude Desktop:
-
Start the server using
npm start
-
In 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 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
or
Show me recent transactions for vitalik.eth
Development
To add new features or modify existing ones:
- The main server logic is in
src/server.ts
- Etherscan API interactions are handled in
src/services/etherscanService.ts
- Build after changes:
npm run build
License
MIT License - See LICENSE file for details
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.