/ucai:abi-to-mcpfrom ucai
Generates a Python MCP server from an EVM smart contract ABI, creating one tool per function and events as resources. Supports local ABI files or Etherscan-style address lookups.
Ships in ucai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
UCAI is a Python CLI that turns an EVM contract ABI into a standalone MCP server project: one tool per function, events as resources, write calls simulated by default.
pip install abi-to-mcp # Python 3.10+, installs the `abi-to-mcp` command
abi-to-mcp --version
python -m abi_to_mcp is equivalent to the abi-to-mcp command.
| Command | Purpose |
|---|---|
abi-to-mcp networks | List supported networks (mainnet, sepolia, goerli, polygon, arbitrum, optimism, base, bsc, avalanche, fantom) |
abi-to-mcp inspect <file-or-0xaddress> [-n NETWORK] | Show detected standard, functions, events and tool count without writing files |
abi-to-mcp validate <abi.json> [--strict] | Check ABI structure; --strict also flags duplicates and unnamed params |
abi-to-mcp generate <file-or-0xaddress> [options] | Write the MCP server project |
abi-to-mcp serve [DIR] [-t stdio|http] [-p PORT] | Run a generated server (default dir ., default port 8080) |
generate options: -o/--output DIR (default ./mcp-server), -n/--network (default mainnet), -a/--address 0x... (required when the source is a file), --name, --read-only (no write tools), --events/--no-events, --simulate/--no-simulate (default simulate), -f/--force (overwrite output dir).
ETHERSCAN_API_KEY (mainnet, sepolia, goerli, and the default), POLYGONSCAN_API_KEY, ARBISCAN_API_KEY, OPTIMISM_API_KEY, BASESCAN_API_KEY, BSCSCAN_API_KEY, SNOWTRACE_API_KEY.RPC_URL (defaults to the network's public RPC), CONTRACT_ADDRESS, and optionally PRIVATE_KEY for write calls.PRIVATE_KEY is a secret. Have the user export it in their own shell. Never write it into a file, a command line or this conversation. Prefer --read-only unless the user explicitly needs writes.export ETHERSCAN_API_KEY=... # user's own key
abi-to-mcp inspect 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
abi-to-mcp generate 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 -o ./usdc-mcp --read-only
cd usdc-mcp
pip install -r requirements.txt
python server.py # stdio MCP server
Local ABI instead of a lookup: abi-to-mcp generate ./token.json -a 0x... -o ./token-mcp.
To use the result in Claude Code, register it with claude mcp add usdc -- python /abs/path/usdc-mcp/server.py. Copy .env.example to .env in the generated directory if it exists.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nirholas/ucai --plugin ucaiOther plugins' skills for the same job