Resolve any EVM contract ABI (even unverified, via decompilation), read, simulate, prepare txs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

A real session: an unverified MEV bot that traded seconds earlier (no source, no ABI anywhere) resolved to a full interface in two MCP tool calls.
The REST engine for gulltoppr: the resolution ladder + verb surface
that lets an AI agent go from (chain, address) to a correct, simulated, safe
contract interaction. This is "the engine" of the four faces (REST β MCP β SDK β
Skill); see ../SPEC.md for the full contract and ../IDEATION.md
for the strategy.
TypeScript + viem + Hono. The heimdall decompile rung is delegated over HTTP to gulltoppr (kept out-of-process by design).
Set LIVE_ENGINE_BASE_URL=https://api.gulltoppr.dev with npm run test:live to
smoke a deployed engine instead of the local in-process server. The scheduled live
GitHub Action runs the local path; manual dispatch can set the same deployed URL.
| var | default | notes |
|---|---|---|
PORT | 8787 | |
HEIMDALL_API_URL | http://heimdall-api.flycast | heimdall decompile service (ladder rung 4). Private to the Fly org since 2026-07-27 β point this at your own instance when running outside it, or rung 4 falls back to selector-only via 4byte |
HEIMDALL_CONCURRENCY | 2 | per-process cap on outbound decompile/decode requests; 0 disables |
HEIMDALL_QUEUE_TIMEOUT_MS | 5000 | max time a gulltoppr request can wait for an outbound concurrency slot |
ENS_RPC_URL | https://ethereum-rpc.publicnode.com | mainnet RPC for ENS/Basenames Universal Resolver calls; use a private RPC in production |
ETHERSCAN_API_KEY | (empty) | one multichain v2 key; empty disables rung 1 |
ETHERSCAN_RATE_LIMIT | 4 | per-process fixed-window budget for the shared Etherscan key; 0 disables |
ETHERSCAN_RATE_WINDOW_SEC | 1 | Etherscan budget window length |
SIGNING_BASE_URL | https://abi.ninja | base for prepare_tx hand-off deeplinks |
RATE_LIMIT | 120 | per-IP requests per window (fixed window); 0 disables |
RATE_LIMIT_WINDOW_SEC | 60 | rate-limit window length |
RATE_LIMIT_ALLOW | (empty) | comma-separated IP allowlist (exempt); private 6PN IPs are always exempt |
ANTHROPIC_API_KEY | (empty) | enables the registry's LLM propose-and-verify pass on decompiles; empty disables |
REGISTRY_LLM_MODEL | claude-opus-4-8 | model for propose-and-verify |
| verb | route |
|---|---|
| discovery | GET / Β· root discovery document with REST/MCP links, verbs, utility tools, and the prepare_tx safety gate |
| OpenAPI | GET /openapi.json Β· machine-readable REST contract for coding agents and integrations |
| agent guide | GET /llms.txt Β· compact LLM/coding-agent guide; also published at https://gulltoppr.dev/llms.txt |
resolve_abi | GET /v1/{chain}/{address}/abi?include_abi=&method_q=&method_kind=&method_limit= Β· set include_abi=false for compact manifest/provenance without raw ABI |
read_contract | POST /v1/{chain}/{address}/read Β· body {function, args} |
encode_call | POST /v1/{chain}/{address}/encode Β· body {function, args, value?} |
simulate | POST /v1/{chain}/simulate Β· body {from,to,data,value?} or {from,address,function,args,value?}; never mix both forms |
prepare_tx | POST /v1/{chain}/{address}/prepare Β· body {function, args, from, value?} |
decode_tx | GET /v1/{chain}/tx/{hash} |
resolve_name | GET /v1/{chain}/name/{name} Β· GET /v1/{chain}/name/by-address/{address} |
| chain catalog | GET /v1/chains?q=&testnets=&has_default_rpc= Β· viem-backed aliases with testnet/has_default_rpc flags for UI clients |
| registry lookup | GET /v1/lookup/{selector} Β· 4-byte (function/error) or 32-byte (event topic0), chain-independent |
| registry stats | GET /v1/registry/stats |
| registry export | GET /v1/registry/export Β· CC0 NDJSON selector commons (X-License: CC0-1.0) |
| runtime metrics | GET /v1/metrics Β· in-process rung/RPC attempts, latency, misses, and failure rates |
GET routes set explicit Cache-Control: verified ABI responses cache longest,
proxy ABI responses are short-lived, transaction decodes are immutable, the OpenAPI
contract is cacheable, and operational endpoints such as /health and
/v1/metrics are no-store. Rate-limited routes expose RateLimit-Limit,
RateLimit-Remaining, RateLimit-Reset, and Retry-After on 429 responses. ABI
resolves also return X-Source, X-Confidence, X-Cache, X-Elapsed-Ms, and
X-ABI-Included.
The engine seeds an open selectorβsignature registry as a byproduct of resolution:
selector β signature pairs for functions, events (full 32-byte topic0,
collision-free), and errors. Proof grade: verified-source.bytecode-match rung without re-running the ladder. Verified claims are
capped to partial for clones (this address's source was never verified), and
provenance.bytecode_match points at the original chain/address/source/confidence
that supplied the reused ABI.Unresolved_<selector> names replaced from proven
registry entries, and (when ANTHROPIC_API_KEY is set) a fire-and-forget
propose-and-verify pass asks Claude for candidate signatures and accepts
only those where keccak256(sig)[:4] reproduces the selector: proof grade
keccak-proven (signature proven; semantics still inferred).Only the engine's own pipeline writes to the registry; no open submissions (that's how 4byte got collision-poisoned).
The accumulated data is published as a CC0 dataset:
evm-abi-commons
(regenerate any time from GET /v1/registry/export; the response is NDJSON and
includes X-License: CC0-1.0 plus a license Link header). Lookup/export entries
include proof grade and, for harvested verified-source entries when known, the
source chain and address. SDK users can call lookupSelector,
registryStats, and exportRegistry directly.
{chain} is any alias from GET /v1/chains (backed by viem/chains) or a
numeric id. Chain entries include testnet and has_default_rpc so agents can
decide when to ask for rpc_url; q matches ids, names, aliases, native symbols,
and multi-word searches such as bnb chain. Pass ?rpc_url= to override the RPC
(required for chains with no default, e.g. local/31337; this is how any EVM
chain works before it has a built-in alias).
For agent contexts, prefer include_abi=false on resolve_abi unless you need the
raw JSON ABI. The compact response preserves interface, provenance, proxy,
token, and abi_for, and marks abi_omitted: true. For large contracts, add
method_q, method_kind=read|write|all, and method_limit to return only the
manifest methods relevant to the user's intent.
prepare_tx.safety.signing_recommended gates the hand-off. If simulation fails,
risk_level is blocked, deeplink is empty, and wallet_request is omitted.
When signing is recommended, wallet_request is an EIP-1193-shaped
eth_sendTransaction payload with hex JSON-RPC quantities for wallet/explorer/app
integrations. Decompiled or selector-only writes are high risk and require
explicit user confirmation of selector + intent. Positive token/NFT spender
approvals are medium risk with spending_approval. Token/NFT outflows from the
transfer source, whether trace-derived or inferred from a standard token/NFT
transfer, are medium risk with asset_outflow. Clients should show both before
hand-off.
Integration recipes for wallets, block explorers, coding agents, and MCP clients
are published at docs/integrations.md.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gulltoppr)<a href="https://allmcps.com/mcp/gulltoppr"><img src="https://allmcps.com/api/badge/gulltoppr?style=directory" alt="Gulltoppr on AllMCPs" /></a>