API & MCP
Everything a person can do on MEV Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://mevexplorer.usefulweb.site/api/v1/calculate– run MEV ExplorerGET https://mevexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
MEV Explorer
Fetches one recent block and all of its receipts from a public node and looks for maximal-extractable-value patterns: sandwich attacks on Uniswap V2/V3-style pools (an actor trading right before and after a victim in the same pool), cyclic arbitrage (a transaction whose sender or contract ends with more of a token and less of none), Aave V3 liquidations, the block builder (fee recipient and extraData tag, plus the builder→proposer payment) and a priority-fee ranking.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (lookup, pasted) | "lookup" | What do you have? |
chain | select (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc) | "ethereum" | Chain |
block | text | "latest" | Block number. Public nodes only serve recent blocks (roughly the last day); older blocks need your own node (RPC_URL_<CHAIN>). |
blockJson | textarea | — | Block JSON (offline). {"block": {number, miner, extraData, baseFeePerGas, timestamp}, "transactions": [...], "receipts": [...]} as returned by eth_getBlockByNumber(…, true) and eth_getBlockReceipts. |
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://mevexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
mev_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=mev-explorer
{
"mcpServers": {
"mev-explorer": { "type": "http", "url": "https://mevexplorer.usefulweb.site/mcp" }
}
}