Tollbooth MCP Server
Enables token swaps on Ethereum using 0x aggregation, including token resolution, swap quotes, honeypot/rug-pull checks, and building unsigned transactions paid via x402 micropayments.
Enables token swaps on Optimism using 0x aggregation, including token resolution, swap quotes, honeypot/rug-pull checks, and building unsigned transactions paid via x402 micropayments.
Enables token swaps on Polygon using 0x aggregation, including token resolution, swap quotes, honeypot/rug-pull checks, and building unsigned transactions paid via x402 micropayments.
Enables token swaps on Solana using Jupiter aggregation, including token resolution, swap quotes, honeypot/rug-pull checks, and building unsigned transactions paid via x402 micropayments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Tollbooth MCP ServerCheck if PEPE on Base is a honeypot."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Tollbooth Examples — AI Agent Token Swaps with x402 Micropayments
Working, copy-paste examples for letting an autonomous AI agent swap tokens and screen tokens for honeypots/rug pulls using Tollbooth and the x402 payment protocol. No API keys, no accounts, no custody: the agent pays ~half a cent in USDC per call and signs its own transactions.
Supported chains: Solana, Base, Ethereum, Arbitrum, Polygon, Optimism, BSC, Avalanche (Jupiter aggregation on Solana, 0x on EVM chains).
How it works
GET /v1/tokens/:chain/:symbol— resolve a ticker likePEPEto contract addresses, ranked by DEX liquidity (free)GET /v1/quote— fee-inclusive swap quote (free)GET /v1/check/:chain/:token— honeypot / rug-pull safety check (x402, $0.01)POST /v1/swap/build— unsigned, ready-to-sign swap transaction (x402, ~$0.005)Your agent signs and submits with its own wallet. Tollbooth never touches keys or funds.
Tolls are payable in USDC on Base (gasless via EIP-3009) or Solana
mainnet (gas sponsored by the facilitator — the payer wallet needs zero
SOL). The @x402/fetch client handles the whole 402 payment loop
automatically.
Related MCP server: Tilde x402 MCP Server
Run the examples
npm install --legacy-peer-deps
# free endpoints, no wallet needed
npx tsx examples/01-resolve-and-quote.ts
# paid endpoints: fund a wallet with a little USDC on Base first
PAYER_KEY=0x... npx tsx examples/02-safety-check.ts
PAYER_KEY=0x... TAKER=<your wallet> npx tsx examples/03-build-swap.ts
# pay tolls from a Solana wallet instead (USDC on Solana mainnet, no SOL needed)
SOLANA_PAYER_KEYPAIR=/path/to/keypair.json npx tsx examples/04-solana-payer.tsUse from MCP (Claude, Cursor, any MCP client)
Tollbooth also ships an MCP server exposing resolve_token, get_quote,
check_token, build_swap and get_receipt as tools. Example config in
mcp.json.
Docs
Agent usage guide: https://api.tollboothswap.xyz/skill.md
Full tutorial: https://api.tollboothswap.xyz/guides/agent-swaps.md
Service manifest: https://api.tollboothswap.xyz/.well-known/x402-service
x402 Bazaar (service discovery for agents): https://docs.cdp.coinbase.com/x402/bazaar
Keywords
AI agent token swap, x402 payment protocol example, autonomous agent DeFi, Solana swap API for agents, honeypot checker API, rug pull detection API, non-custodial swap transaction builder, USDC micropayments, HTTP 402, machine-to-machine payments, Jupiter aggregator API, 0x swap API, MCP DeFi tools.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseAqualityBmaintenancePre-trade DeFi intelligence for AI agents. 20 paid x402 endpoints, USDC on Base.Last updated23421MIT- Alicense-qualityDmaintenanceEnables AI agents to discover and pay for x402-enabled services using natural language, with multi-chain support for Solana and EVM payments.Last updated81MIT
- Flicense-qualityDmaintenancePay-per-use AI security and research tools for autonomous agents on Base, enabling honeypot detection, risk assessment, wallet analysis, and yield optimization via the x402 protocol.Last updated
- FlicenseAqualityCmaintenancePay-per-call tools for AI agents including trust checks, due diligence, market data, and human-verified approvals, settled in USDC on Base via the x402 protocol.Last updated16
Related MCP Connectors
Token swaps and honeypot/rug checks for AI agents on 8 chains, paid per-call in USDC via x402.
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Pay-per-call x402 gateway: agent tools, OpenAI-compatible LLM, market data, RPC, security audits.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/soundsparkaudiolab/tollbooth-examples'
If you have feedback or need assistance with the MCP directory API, please join our Discord server