etherscan-mcp-skill
Original:🇺🇸 English
Translated
1 scripts
Use Etherscan MCP through UXC for address balance checks, token holder analysis, transaction inspection, and contract lookup tasks. Use when tasks need Etherscan MCP tools for onchain investigation with help-first schema inspection, bearer-key auth, and tier-aware read-first handling.
4installs
Sourceholon-run/uxc
Added on
NPX Install
npx skill4agent add holon-run/uxc etherscan-mcp-skillTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Etherscan MCP Skill
Use this skill to run Etherscan MCP operations through .
uxcReuse the skill for shared protocol discovery, output parsing, and generic auth/binding flows.
uxcPrerequisites
- is installed and available in
uxc.PATH - Network access to .
https://mcp.etherscan.io/mcp - An Etherscan API key is available for authenticated calls.
Core Workflow
- Confirm endpoint and protocol with help-first probing:
uxc https://mcp.etherscan.io/mcp -h- expected unauthenticated behavior today:
401 Unauthorized
- Configure credential/binding for repeatable auth:
uxc auth credential set etherscan-mcp --auth-type bearer --secret-env ETHERSCAN_API_KEYuxc auth credential set etherscan-mcp --auth-type bearer --secret-op op://Engineering/etherscan/api-keyuxc auth binding add --id etherscan-mcp --host mcp.etherscan.io --path-prefix /mcp --scheme https --credential etherscan-mcp --priority 100
- Use fixed link command by default:
command -v etherscan-mcp-cli- If missing, create it:
uxc link etherscan-mcp-cli https://mcp.etherscan.io/mcp etherscan-mcp-cli -h
- Inspect operation schema before execution:
etherscan-mcp-cli balance -hetherscan-mcp-cli tokenTopHolders -hetherscan-mcp-cli getContractAbi -hetherscan-mcp-cli transaction -h
- Prefer read operations first, then any workflow that could trigger heavy data pulls or follow-up automation.
Capability Map
- Address investigation:
balancetokenHoldingsfundedBygetAddressMetadata
- Token holder analysis:
balanceERC20balanceERC20HistoricaltokenTopHoldersgetTokenInfo
- Transaction investigation:
txListinternalTxsByAddresserc20Transferserc721Transferserc1155TransferstransactioncheckTransaction
- Contract research:
getContractAbigetContractSourceCodegetContractCreation
- Verification:
verifySourceCodecheckVerifyStatus
Inspect after auth setup for the current full tool list. Etherscan can expand MCP tools independently of this wrapper skill.
etherscan-mcp-cli -hRecommended Usage Pattern
- Start from a read-only investigation goal:
- balance or holdings for an address
- holder concentration for a token
- transaction inspection for a hash
- source/metadata lookup for a contract
- Run on the specific tool before the first real call.
-h - Prefer one chain/address/token at a time before broadening the scope.
- Parse the JSON envelope first, then inspect .
data
Guardrails
- Keep automation on JSON output envelope; do not rely on .
--text - Parse stable fields first: ,
ok,kind,protocol,data.error - Use as default command path.
etherscan-mcp-cli - is equivalent to
etherscan-mcp-cli <operation> ....uxc https://mcp.etherscan.io/mcp <operation> ... - If unauthenticated probe or runtime call returns :
401 Unauthorized- confirm auth binding matches endpoint with
uxc auth binding match https://mcp.etherscan.io/mcp - confirm credential shape with
uxc auth credential info etherscan-mcp - reset credential as bearer if needed:
uxc auth credential set etherscan-mcp --auth-type bearer --secret-env ETHERSCAN_API_KEY
- confirm auth binding matches endpoint with
- Use only for simple scalar inputs.
key=value - Prefer positional JSON when an operation accepts nested objects, arrays, or optional flags that may evolve.
- Do not assume tool argument names from memory; inspect first because Etherscan may revise MCP schemas independently of this skill.
<operation> -h - Some MCP tools are tier-gated by Etherscan plan. Today can return
getTokenInfowith an API Pro upgrade message on non-Pro keys.NOTOK - Treat as a write-like action requiring explicit user confirmation.
verifySourceCode
References
- Invocation patterns:
references/usage-patterns.md