Skip to main content
The Etherscan MCP server connects AI agents to live onchain data across all 60+ supported chains, over MCP. Connect it to a client like Claude Desktop, Claude Code, or Codex, then ask in plain language and get answers grounded in real Etherscan API responses.
The Etherscan MCP
One connection covers every chain, just pass the chainid. Ask about Arbitrum and the agent uses chainid=42161. See Supported chains for the full list.

Get started

First, create a free API key if you do not have one. Then pick your client below and follow it end to end.
Claude Desktop is Anthropic’s desktop chat app.
1

Add Etherscan to your config

In Claude Desktop, open Settings > Developer > Edit Config to open the claude_desktop_config.json file.
Claude Desktop Settings > Developer, showing the Edit Config button
In the file that opens, add the etherscan server (replace YourApiKey with your key):
claude_desktop_config.json
Requires Node.js.
2

Confirm it's connected

Save, then fully quit Claude Desktop and reopen it. Then open Settings > Developer and look for etherscan under Local MCP servers with a running badge.
Claude Desktop Settings > Developer showing the Etherscan MCP server with a running badge
3

Ask your first question

Ask in plain language and approve the tool calls when prompted:
In this example, it calls two tools:
  • get_transaction_by_hash for the sender, recipient, amount, and input data
  • get_transaction_receipt to confirm the transaction succeeded
It then answers with a one-line summary. Both tools work on the free API plan.
Claude Desktop giving a one-line summary of a USDT transfer via the Etherscan MCP, then adding Etherscan name tags: Bitstamp 61 sent 269,618.78 USDT to a Bitget deposit address
To label the addresses involved with their Etherscan name tags, follow up with:
This uses get_address_labels, a Pro tool that requires a paid plan.

Example prompts

Ask in plain language and let the agent pick the tools. Copy one to try it:

Tools

The server exposes 20 tools. The agent selects and calls them for you; you rarely name a tool yourself.

Good to know

  • Read-only. Every tool reads public onchain data. Nothing signs or sends a transaction.
  • Every tool call uses your API quota. Each MCP tool call makes one or more Etherscan API requests, and every request counts toward your API plan’s rate limits, exactly like calling the API directly. See Rate limits.
  • Guard against prompt injection. Enable your client’s human-confirmation prompts, and be cautious when combining Etherscan with other MCP servers in the same session.