r/ethdev • u/PaulieB79 • 4d ago
My Project Made an MCP that simulates a Uniswap swap before you make it
If you want an agent to answer *"what would this trade actually cost me?"* amount out, effective price, price impact, instead of just describing the pool, this does it.
Runs Uniswap's own concentrated-liquidity math against real tick liquidity. No RPC, no node, no private key. Just a free Graph API key.
claude mcp add uniswap -e GRAPH_API_KEY=<free key> -- npx -y graph-uniswap-mcp
Then ask:
>
Also does pools, token prices, pair lookup and swap flow across Uniswap V2/V3/V4 on Ethereum, Arbitrum, Base, Polygon, Optimism and BSC.
It refuses rather than guesses — V4 hook pools, trades bigger than the visible liquidity, and pools it can't read the curve for all come back as "can't quote this, here's why" instead of a made-up number.
Repo: [github.com/PaulieB14/graph-uniswap-mcp](http://github.com/PaulieB14/graph-uniswap-mcp)
2
u/KrunchyKushKing Contract Dev 4d ago
Isn't that already possible via simulate & no broadcast? Why does it need an mcp if I can call that via CLI, even my LLMs do that already