Swap Guard
An MCP tool and API that an AI agent calls before it signs a Solana swap. It takes the Jupiter quote, values both sides at CoinGecko onchain market prices, reads the output token's mint on Solana, and answers allow, warn or block, with the number behind every reason.
Use it from an agent
MCP (Claude Desktop, Claude Code, Cursor and others), from a clone of the repository:
{ "mcpServers": { "swap-guard": { "command": "python", "args": ["-m", "swapguard.mcp_server"],
"env": { "COINGECKO_PRO_API_KEY": "your key" } } } }
Or plain HTTP: /api/check?in=…&out=…&amount=1. If the check itself fails, the answer is block: an agent should never sign a swap it could not check. Source: github.com/nurettebayosa/swap-guard. Not financial advice.