A first-class Etherscan API V2 CLI built with incur.
Install globally from npm:
npm install -g @lewi/etherscan-cliOr run without installing:
npx @lewi/etherscan-cli --helpFor local development:
bun install
bun run buildetherscan setup --api-key YOUR_KEY --plan free --non-interactiveThe CLI reads API keys in this order:
--api-keyETHERSCAN_API_KEY~/.etherscan-cli/config.json
etherscan account balance 0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae --chainid 1 --json
etherscan contracts abi 0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413 --chainid 1
etherscan raw account balance --params address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae,tag=latest
etherscan catalog --jsonThe CLI uses incur, so it can expose the command surface to agents.
Print the CLI skill/manifest:
etherscan --llmsInstall the generated skill into supported local agents:
etherscan skills addRegister the CLI as an MCP server:
etherscan mcp addStart MCP stdio mode directly:
etherscan --mcpFree-tier public output includes Etherscan attribution by default.