{
  "markdown": "# Cross-Chain Bridge Route API\n\n[![MCP Server](https://img.shields.io/badge/MCP-server-blue)](https://bridge-routes.api.klymax402.com/mcp)\n[![x402](https://img.shields.io/badge/payments-x402-6E56CF)](https://x402.org)\n[![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n\nBest cross-chain bridge routes via LI.FI -- 60+ chains, 18+ bridges, fees and time compared. Pay-per-call via [x402](https://x402.org) (USDC on Base L2) -- no API key, no signup, no rate-limit wall.\n\nPart of the [klymax402](https://klymax402.com) marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.\n\n## Quickstart -- MCP\n\nAdd to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):\n\n```json\n{\n  \"mcpServers\": {\n    \"bridge-routes\": {\n      \"url\": \"https://bridge-routes.api.klymax402.com/mcp\"\n    }\n  }\n}\n```\n\n## Quickstart -- HTTP (x402)\n\n```bash\ncurl \"https://bridge-routes.api.klymax402.com/api/route?fromChain=...&toChain=...&token=...&amount=...\"\n# -> 402 Payment Required, with an x402 payment challenge in the response body\n```\n\nAny x402-aware client ([`@x402/fetch`](https://www.npmjs.com/package/@x402/fetch), [`x402-agent-tools`](https://www.npmjs.com/package/x402-agent-tools), ATXP) handles the 402 -> sign -> retry cycle automatically.\n\n## Tools\n\n| Tool | Method | Path | Price | Description |\n|---|---|---|---|---|\n| `bridge_find_best_route` | GET | `/api/route` | $0.008 | Find the best cross-chain bridge route |\n| `bridge_find_best_route` | POST | `/api/route` | $0.008 | Find the best cross-chain bridge route (POST variant) |\n\n### `bridge_find_best_route`\n\nUse this when you need to bridge tokens between different blockchains. Returns ranked bridge routes with fees and timing in JSON.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n|---|---|---|---|\n| `fromChain` | string | yes | Source chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon, 56=BSC, 43114=Avalanche) |\n| `toChain` | string | yes | Destination chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon, 56=BSC, 43114=Avalanche) |\n| `token` | string | yes | Token symbol to bridge (e.g. USDC, USDT, ETH, WETH) |\n| `amount` | string | yes | Amount in smallest unit (e.g. 1000000 for 1 USDC with 6 decimals, 1000000000000000000 for 1 ETH) |\n| `toToken` | string | no | Destination token symbol if different from source (optional, defaults to same as token) |\n\n**Returns**\n\n- `routes` -- array of bridge options ranked by best value\n- `bridgeProvider` -- which bridge protocol (Stargate, Across, Hop, Connext, etc.)\n- `estimatedTime` -- expected bridge completion time in seconds\n- `fee` -- total bridging fee in USD\n- `amountReceived` -- expected output amount on destination chain\n- `steps` -- detailed step-by-step route (approve, bridge, swap if needed)\n\nExample response:\n\n```json\n{\"routes\":[{\"bridgeProvider\":\"Stargate\",\"estimatedTime\":60,\"fee\":0.85,\"amountReceived\":\"999.15\",\"steps\":[\"approve USDC\",\"bridge via Stargate\"]}],\"fromChain\":\"Ethereum\",\"toChain\":\"Base\",\"token\":\"USDC\"}\n```\n\n**When to use**: moving assets cross-chain to find the cheapest and fastest bridge. Essential for multi-chain portfolio management.\n\n**Not for**: gas prices (use `gas_get_current_price`).\n\n### `bridge_find_best_route`\n\nUse this when you need to bridge tokens between different blockchains. Returns ranked bridge routes with fees and timing in JSON. POST variant of bridge_find_best_route -- same params passed as JSON body instead of query string.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n|---|---|---|---|\n| `fromChain` | string | yes | Source chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon, 56=BSC, 43114=Avalanche) |\n| `toChain` | string | yes | Destination chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon, 56=BSC, 43114=Avalanche) |\n| `token` | string | yes | Token symbol to bridge (e.g. USDC, USDT, ETH, WETH) |\n| `amount` | string | yes | Amount in smallest unit (e.g. 1000000 for 1 USDC with 6 decimals, 1000000000000000000 for 1 ETH) |\n| `toToken` | string | no | Destination token symbol if different from source (optional, defaults to same as token) |\n\n**Returns**\n\n- `routes` -- array of bridge options ranked by best value\n- `bridgeProvider` -- which bridge protocol (Stargate, Across, Hop, Connext, etc.)\n- `estimatedTime` -- expected bridge completion time in seconds\n- `fee` -- total bridging fee in USD\n- `amountReceived` -- expected output amount on destination chain\n- `steps` -- detailed step-by-step route (approve, bridge, swap if needed)\n\nExample response:\n\n```json\n{\"routes\":[{\"bridgeProvider\":\"Stargate\",\"estimatedTime\":60,\"fee\":0.85,\"amountReceived\":\"999.15\",\"steps\":[\"approve USDC\",\"bridge via Stargate\"]}],\"fromChain\":\"Ethereum\",\"toChain\":\"Base\",\"token\":\"USDC\"}\n```\n\n**When to use**: moving assets cross-chain to find the cheapest and fastest bridge. Essential for multi-chain portfolio management.\n\n**Not for**: gas prices (use `gas_get_current_price`).\n\n## Example agent prompts\n\n- \"Bridge tokens between different blockchains\"\n- \"Bridge tokens between different blockchains\"\n\n## Payment\n\n- Protocol: [x402](https://x402.org) -- HTTP-native pay-per-call, no signup, no API key\n- Network: Base L2 (`eip155:8453`)\n- Asset: USDC\n- Facilitator: Coinbase CDP (primary), PayAI (fallback)\n- Also reachable via [ATXP](https://atxp.ai) (OAuth-wrapped x402, RFC 9728 protected-resource metadata)\n\n## Part of klymax402\n\n100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.\n\n- Catalog: https://klymax402.com/llms.txt\n- Full API reference: https://klymax402.com/llms-full.txt\n- Live stats: https://klymax402.com/stats\n\n## License\n\nMIT\n",
  "bytes": 5711,
  "sha": "21a698b92fa61cb828245a04f2d640b008983f0ff7d4096c00e0a10bce01d6f6",
  "repo_slug": "br0ski777/bridge-routes-x402",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_br0ski777_bridge_routes_f89236af/readme"
}