Navigation
MCP Etherscan Server: Instant Audits & Web3 Transparency - MCP Implementation

MCP Etherscan Server: Instant Audits & Web3 Transparency

MCP Etherscan Server: Your mirror of blockchain truth—fast, reliable audits with instant contract checks and seamless web3 transparency. Trust verified.

Research And Data
4.6(77 reviews)
115 saves
53 comments

Users create an average of 54 projects per month with this tool

About MCP Etherscan Server

What is MCP Etherscan Server: Instant Audits & Web3 Transparency?

This server acts as a bridge between the Ethereum blockchain and MCP-compatible tools like Claude Desktop. By leveraging Etherscan's API, it enables developers and users to perform real-time audits, track transactions, and access smart contract details with minimal setup. Think of it as a streamlined toolkit for anyone needing instant visibility into on-chain activity without deep technical expertise.

How to use MCP Etherscan Server: Instant Audits & Web3 Transparency?

Start by installing the server via Git and Node.js, then configure your Etherscan API key in the .env file. Once running, integrate it into Claude Desktop through a simple server configuration. From there, you can query balances, trace token transfers, or fetch contract ABIs directly within your workflow using natural language commands. For example, asking "Show ETH balance for 0x123..." triggers an instant API call and formatted response.

MCP Etherscan Server Features

Key Features of MCP Etherscan Server: Instant Audits & Web3 Transparency?

  • Instant Balance Checks: Verify wallet holdings in seconds with human-readable responses
  • Transaction Tracking: Follow token movements across multiple addresses with timestamped details
  • Smart Contract Insights: Retrieve verified contract code and ABI schemas for security audits
  • Gas Monitoring: Get real-time gas price updates to optimize transaction costs
  • Seamless Integration: Works out-of-the-box with popular developer tools like VS Code and CLI interfaces

Use Cases for MCP Etherscan Server: Instant Audits & Web3 Transparency?

MCP Etherscan Server FAQ

FAQ about MCP Etherscan Server: Instant Audits & Web3 Transparency?

  • Q: How do I get an Etherscan API key?
    A: Visit Etherscan's official site and register for a free API key with basic access limits.
  • Q: Can this handle high-volume queries?
    A: The server includes rate-limiting safeguards but we recommend API key upgrades for enterprise usage.
  • Q: Does it support other blockchains?
    A: Currently Ethereum-only, but future updates may include multi-chain support based on community feedback.

Content

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

Installation

  1. Clone the repository:
git clone [your-repo-url]
cd mcp-etherscan-server
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory:
ETHERSCAN_API_KEY=your_api_key_here
  1. 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

  1. check-balance
* Input: Ethereum address
* Output: ETH balance in both Wei and ETH
  1. get-transactions
* Input: Ethereum address, optional limit
* Output: Recent transactions with timestamps, values, and addresses
  1. get-token-transfers
* Input: Ethereum address, optional limit
* Output: Recent ERC20 token transfers with token details
  1. get-contract-abi
* Input: Contract address
* Output: Contract ABI in JSON format
  1. get-gas-prices
* Input: None
* Output: Current gas prices in Gwei
  1. get-ens-name
* Input: Ethereum address
* Output: Associated ENS name if available

Using with Claude Desktop

To add this server to Claude Desktop:

  1. Start the server using npm start

  2. 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
  1. 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:

  1. The main server logic is in src/server.ts
  2. Etherscan API interactions are handled in src/services/etherscanService.ts
  3. Build after changes: npm run build

License

MIT License - See LICENSE file for details

Related MCP Servers & Clients