Tollbooth Swap API
xyz.tollboothswap.apiPublished by api.tollboothswap.xyzOfficial publisherv1.0.3Updated Oct 24, 2026
Token swaps and honeypot/rug checks for AI agents on 8 chains, paid per-call in USDC via x402.
Overview
Lets an assistant resolve tokens, get swap quotes, screen tokens for honeypots and build unsigned swaps on 8 chains, with paid calls in USDC via x402.
- What you can do
- Resolve ticker symbols to contract addresses ranked by DEX liquidity, and fetch fee-inclusive indicative swap quotes
- Screen tokens for honeypot, rug-pull, freeze-authority and sell-tax risks with a verdict and findings
- Build unsigned, ready-to-sign swap transactions with an HMAC-signed receipt, optionally screening both tokens first
- Verify a past build receipt by id and read the service manifest of chains, fees and pricing
- When to use it
- Useful when an agent needs to trade tokens on Solana, Base, Ethereum, Arbitrum, Polygon, Optimism, BSC or Avalanche and wants a safety check before swapping. Quotes and symbol lookup are free, so it can be tried without payment.
- Requirements
- Runs as a remote endpoint or locally via npx tollboothswap-mcp (Node.js). No account or API key is needed; the optional TOLLBOOTH_PAYER_KEY environment variable holds an EVM private key with USDC on Base to pay tolls automatically. TOLLBOOTH_URL overrides the API base URL. Network access to the Tollbooth API is required.
Installation
In SourceWeft
- Open Tollbooth Swap API in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/xyz.tollboothswap.api%2Ftollbooth/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"tollbooth-swap-api": {
"type": "http",
"url": "https://api.tollboothswap.xyz/mcp"
}
}
}README
tollboothswap-mcp — Token Swaps & Honeypot Checks for AI Agents (MCP Server)
MCP server for Tollbooth: non-custodial token swap execution and token safety screening on 8 chains — Solana, Base, Ethereum, Arbitrum, Polygon, Optimism, BSC, Avalanche. Quotes and symbol resolution are free; swap builds (~$0.005) and safety checks ($0.01) are paid per-call in USDC via the x402 protocol — no API keys, no accounts, no subscriptions.
Quick start
Claude Desktop / Cursor / any MCP client
TOLLBOOTH_PAYER_KEY is optional: without it the free tools
(resolve_token, get_quote, get_service_info, get_receipt) work fully,
and paid tools return x402 payment instructions instead of results. With it,
tolls are paid automatically and gaslessly (EIP-3009 — the key never spends
gas, only USDC).
Tools
Trust model
Tollbooth is non-custodial: it builds transactions but never holds keys or funds. Your agent signs and submits everything with its own wallet. Every paid build returns a signed receipt for audit trails.
Links
- Full tutorial: https://api.tollboothswap.xyz/guides/agent-swaps.md
- Agent usage guide: https://api.tollboothswap.xyz/skill.md
- Runnable HTTP examples: https://github.com/soundsparkaudiolab/tollbooth-examples
License
MIT
Source: README.md at commit 79b1363
Tools
0Version history
1- v1.0.3LatestSep 16, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listedRequired15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts