API & MCP
Everything a person can do on Inflation Time Machine, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://inflationtimemachine.usefulweb.site/api/v1/calculate– run Inflation Time MachineGET https://inflationtimemachine.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Inflation Time Machine
Convert an amount between years with the consumer price index (2010 = 100) published by the World Bank. Shows the equivalent value, cumulative inflation, average annual inflation and lost purchasing power, with a year-by-year table.
| Field | Type | Default | Description |
|---|---|---|---|
amount (required) | number | 100 | Amount |
currency | text | "EUR" | Currency label. Label only. Use the currency of the chosen country; no conversion is done. |
fromYear (required) | integer | 2000 | From year |
toYear (required) | integer | 2024 | To year |
country | select (US, GB, DE, FR, IT, ES, NL, AT, CH, SE, PL, CA, AU, JP, IN, BR, MX, ZA, TR, CN) | "DE" | Country |
Example request
100 EUR in Germany, 2000 → 2024
curl -X POST https://inflationtimemachine.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"amount":100,"currency":"EUR","fromYear":2000,"toYear":2024,"country":"DE"}'
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://inflationtimemachine.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
inflation_time_machine - Local stdio connector:
node src/mcp-stdio.ts --tool=inflation-time-machine
{
"mcpServers": {
"inflation-time-machine": { "type": "http", "url": "https://inflationtimemachine.usefulweb.site/mcp" }
}
}