# How to integrate Etherscan MCP with Atomic Agent

```json
{
  "title": "How to integrate Etherscan MCP with Atomic Agent",
  "toolkit": "Etherscan",
  "toolkit_slug": "etherscan",
  "framework": "Atomic Agent",
  "framework_slug": "atomic-agent",
  "url": "https://composio.dev/toolkits/etherscan/framework/atomic-agent",
  "markdown_url": "https://composio.dev/toolkits/etherscan/framework/atomic-agent.md",
  "updated_at": "2026-11-12T05:32:54.405Z"
}
```

## Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including Etherscan.
This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Etherscan account. See the [Atomic Agent documentation](https://atomicagent.io/docs/?cta_placement=atomic-agent-docs) for installation instructions.

## Also integrate Etherscan with

- [ChatGPT](https://composio.dev/toolkits/etherscan/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/etherscan/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/etherscan/framework/hermes-agent)

## TL;DR

### How Atomic Agent connects to Etherscan
Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.
Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

## Connect Etherscan to Atomic Agent

### Connect Etherscan to Atomic Agent
- Sign up or sign in to the [Composio dashboard](https://dashboard.composio.dev/?cta_placement=atomic-agent-api-key). Copy your API key.
- In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
- Ask Atomic Agent to do something in Etherscan. It searches Composio for the right tool.
- On first use, open the sign-in link returned in the chat. Connect your Etherscan account, then return to Atomic Agent to continue.
### Headless setup
Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

```bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
```

## What is the Etherscan MCP server, and what's possible with it?

The Etherscan MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Etherscan account. It provides structured and secure access to blockchain account, transaction, contract, token, gas, and block data, so your agent can check balances and prices, inspect transactions and receipts, review verified contracts, track gas and block activity, and analyze token details on your behalf.
- Account and market insights: Have your agent check native and ERC20 token balances, review Ether supply, look up token holder counts, and retrieve current native-token prices.
- Transaction investigation: Direct your agent to look up transaction details, receipts, execution results, confirmation status, funding sources, and transaction counts for blockchain addresses.
- Contract research: Let the agent retrieve verified source code, ABI details, bytecode, creation records, storage values, metadata, and read-only contract results.
- Gas and network monitoring: Instruct your agent to check current gas recommendations, estimate transaction gas, track confirmation timing, inspect the latest block, and find block details by timestamp.
- Token and blockchain analysis: Have your agent review token identity, supply, verification, project links, daily gas prices, block rewards, chain size, node counts, and beacon withdrawals.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `ETHERSCAN_CALL_CONTRACT` | Call Contract | Execute a read-only eth_call at latest state and return raw ABI-encoded data; no transaction is created. |
| `ETHERSCAN_ESTIMATE_CONFIRMATION_TIME` | Estimate Confirmation Time | Estimate confirmation time in seconds for an optional exact gas price in wei. |
| `ETHERSCAN_ESTIMATE_TRANSACTION_GAS` | Estimate Transaction Gas | Estimate gas required for a transaction-like call without submitting a transaction. |
| `ETHERSCAN_GET_ADDRESS_FUNDING_SOURCE` | Get Address Funding Source | Get the first transaction and address that funded an externally owned account. Contract addresses are unsupported. |
| `ETHERSCAN_GET_ADDRESS_METADATA` | Get Address Metadata | Get Etherscan nametags, labels, reputation, notes, and provider-defined metadata for up to 100 addresses. This PRO+ operation is available only on Pro Plus, is mainnet-only, and is limited to two calls per second. |
| `ETHERSCAN_GET_ADDRESS_TRANSACTION_COUNT` | Get Address Transaction Count | Get the number of transactions sent from an address at an optional block tag, as hexadecimal. |
| `ETHERSCAN_GET_API_USAGE` | Get API Usage | Get API credits used, available, and allowed for the connected API key's current interval. This account-level operation has no chain selection. |
| `ETHERSCAN_GET_BLOCK_BY_NUMBER` | Get Block by Number | Get JSON-RPC block information for an explicit hexadecimal block number or the latest block, returning transaction hashes or full transaction objects. Proxy-read chain and plan availability is dynamic and currently unknown; null-result behavior is unprobed. |
| `ETHERSCAN_GET_BLOCK_COUNTDOWN` | Get Block Countdown | Estimate blocks and seconds remaining until a future block is mined. |
| `ETHERSCAN_GET_BLOCK_NUMBER_BY_TIMESTAMP` | Get Block Number by Timestamp | Get the decimal block number closest before or after a Unix timestamp in seconds. This community operation's chain and plan availability is dynamic and currently unknown. |
| `ETHERSCAN_GET_BLOCK_REWARDS` | Get Block Rewards | Get a block's miner reward, uncle inclusion reward, and included uncle records. |
| `ETHERSCAN_GET_BLOCK_TRANSACTION_COUNT` | Get Block Transaction Count | Get a block's total JSON-RPC transaction count as hexadecimal, without transfer-type breakdowns. |
| `ETHERSCAN_GET_BLOCK_TRANSACTION_COUNTS` | Get Block Transaction Counts | Get Ethereum mainnet normal, internal, ERC20, ERC721, and ERC1155 transaction counts for a decimal block number. |
| `ETHERSCAN_GET_CONTRACT_ABI` | Get Contract ABI | Get the JSON-encoded ABI string for a verified contract. Etherscan documents this operation as available on every supported chain and every API plan, including Free. |
| `ETHERSCAN_GET_CONTRACT_BYTECODE` | Get Contract Bytecode | Get bytecode stored at an address for an optional named or hexadecimal block tag. |
| `ETHERSCAN_GET_CONTRACT_CREATION` | Get Contract Creation | Get creator, creation transaction, block, Unix-second timestamp, factory, and creation bytecode for up to five contracts on one chain. This operation's chain and plan availability is dynamic and currently unknown. |
| `ETHERSCAN_GET_CONTRACT_EXECUTION_STATUS` | Get Contract Execution Status | Get whether a transaction's contract execution failed and any provider error description. A failed contract execution is returned as successful read data, not as a tool error. This community operation's chain and plan availability is dynamic and currently unknown; pending and missing-transaction behavior is unprobed. |
| `ETHERSCAN_GET_CONTRACT_SOURCE_CODE` | Get Contract Source Code | Get source code plus compiler, proxy, implementation, license, and verification metadata for one contract. Etherscan documents this operation as available on every supported chain and every API plan, including Free. Unverified contracts may legitimately return empty source code and ABI error text. |
| `ETHERSCAN_GET_CONTRACT_STORAGE` | Get Contract Storage | Get the raw value at a contract storage position for an optional block tag. |
| `ETHERSCAN_GET_CURRENT_GAS_PRICE` | Get Current Gas Price | Get the canonical JSON-RPC current gas price in wei as hexadecimal; use Get Gas Oracle for recommendations. |
| `ETHERSCAN_GET_ERC20_BALANCE` | Get ERC20 Balance | Get one address's ERC20 token balance in exact smallest units, optionally at a historical block. Historical lookup requires Standard+, is mainnet-only and unavailable on testnets; current balance availability is dynamic. |
| `ETHERSCAN_GET_ERC20_TOTAL_SUPPLY` | Get ERC20 Total Supply | Get an ERC20 token's current total supply, or its historical supply when block_number is provided; historical lookup requires Standard+, is mainnet-only, and is unavailable on testnets. |
| `ETHERSCAN_GET_ETHER_SUPPLY` | Get Ether Supply | Get Ether supply in wei, either the basic block-reward supply or the ETH-specific component breakdown including staking, EIP-1559 burned fees, and staking withdrawals. |
| `ETHERSCAN_GET_GAS_ORACLE` | Get Gas Oracle | Get current safe, proposed, and fast gas-price recommendations and the suggested base fee as gwei strings. The documentation displays Ethereum, BNB Smart Chain, Polygon, Celo, Gnosis, and Linea mainnets; plan availability and availability on other chains are unknown. |
| `ETHERSCAN_GET_LATEST_BLOCK_NUMBER` | Get Latest Block Number | Get the latest block number as an exact hexadecimal JSON-RPC quantity. |
| `ETHERSCAN_GET_LATEST_NATIVE_PRICE` | Get Latest Native Price | Get the latest native-token prices in BTC and USD with their Unix-second timestamps. |
| `ETHERSCAN_GET_NATIVE_BALANCE` | Get Native Balance | Get one address's native-token balance in exact wei, optionally at a historical block. Historical lookup requires Standard+, is mainnet-only and unavailable on testnets, and is limited to 2 calls/second; current/recent availability is dynamic. |
| `ETHERSCAN_GET_NATIVE_BALANCES` | Get Native Balances | Get native-token balances for up to 20 addresses in one call, returning wei as exact decimal strings on one chain. This community operation's chain and plan availability is dynamic and currently unknown. |
| `ETHERSCAN_GET_NODE_COUNT` | Get Node Count | Get the current discoverable-node count or daily historical counts over a UTC date range. Historical mode requires Standard+ and Ethereum mainnet chain_id 1. |
| `ETHERSCAN_GET_TOKEN_HOLDER_COUNT` | Get Token Holder Count | Get the number of addresses currently holding an ERC20 token. This PRO Standard+ operation is available on supported mainnets only. |
| `ETHERSCAN_GET_TOKEN_INFO` | Get Token Info | Get token identity, standard, supply, verification, project links, price, and logo metadata for an ERC20, ERC721, or ERC1155 contract. This PRO Standard+ operation is mainnet-only and limited to two calls per second. |
| `ETHERSCAN_GET_TRANSACTION` | Get Transaction | Get one full JSON-RPC transaction by hash or by hexadecimal block number and transaction index. |
| `ETHERSCAN_GET_TRANSACTION_RECEIPT` | Get Transaction Receipt | Get a full JSON-RPC transaction receipt, including event logs, by hash on one chain. Proxy-read chain and plan availability is dynamic and currently unknown. Hexadecimal quantities are preserved as strings; an explicit null result is returned without assigning unverified pending or not-found meaning. |
| `ETHERSCAN_GET_TRANSACTION_RECEIPT_STATUS` | Get Transaction Receipt Status | Get a transaction receipt's success or failure status string. The status may be empty for a pre-Byzantium block. This community operation's chain and plan availability is dynamic and currently unknown; pending and missing-transaction behavior is unprobed. |
| `ETHERSCAN_GET_UNCLE_BLOCK` | Get Uncle Block | Get an uncle block by optional hexadecimal parent block number and uncle index. |
| `ETHERSCAN_GET_VERIFICATION_STATUS` | Get Verification Status | Check source-code or proxy verification status for a GUID returned by a prior verification submission. This read-only action does not submit verification; pending and failed verification text is returned as data. |
| `ETHERSCAN_LIST_BEACON_WITHDRAWALS` | List Beacon Withdrawals | List one page of beacon-chain withdrawals, optionally filtered by recipient and inclusive block range. |
| `ETHERSCAN_LIST_CHAIN_SIZE` | List Chain Size | List daily Ethereum node-chain size measurements for one client and sync mode over a date range. |
| `ETHERSCAN_LIST_DAILY_BLOCK_COUNTS_AND_REWARDS` | List Daily Block Counts and Rewards | List daily mined-block counts and corresponding block rewards in ether over a UTC date range. |
| `ETHERSCAN_LIST_DAILY_GAS_PRICES` | List Daily Gas Prices | List daily minimum, average, and maximum gas prices in wei over a UTC date range. |
| `ETHERSCAN_LIST_DAILY_NETWORK_METRICS` | List Daily Network Metrics | List one normalized daily scalar metric over a UTC date range. The response echoes the metric and unit; Ether historical price is explicitly ETH-specific. All variants require Standard+, are mainnet-only, and are unavailable on testnets; ens_registration_count additionally requires chain_id 1. |
| `ETHERSCAN_LIST_DAILY_UNCLE_COUNTS_AND_REWARDS` | List Daily Uncle Counts and Rewards | List daily uncle-block counts and uncle rewards in ether over a UTC date range. |
| `ETHERSCAN_LIST_ERC721_INVENTORY` | List ERC721 Inventory | List one page of ERC721 token IDs owned by an address for one collection. Requires Standard+, is mainnet-only and unavailable on testnets, and is limited to 2 calls/second. |
| `ETHERSCAN_LIST_EVENT_LOGS` | List Event Logs | List one provider page of event logs over an inclusive block range, filtered by an emitting address, indexed topics, or both. Chain and plan availability is dynamic; hexadecimal quantities are preserved exactly. |
| `ETHERSCAN_LIST_INTERNAL_TRANSACTIONS` | List Internal Transactions | List internal transactions by address, transaction hash, or an unfiltered block range. Address and hash availability depends on the current chain and API plan. Block-range-only mode explicitly requires an Etherscan Standard or higher plan, is available on mainnets only, and is unavailable on testnets. Address and block-range modes return one provider page. Hash mode is not paginated and returns only matching non-zero-value internal transactions. After a query timeout, narrow the block range or reduce offset. |
| `ETHERSCAN_LIST_L2_BRIDGE_TRANSACTIONS` | List L2 Bridge Transactions | List one page of canonical L2 deposits from Ethereum or withdrawals to Ethereum for an address on a supported L2. |
| `ETHERSCAN_LIST_NORMAL_TRANSACTIONS` | List Normal Transactions | List one provider page of an address's normal transactions, optionally filtered by start and end block. Chain and plan availability is dynamic. |
| `ETHERSCAN_LIST_PLASMA_DEPOSITS` | List Plasma Deposits | List one page of Plasma deposit transactions on documented Polygon, Gnosis, or BitTorrent Chain networks, optionally filtered by recipient address. |
| `ETHERSCAN_LIST_SUPPORTED_CHAINS` | List Supported Chains | List current Etherscan mainnet and testnet chains, explorer and API URLs, and service status. This discovery operation has no chain selection and is the time-sensitive authority for supported chain IDs. |
| `ETHERSCAN_LIST_TOKEN_HOLDERS` | List Token Holders | List one page of ERC20 holders or up to 1000 top holders for a token. Top ranking includes contract-versus-EOA address type. Both operations require PRO Standard+, are mainnet-only, and top ranking is limited to two calls per second. |
| `ETHERSCAN_LIST_TOKEN_HOLDINGS` | List Token Holdings | List one page of ERC20 token balances or ERC721 collection quantities held by an address. Requires Standard+ and mainnet access, is unavailable on testnets, and both variants are limited to 2 calls/second. |
| `ETHERSCAN_LIST_TOKEN_TRANSFERS` | List Token Transfers | List one provider page of ERC20, ERC721, or ERC1155 transfers, selected by token_standard and filtered by an account, token contract, or both on one chain. Standard-specific amounts, token IDs, token counts, and blockchain quantities remain exact strings. Chain and plan availability is dynamic; after a query timeout, narrow the block range or reduce offset. |
| `ETHERSCAN_LIST_VALIDATED_BLOCKS` | List Validated Blocks | List one page of full blocks or pre-Merge uncle blocks validated by an address. |
| `ETHERSCAN_RESOLVE_ENS_NAME` | Resolve ENS Name | Resolve an ENS name or supported onchain subdomain to an address on Ethereum mainnet. Offchain and wildcard resolution are unsupported; Free-tier calls are limited to one per second and results may be cached for five minutes. |

## Supported Triggers

None listed.

## Troubleshooting

### Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

### Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

### Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See [Composio pricing](/pricing/platform) for the current limits that apply to your connection.

## Complete Code

None listed.

## Conclusion

### Use Etherscan from Atomic Agent
With your account connected, ask Atomic Agent to work with Etherscan in natural language. You can connect more apps through the same Composio integration as you need them.
Visit the [Atomic Agent website](https://atomicagent.io/?cta_placement=atomic-agent-site) or inspect the [Atomic Agent source code](https://github.com/AtomicBot-ai/atomic-agent?cta_placement=atomic-agent-repo).

## How to build Etherscan MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/etherscan/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/etherscan/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/etherscan/framework/hermes-agent)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [1password](https://composio.dev/toolkits/_1password) - 1Password is a password manager and digital vault for storing logins, secrets, notes, and secure documents. It helps individuals and teams protect credentials, share access safely, and reduce password risk.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anakin](https://composio.dev/toolkits/anakin_io) - Anakin is a web automation platform offering scraping, crawling, search, and browser automation. Use it to extract structured data, automate site tasks, and monitor web changes reliably.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [AnyAPI](https://composio.dev/toolkits/anyapi) - AnyAPI is a marketplace of utility APIs for validation, currency conversion, holidays, documents, and web data. It brings common application workflows together through one practical API platform.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.
- [Appveyor](https://composio.dev/toolkits/appveyor) - AppVeyor is a cloud-based continuous integration service for building, testing, and deploying applications. It helps developers automate and streamline their software delivery pipelines.
- [Authyo](https://composio.dev/toolkits/authyo) - Authyo is a REST API service for passwordless authentication, OTP verification, session management, and transactional notifications. Use it to add secure login flows and user verification without building auth infrastructure from scratch.
- [AWS Marketplace MCP](https://composio.dev/toolkits/aws_marketplace_mcp) - AWS Marketplace MCP provides MCP access to AWS Marketplace's cloud software, data, and services catalog. Use it to discover, compare, and evaluate 30K+ AWS Marketplace listings faster.
- [Azure Monitor Activity Log](https://composio.dev/toolkits/azure_monitor_activity_log) - Azure Monitor Activity Log is Azure's service that records management and control-plane events for a subscription. Use it to audit changes, troubleshoot issues, and track resource operations across your Azure resources.
- [Backendless](https://composio.dev/toolkits/backendless) - Backendless is a backend-as-a-service platform for mobile and web apps, offering database, file storage, user authentication, and APIs. It helps developers ship scalable applications faster without managing server infrastructure.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Etherscan MCP?

With a standalone Etherscan MCP server, the agents and LLMs can only access a fixed set of Etherscan tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Etherscan and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Atomic Agent?

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Etherscan tools.

### Can I manage the permissions and scopes for Etherscan while using Tool Router?

Yes, absolutely. You can configure which Etherscan scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Etherscan data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
