Tollbooth Swap API

v1.0.3
xyz.tollboothswap.api/tollbooth Checked 2 days ago Published 4 months ago

Token swaps and honeypot/rug checks for AI agents on 8 chains, paid per-call in USDC via x402.

Values you need

VariableWhat it is
TOLLBOOTH_PAYER_KEYoptional secret Optional 0x-prefixed EVM private key holding USDC on Base; pays x402 tolls automatically and gaslessly. Free tools work without it.
TOLLBOOTH_URLoptional Tollbooth API base URL (default https://api.tollboothswap.xyz)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add tollbooth -- npx -y tollboothswap-mcp@1.0.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "tollbooth": {
      "args": [
        "-y",
        "tollboothswap-mcp@1.0.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tollbooth": {
      "args": [
        "-y",
        "tollboothswap-mcp@1.0.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "tollbooth": {
      "args": [
        "-y",
        "tollboothswap-mcp@1.0.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tollbooth]
command = "npx"
args = ["-y", "tollboothswap-mcp@1.0.3"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http tollbooth https://api.tollboothswap.xyz/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "tollbooth": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.tollboothswap.xyz/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tollbooth": {
      "url": "https://api.tollboothswap.xyz/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "tollbooth": {
      "type": "http",
      "url": "https://api.tollboothswap.xyz/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tollbooth]
command = "npx"
args = ["-y", "mcp-remote", "https://api.tollboothswap.xyz/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_service_info, resolve_token, get_quote, build_swap, check_token, get_receipt.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json