Etherscan MCP Server

An etherscan mcp made for developer

Local serverstdioTypeScript

What is the Etherscan MCP server?

Etherscan MCP server exists for a simple reason — assistants are far more useful when they can act on Etherscan directly instead of describing what you should do. An etherscan mcp made for developer.

What you get

A powerful Model Context Protocol (MCP) server that brings Etherscan's blockchain data directly to your AI tools like Claude Code and Cursor! 🚀

This MCP server is specifically designed for dApp and smart contract developers! 👨‍💻 It supercharges your AI assistant with essential blockchain development tools by providing direct access to Etherscan's data:

What the assistant can call

Once Etherscan is connected, these are the calls the assistant has available:

  • Cursor — ~/.cursor/mcp.json
  • Windsurf — ~/.codeium/windsurf/mcp_config.json
  • Cline — ~/.cline/mcp_config.json
  • Claude — ~/.claude/mcp_config.json
  • Prerequisites — The Prerequisites tool exposed by this server
  • Development — The Development tool exposed by this server
  • Production — The Production tool exposed by this server

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Configuration and credentials

You will need one environment variable: ETHERSCAN_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js (v20 or higher) - pnpm - An Etherscan API key (get yours at etherscan.io)

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Etherscan's toolset — Cursor, Windsurf, Cline and 4 more — is a fair guide to whether it matches your workflow. It is maintained by zhougaoyilang; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Etherscan's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the etherscan mcp server does with a few real requests.

Available tools

ToolWhat it does
Cursor~/.cursor/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
Cline~/.cline/mcp_config.json
Claude~/.claude/mcp_config.json
PrerequisitesThe Prerequisites tool exposed by this server.
DevelopmentThe Development tool exposed by this server.
ProductionThe Production tool exposed by this server.

How to install the Etherscan MCP server

{
     "mcpServers": {
       "etherscan-mcp": {
         "command": "npx",
         "args": ["-y", "etherscan-mcp-for-dev@latest"],
         "env": {
           "ETHERSCAN_API_KEY": "your_api_key_here"
         }
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js (v20 or higher) - pnpm - An Etherscan API key (get yours at etherscan.io)
VariableDescriptionRequired
ETHERSCAN_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Etherscan to Cursor.
  • Use Etherscan to Windsurf.
  • Use Etherscan to Cline.

Frequently asked questions

It connects Etherscan to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (Cursor, Windsurf, Cline, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Etherscan directly.