Free exchange-rate API

Exchange rates, one GET away.

Current and historical European Central Bank reference rates, served as a small, dependable JSON API — and as an MCP server for AI clients.

Browse endpoints
  • No key, no signup
  • Updated every business day
  • CORS & JSONP
curl "fx.modfin.se/latest?symbols=usd,gbp,sek"
{
  "base": "EUR",
  "date": "2026-08-06",
  "rates": {
    "USD": 1.1542,
    "GBP": 0.8617,
    "SEK": 10.924
  }
}

Four endpoints.

Every path is a plain GET that returns JSON. Dates use ISO 8601 (YYYY-MM-DD); when a date is not an ECB business day, the nearest earlier rate is returned.

GET fx.modfin.se/latest

The newest published rates, base EUR.

GET fx.modfin.se/{date}

Rates for one day, or the nearest earlier business day. Example: fx.modfin.se/2024-01-15

GET fx.modfin.se/{from}/{to}

Every published rate in an inclusive date range, oldest first. Example: fx.modfin.se/2024-01-01/2024-01-05?symbols=usd,sek

GET fx.modfin.se/{from}/{to}/agg

Average, minimum, or maximum rate per currency over a range. Example: fx.modfin.se/2024-01-01/2024-12-31/agg?func=max&symbols=usd,sek

curl "fx.modfin.se/latest" idle
Press “Run” on any endpoint to send a live request from this page.

Shape the response.

Query parameters work across all data endpoints and can be combined. Parameter names and currency codes are case-insensitive.

Parameter Values Effect
base usd, sek, … Rebase every rate to the given currency instead of EUR.
symbols usd,gbp,sek Return only the listed currencies.
func avg, min, max Aggregate function for /agg. Defaults to avg.
callback myFn Wrap the response in a legacy JSONP callback.
fx.modfin.se/latest?base=usd&symbols=eur,sek USD-based rates for EUR and SEK.
fx.modfin.se/2024-01-01/2024-12-31/agg?func=avg&base=sek&symbols=usd Average USD rate in SEK over 2024.

Connect your AI client.

FX it ships a stateless Model Context Protocol server over Streamable HTTP. No API key, no local command, nothing to install.

Server URL

Add this as a remote HTTP MCP server in any compatible client.

fx.modfin.se/mcp
  1. Open your client’s MCP or integrations settings.
  2. Choose Streamable HTTP (also called remote HTTP).
  3. Paste the URL and connect — authentication is not required.
  4. Ask for exchange-rate data; the client picks the right tool.
mcp.json
{
  "mcpServers": {
    "fxit": {
      "type": "http",
      "url": "fx.modfin.se/mcp"
    }
  }
}
Claude Code
claude mcp add --transport http fxit fx.modfin.se/mcp

Tools

All four tools are read-only and accept the same base and symbols filtering as the REST API.

get_latest_ratesThe newest published rates.
get_rates_for_dateOne date, falling back to the nearest earlier business day.
get_rates_in_rangeEvery rate in an inclusive date range.
get_aggregate_ratesAverage, minimum, or maximum over a range.

Try asking

Once connected, plain questions are enough.

“What was the USD to SEK rate on 2024-01-15?”

“Show the maximum GBP and USD rates during June 2025.”

“Chart the EUR/NOK average per month last year.”