API & MCP

Everything a person can do on Currency Converter, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Currency Converter

Converts an amount between the 30 currencies of the European Central Bank’s daily euro foreign exchange reference rates – into several target currencies at once, at the latest rates or those of a past date. Cross rates are calculated via the euro; every result shows the rate, the inverse rate, the reference date and the source.

Inputs of Currency Converter
FieldTypeDefaultDescription
amount (required)number100Amount
from (required)text"EUR"From currency. ISO code, e.g. EUR, USD, GBP, CHF, JPY.
to (required)text"USD, GBP, CHF, JPY"To currencies. One or more ISO codes, comma-separated, or "all".
datedate—Rate date. Optional: use the reference rates of this date (the last publication on or before it). Empty: latest rates.

Example request

100 EUR into USD, GBP, CHF and JPY (latest)

curl -X POST https://currencyconverter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"amount":100,"from":"EUR","to":"USD, GBP, CHF, JPY"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "currency-converter": { "type": "http", "url": "https://currencyconverter.usefulweb.site/mcp" }
  }
}