MCP server: token swaps and honeypot checks for AI agents on 8 chains, paid per-call in USDC via x402
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add tollbooth-swap-api --env TOLLBOOTH_PAYER_KEY='<TOLLBOOTH_PAYER_KEY>' -- npx -y tollboothswap-mcp~/.codex/config.toml
[mcp_servers.tollbooth-swap-api]
command = "npx"
args = ["-y", "tollboothswap-mcp"]
env = { TOLLBOOTH_PAYER_KEY = "<TOLLBOOTH_PAYER_KEY>" }
# codex mcp add tollbooth-swap-api --env TOLLBOOTH_PAYER_KEY='<TOLLBOOTH_PAYER_KEY>' -- npx -y tollboothswap-mcp~/.cursor/mcp.json
{
"mcpServers": {
"tollbooth-swap-api": {
"command": "npx",
"args": [
"-y",
"tollboothswap-mcp"
],
"env": {
"TOLLBOOTH_PAYER_KEY": "<TOLLBOOTH_PAYER_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tollbooth-swap-api": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tollboothswap-mcp"
],
"env": {
"TOLLBOOTH_PAYER_KEY": "<TOLLBOOTH_PAYER_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tollbooth-swap-api": {
"command": "npx",
"args": [
"-y",
"tollboothswap-mcp"
],
"env": {
"TOLLBOOTH_PAYER_KEY": "<TOLLBOOTH_PAYER_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tollbooth-swap-api": {
"command": "npx",
"args": [
"-y",
"tollboothswap-mcp"
],
"env": {
"TOLLBOOTH_PAYER_KEY": "<TOLLBOOTH_PAYER_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tollbooth-swap-api": {
"command": "npx",
"args": [
"-y",
"tollboothswap-mcp"
],
"env": {
"TOLLBOOTH_PAYER_KEY": "<TOLLBOOTH_PAYER_KEY>"
}
}
}
}远程托管
claude mcp add --transport http tollbooth-swap-api https://api.tollboothswap.xyz/mcp~/.codex/config.toml
[mcp_servers.tollbooth-swap-api]
url = "https://api.tollboothswap.xyz/mcp"
# codex mcp add tollbooth-swap-api --url https://api.tollboothswap.xyz/mcp~/.cursor/mcp.json
{
"mcpServers": {
"tollbooth-swap-api": {
"url": "https://api.tollboothswap.xyz/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"tollbooth-swap-api": {
"type": "http",
"url": "https://api.tollboothswap.xyz/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tollbooth-swap-api": {
"httpUrl": "https://api.tollboothswap.xyz/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"tollbooth-swap-api": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.tollboothswap.xyz/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"tollbooth-swap-api": {
"url": "https://api.tollboothswap.xyz/mcp"
}
}
}需要的环境变量
TOLLBOOTH_PAYER_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。