MEV History MCP x402

EVM MEV history at three resolutions: per-tx sandwich classification, per-wallet recent exposure score, and per-pool recent sandwich density. Block-position heuristic + DEX-router routing + gas-priority pattern. Multichain (ethereum / base / arbitrum / optimism / polygon). Pay-per-call USDC on Base — no signup, no API key, no Etherscan key.

Endpoints

PathPriceWhat it does
POST /v1/wallet/mev_exposure$0.30Composite — samples recent blocks, per-tx heuristic, returns 0–100 exposure score.
POST /v1/tx/sandwich_check$0.05Was this tx sandwiched? Returns confidence (none/weak/medium/strong/confirmed) + attacker addr.
POST /v1/pool/recent_mev_density$0.10Pool's recent sandwich density (0.0–1.0) + sample sandwiches.

Discovery surfaces

Quick example

curl -X POST https://mev-history-mcp.mtree.workers.dev/v1/tx/sandwich_check \
  -H "Content-Type: application/json" \
  -d '{"tx_hash":"0x1d25d24af5d26ce1e09c71d07e6e1702e84030c081a07fd5c815eb40eb270072","chain":"base"}'
# 402 returned; settle X-PAYMENT and retry.

Methodology

Flag tx N as sandwiched iff (a) tx N-1 and N+1 share a from-address that differs from tx N, AND (b) all three target a known DEX router on the same chain. Gas-priority confirmation requires gas_price[N-1] > gas_price[N] ≥ gas_price[N+1]. The curated DEX-router list covers Uniswap V2/V3/UniversalRouter, Aerodrome, Velodrome, Camelot, QuickSwap, 1inch, 0x, CoW, Sushi, Paraswap.

Repo

github.com/sebastiancoombs/mev-history-mcp