API & MCP
Everything a person can do on Smart Contract Upgrade Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://contractupgradeexplorer.usefulweb.site/api/v1/calculate– run Smart Contract Upgrade ExplorerGET https://contractupgradeexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Smart Contract Upgrade Explorer
Reads a contract straight from the chain and identifies its proxy pattern (EIP-1967 transparent, UUPS, beacon, EIP-1167 clone, Safe proxy, legacy ZeppelinOS, EIP-7702 delegated account), the current implementation, who controls upgrades (single key, Safe multisig with threshold, timelock with delay, ProxyAdmin and its owner), the Upgraded/AdminChanged event history, and whether the code is verified on Sourcify. Paste raw bytecode for an offline scan.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (lookup, bytecode) | "lookup" | What do you have? |
chain | select (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc) | "ethereum" | Chain |
address | text | — | Contract address |
bytecode | textarea | — | Runtime bytecode |
Example request
EIP-1167 minimal proxy clone (offline)
curl -X POST https://contractupgradeexplorer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"bytecode","chain":"ethereum","bytecode":"0x363d3d373d3d3d363d73bebebebebebebebebebebebebebebebebebebebe5af43d82803e903d91602b57fd5bf3"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://contractupgradeexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
contract_upgrade_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=contract-upgrade-explorer
{
"mcpServers": {
"contract-upgrade-explorer": { "type": "http", "url": "https://contractupgradeexplorer.usefulweb.site/mcp" }
}
}