Use when an agent must convert money or needs official exchange rates (pricing, invoices, travel budgets, finance reports)

$0.001 per call20 free calls/day via MCP

Use when an agent must convert money or needs official exchange rates (pricing, invoices, travel budgets, finance reports). ECB reference rates for 30+ currencies: latest or any past date, converted amount and inverse rate, or a history between two dates with average, min, max and % change. Under 1 s.

currencyexchange-ratefxconversionfinancepricingecbhistory

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool fx_rate:

{
  "name": "fx_rate",
  "arguments": {
    "from": "USD",
    "to": "EUR,GBP",
    "amount": 250
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/fx-rate \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"from":"USD","to":"EUR,GBP","amount":250}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.001 and retries automatically. Works with any x402 wallet: Base MCP, Coinbase AgentKit, x402-fetch / x402-axios, Cloudflare Agents. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "ISO code, e.g. USD"
    },
    "to": {
      "type": "string",
      "description": "One or more codes, comma-separated"
    },
    "amount": {
      "type": "number"
    },
    "date": {
      "type": "string",
      "description": "YYYY-MM-DD for a past rate"
    },
    "start": {
      "type": "string",
      "description": "History start YYYY-MM-DD"
    },
    "end": {
      "type": "string",
      "description": "History end YYYY-MM-DD (default today)"
    }
  },
  "required": [
    "from",
    "to"
  ]
}

Example output

{
  "from": "USD",
  "amount": 250,
  "date": "2026-12-03",
  "rates": {
    "EUR": 0.9213
  },
  "inverse": {
    "EUR": 1.0854
  },
  "converted": {
    "EUR": 230.33
  }
}

Related tools

Use when an agent needs to jump straight to a site's pricing, contact, careers, docs or login page ($0.002) · Use when an agent needs to know how long a website has existed (Internet Archive history) ($0.002) · Use when an agent researches a US public company ($0.005)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402