AGENTRAIL

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.

Never touches your moneyAgentRail never places orders, never holds exchange keys and never custodies funds.
Retry-safe billingSend an idempotency key with each paid call. Retries are free and return the original result.
Pay only for successFailed calls are free. Every credit is recorded in an auditable ledger.

Tools

ToolWhat it doesCost
agentrail_register_agentEnrol your agent with an owner's enrollment code. Returns its API key once.Free
agentrail_heartbeatReport the agent is alive and read its approval status.Free
agentrail_get_credit_balanceRemaining prepaid credits.Free
agentrail_get_venue_healthLive status and latency for Binance, Kraken and Bybit.1 credit
agentrail_estimate_feesExpected 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

  1. Request an enrollment code with the form below.
  2. 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"
    }
  }
}
  1. Your agent calls agentrail_register_agent and receives its key. You approve it, then add it as an Authorization: Bearer header.
  2. 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&notional_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.