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
POST https://currencyconverter.usefulweb.site/api/v1/calculate– run Currency ConverterGET https://currencyconverter.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
amount (required) | number | 100 | Amount |
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". |
date | date | — | 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)
- Streamable HTTP endpoint:
https://currencyconverter.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
currency_converter - Local stdio connector:
node src/mcp-stdio.ts --tool=currency-converter
{
"mcpServers": {
"currency-converter": { "type": "http", "url": "https://currencyconverter.usefulweb.site/mcp" }
}
}