API & MCP
Everything a person can do on Travel Exchange Fee Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://travelexchangefeecalculator.usefulweb.site/api/v1/calculate– run Travel Exchange Fee CalculatorGET https://travelexchangefeecalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Travel Exchange Fee Calculator
Enter what you spend abroad and the terms of your payment options – foreign transaction fee, exchange-rate mark-up, ATM fees, “pay in your currency” (dynamic currency conversion) and exchange-bureau spreads. The calculator converts at the ECB reference rate (or your own rate) and shows the effective rate, total cost and extra cost of each option, cheapest first.
| Field | Type | Default | Description |
|---|---|---|---|
amount (required) | number | 500 | Amount spent abroad. In the local (spending) currency. |
spendCurrency (required) | text | "USD" | Spending currency |
homeCurrency (required) | text | "EUR" | Home (account) currency |
rateSource | select (ecb, manual) | "ecb" | Reference rate |
manualRate | number | — | Manual rate: 1 home-currency unit =. …units of the spending currency (e.g. 1 EUR = 1.10 USD → 1.10). Used with "Enter a rate manually", or as fallback when the ECB is unreachable. |
options | table | [{"name":"Card without foreign transaction fee","method":"card","feePercent":0," | Payment options. Example values – replace them with your own card’s and provider’s terms. EU card issuers must state their conversion mark-up over the ECB rate. |
atmWithdrawals | integer | 1 | Number of ATM withdrawals. The fixed fee of ATM options is charged per withdrawal. |
Example request
500 USD with the example options (manual rate 1 EUR = 1.10 USD)
curl -X POST https://travelexchangefeecalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"amount":500,"spendCurrency":"USD","homeCurrency":"EUR","rateSource":"manual","manualRate":1.1}'
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://travelexchangefeecalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
travel_exchange_fee_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=travel-exchange-fee-calculator
{
"mcpServers": {
"travel-exchange-fee-calculator": { "type": "http", "url": "https://travelexchangefeecalculator.usefulweb.site/mcp" }
}
}