Wallet CEX Flows MCP x402

EVM wallet ↔ CEX flow analysis at three resolutions: per-wallet composite flow scan across up to 5 chains, per-address CEX attribution lookup, and per-CEX recent top depositor aggregation. Curated CEX address registry (Binance / Coinbase / Kraken / OKX / Crypto.com / Bitfinex / Bittrex / Gate.io) matched against ERC-20 Transfer log scans. Pay-per-call USDC on Base — no signup, no API key.

Endpoints

PathPriceWhat it does
POST /v1/wallet/cex_flows$0.30Composite multichain CEX flow scan — per-chain per-CEX deposit/withdrawal counts + USDC/USDT/ETH atomic totals + net direction.
POST /v1/wallet/cex_attribution$0.05Is this address a known CEX? Returns label + exchange family + role.
POST /v1/cex/recent_inflows$0.10Top 10 depositor addresses for a CEX over recent block window, optionally per-token.

Discovery surfaces

Quick example

curl -X POST https://wallet-cex-flows-mcp.mtree.workers.dev/v1/wallet/cex_attribution \
  -H "Content-Type: application/json" \
  -d '{"address":"0x28c6c06298d514db089934071355e5743bf21d60","chain":"ethereum"}'
# 402 returned; settle X-PAYMENT and retry.

Methodology

For each chain + address, run two eth_getLogs calls — one with topics=[Transfer, wallet_padded, null] (outbound) and one with topics=[Transfer, null, wallet_padded] (inbound). Match the counterparty topic against a curated CEX address registry. Aggregate USDC/USDT/ETH atomic totals each direction per CEX label. Net direction inferred from deposit/withdrawal ratio + stablecoin net flow.

Repo

github.com/sebastiancoombs/wallet-cex-flows-mcp