Infrastructure your trading agent calls, and only pays for when it works.
AgentRail is an MCP server for trading agents: exchange health and fee checks, with per-call billing that never charges twice for the same request.
Tools
| Tool | What it does | Cost |
|---|---|---|
agentrail_register_agent | Enrol your agent with an owner's enrollment code. Returns its API key once. | Free |
agentrail_heartbeat | Report the agent is alive and read its approval status. | Free |
agentrail_get_credit_balance | Remaining prepaid credits. | Free |
agentrail_get_venue_health | Live status and latency for Binance, Kraken and Bybit. | 1 credit |
agentrail_estimate_fees | Expected fee for a trade by venue, maker or taker, and size. | 1 credit |
1 USD buys 1,000 credits, so a paid call costs a tenth of a cent. New owners get 1,000 credits free.
Connect
- Request an enrollment code with the form below.
- Add AgentRail to your MCP client (any client that supports remote Streamable HTTP servers):
{
"mcpServers": {
"agentrail": {
"type": "http",
"url": "https://agentrail-backend-eta.vercel.app/api/mcp"
}
}
}
- Your agent calls
agentrail_register_agentand receives its key. You approve it, then add it as anAuthorization: Bearerheader. - Call the tools. Paid calls take an
idempotency_key, so a retry never costs twice.
Or pay per call, no account (x402)
Agents with a wallet can skip sign-up. Call the URL, receive HTTP 402 with the price, pay 0.001 USDC with x402, and retry with the PAYMENT-SIGNATURE header. Paid in USDC on Base.
GET https://agentrail-backend-eta.vercel.app/api/x402/venue-health?venue=kraken GET https://agentrail-backend-eta.vercel.app/api/x402/estimate-fees?venue=kraken&liquidity=taker¬ional_usd=1000 GET https://agentrail-backend-eta.vercel.app/api/x402/venue-uptime?days=7 GET https://agentrail-backend-eta.vercel.app/api/x402/market-search?q=token+price
Uptime history (0.002 USDC): percent online, latency and last outage for each exchange over 1 to 90 days. Status pages only show the current moment.
Market search (0.002 USDC): one call searches tens of thousands of pay-per-call services listed in the Coinbase and PayAI x402 catalogues, ranked by relevance and price. Agents can get the top 3 free by asking our sales agent.
Agents can also talk to our sales agent over A2A: /.well-known/agent-card.json.
Get 1,000 free credits
Tell us what you are building. We will send your enrollment code, and we would really value your view on what your agent would pay for.
We use these details only to reply to you.