API & MCP
Everything a person can do on Historical FX Chart, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://historicalfxchart.usefulweb.site/api/v1/calculate– run Historical FX ChartGET https://historicalfxchart.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Historical FX Chart
Pick a base currency, one or more quote currencies and a date range (back to 1999). The tool loads the ECB’s daily euro reference rates, builds the cross rates, draws a line chart (indexed to 100 to compare several pairs) and reports start, end, minimum, maximum, average, change and annualised volatility, with a CSV download.
| Field | Type | Default | Description |
|---|---|---|---|
base (required) | text | "EUR" | Base currency. The rate shows how many units of the quote currency one unit of the base buys. |
quotes (required) | text | "USD, GBP" | Quote currencies. Up to 6 ISO codes, comma-separated. |
start | date | — | From. Default: one year before the end date. Earliest 1999-01-04. |
end | date | — | To. Default: today. |
normalise | select (auto, yes, no) | "auto" | Index to 100 at the start |
png | boolean | true | Also create a PNG image |
Example request
EUR/USD and EUR/GBP over 2024 (indexed)
curl -X POST https://historicalfxchart.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"base":"EUR","quotes":"USD, GBP","start":"2024-01-01","end":"2024-12-31"}'
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://historicalfxchart.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
historical_fx_chart - Local stdio connector:
node src/mcp-stdio.ts --tool=historical-fx-chart
{
"mcpServers": {
"historical-fx-chart": { "type": "http", "url": "https://historicalfxchart.usefulweb.site/mcp" }
}
}