MCP ExplorerExplorer

Etherscan Mcp

@xiaokon 10 months ago
8 MIT
FreeCommunity
AI Systems
Model Context Protocol (MCP) Server for Etherscan

Overview

What is Etherscan Mcp

etherscan-mcp is a Model Context Protocol (MCP) Server designed specifically for Etherscan, enabling seamless interaction with Ethereum blockchain data.

Use cases

Use cases for etherscan-mcp include developing decentralized applications (dApps), monitoring blockchain transactions, and integrating Ethereum data into various software solutions.

How to use

To use etherscan-mcp, you can run your server using the command ‘npx fastmcp dev server.js’ or ‘npx fastmcp dev server.ts’. For inspection, utilize the MCP Inspector with ‘npx fastmcp inspect server.ts’. Configuration for Claude Desktop can be set as per the provided JSON example.

Key features

Key features of etherscan-mcp include easy server setup, integration with Etherscan API, and support for testing and debugging via mcp-cli and MCP Inspector.

Where to use

etherscan-mcp can be used in blockchain development, particularly for applications that require real-time access to Ethereum blockchain data and analytics.

Content

@xiaok/etherscan-mcp

smithery badge

A dynamic MCP server for interacting with Etherscan’s API and services.

Etherscan MCP server

Running Your Server

Test with mcp-cli

The fastest way to test and debug your server is with fastmcp dev:

npx fastmcp dev src/index.ts

This will run your server with mcp-cli for testing and debugging your MCP server in the terminal.

Inspect with MCP Inspector

Another way is to use the official MCP Inspector to inspect your server with a Web UI:

npx npx fastmcp inspect src/index.ts

FAQ

How to use with Claude Desktop?

Follow the guide https://modelcontextprotocol.io/quickstart/user and add the following configuration:

{
  "mcpServers": {
    "etherscan_mcp": {
      "command": "npx",
      "args": [
        "tsx",
        "/PATH/TO/YOUR_PROJECT/src/index.ts"
      ],
      "env": {
        "ETHERSCAN_API_KEY": "********"
      }
    }
  }
}

API Doc

https://docs.etherscan.io/etherscan-v2

support chain list: https://docs.etherscan.io/etherscan-v2/getting-started/supported-chains

Please note that not all endpoints are supported by all chains. Please find support list here: https://forms.blockscan.com/public/grid/3E9QiN00NLhCQVibiP3Z-Bpqhmd7zGXsgapEKJupxiI

TODO

  1. support pro api

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers