Etherscan MCP server for AI agents

Live

API KEY

BLOCKCHAIN DATA

Developer Tools

Etherscan gives your agent read access to on-chain data across supported chains: look up address balances, transactions, and token holdings, read contracts and blocks, check gas prices, and resolve ENS names.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Etherscan
agent · Acme Q3
Run
What is the ETH balance of this wallet address?
S
etherscan_balance_get
118ms
Blockchain agent
The address holds 32.4 ETH. The balance is returned in wei and converted for you.
Sources: Etherscan address balance, 1 address
etherscan
1 address
18:29
Message Claude...

Tools your blockchain data agent reaches for on Etherscan, scoped per user.

CALL ANY TOOL
60 tools for blockchain data in Etherscan: look up balances, transactions, and token holdings, read contracts and blocks, check gas prices, and resolve ENS names.
etherscan_address_funded_by_get
Get address funded by
Get the address and transaction that first funded an externally owned address, to trace where its funds came from. Not available for contract addresses. Returns status, message and result.
Parameters
Name
Type
Required
Description
address
string
Required
Address to query, 0x followed by 40 hex characters. Example: 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe.
chainid
string
Optional
Chain ID to query: 1 Ethereum (default), 8453 Base, 42161 Arbitrum One, 10 OP Mainnet, 137 Polygon, 56 BNB Smart Chain, 43114 Avalanche C-Chain, 11155111 Sepolia, and the other chains in etherscan_chains_list. Example: 1. Default: `1`.
etherscan_address_nft_holdings_list
List address nft holdings
etherscan_address_token_holdings_list
List address token holdings
etherscan_api_usage_get
Get api usage
etherscan_balance_history_get
Get balance history
etherscan_block_number_by_time_get
Get block number by time
etherscan_block_transaction_count_get
Get block transaction count
etherscan_chains_list
List chains
etherscan_contract_creation_get
Get contract creation
etherscan_daily_transaction_fees_list
List daily transaction fees
etherscan_ens_resolve
Resolve ens
etherscan_erc1155_transfers_list
List erc1155 transfers
etherscan_eth_block_get
Get eth block
etherscan_eth_block_transaction_count_get
Get eth block transaction count
etherscan_eth_call
Call eth
etherscan_eth_gas_price_get
Get eth gas price
etherscan_eth_storage_get
Get eth storage
etherscan_eth_transaction_by_block_index_get
Get eth transaction by block index
etherscan_eth_transaction_get
Get eth transaction
etherscan_gas_confirmation_time_get
Get gas confirmation time
etherscan_internal_transactions_by_block_range_list
List internal transactions by block range
etherscan_internal_transactions_list
List internal transactions
etherscan_l2_withdrawals_list
List l2 withdrawals
etherscan_logs_get
Get logs
etherscan_nft_transfers_list
List nft transfers
etherscan_token_balance_get
Get token balance
etherscan_token_holder_count_get
Get token holder count
etherscan_token_supply_get
Get token supply
etherscan_token_top_holders_list
List token top holders
etherscan_transaction_execution_status_get
Get transaction execution status

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Etherscan tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["etherscan"], toolNames: [
    "etherscan_balance_get",
    "etherscan_transactions_list",
    "etherscan_gas_oracle_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Get the ETH balance of this address, list its recent transactions, and show the current gas price recommendations" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["etherscan"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Get the ETH balance of this address, list its recent transactions, and show the current gas price recommendations" }],
  tools,
});

// Execute the tool call with the user's vaulted Etherscan API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["etherscan"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Get the ETH balance of this address, list its recent transactions, and show the current gas price recommendations" }],
  tools,
});

// Tool call runs with the user's vaulted Etherscan API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["etherscan"] }, pageSize: 100,
});

const agent = new Agent({
  name: "blockchain_agent",
  model: "gemini-2.5-pro",
  instruction: "Etherscan tools scoped to this user",
  tools,
});

await agent.run("Get the ETH balance of this address, list its recent transactions, and show the current gas price recommendations");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Etherscan tool. Click to copy, paste into your agent, done.
Addresses and transactions
Copy the prompt
Copied
Get the ETH balance of this address.
Copy the prompt
Copied
List the recent transactions of this address.
Copy the prompt
Copied
Get the transaction and its receipt for this hash.
Tokens and contracts
Copy the prompt
Copied
List the ERC-20 token transfers for this address.
Copy the prompt
Copied
Get the verified source code and ABI of this contract.
Copy the prompt
Copied
How many holders does this token have?
Gas and ENS
Copy the prompt
Copied
What are the current gas price recommendations?
Copy the prompt
Copied
Resolve vitalik.eth to its address.
Copy the prompt
Copied
Show the daily average gas price for the last 30 days.
SEE HOW AUTH WORKS
Each user connects their own Etherscan API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Etherscan
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Etherscan
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Etherscan
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Etherscan
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools and analytics connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other developer tools and analytics connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Etherscan API key looks fine in a demo. In production every address lookup looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Etherscan today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Etherscan as the user or through a shared key?
As the user. Each user connects their own Etherscan API key once, and Scalekit sends it with every call. Audit logs attribute every lookup to that user, not a shared service account.
Where is the Etherscan API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Etherscan?
All 60 tools are read-only, so the agent cannot send transactions or change anything on chain. You can still narrow what it sees: filter by tool name in listScopedTools, for example the balance and gas tools without the token holder tools. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Etherscan access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Do all Etherscan tools work on every API plan?
No. Some tools are PRO plan endpoints, such as etherscan_token_holders_list and etherscan_balance_history_get. etherscan_api_usage_get shows your API credit usage and limit for the current interval.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""etherscan"": {
""url"": ""https://mcp.scalekit.com/etherscan"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.etherscan]
url = ""https://mcp.scalekit.com/etherscan""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""etherscan"": {
""url"": ""https://mcp.scalekit.com/etherscan"",
""type"": ""http""
}
}
}