Build
Quote API, SDK and MCP
REST
GET /api/quote?pool=<poolId>&side=buy|sell&amount=<usd>
GET /api/tape the Shadow Tape, last 15 minutes
GET /api/pools watched pools, live price and referenceTypeScript SDK
The SDK is one file with the fee function and the API calls. Download it from /sdk/toxicflow.ts.
import { quoteFee, tape } from "./toxicflow";
const q = await quoteFee({ pool: "0x3bb3…f1", side: "buy", amount: 2000 });
console.log(q.bot.fee, q.you.fee);MCP
An MCP server at /mcp (JSON-RPC over HTTP) exposes quote_fee and pool_score to any agent.
{ "mcpServers": { "toxicflow": { "url": "https://<site>/mcp" } } }