API & MCP
Everything a person can do on Multi-Currency Invoice Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://multicurrencyinvoicecalculator.usefulweb.site/api/v1/calculate– run Multi-Currency Invoice CalculatorGET https://multicurrencyinvoicecalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Multi-Currency Invoice Calculator
Enter invoice lines in different currencies, the invoice currency and a rate date. The calculator converts every line at the ECB euro reference rates of that date (or your own rates), applies VAT per line, shows the VAT summary and totals with either per-line or per-document rounding (and the difference between both), and writes the “converted at the ECB reference rate of …” statement. Download as CSV or an HTML table.
| Field | Type | Default | Description |
|---|---|---|---|
invoiceCurrency (required) | text | "EUR" | Invoice currency |
rateSource | select (ecb, manual) | "ecb" | Exchange rates |
rateDate | date | — | Rate date. E.g. the invoice or supply date. Empty: latest ECB rates. Weekends/holidays use the last publication before. |
manualRates | textarea | — | Manual rates. One per line, as units per 1 EUR (ECB convention). Used with "Enter rates manually". |
lines (required) | table | — | Invoice lines |
rounding | select (line, document) | "line" | Rounding |
Example request
EUR invoice with USD and GBP costs (manual ECB-style rates)
curl -X POST https://multicurrencyinvoicecalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"invoiceCurrency":"EUR","rateSource":"manual","rateDate":"2026-10-16","manualRates":"USD 1.1253\nGBP 0.84385","lines":[{"description":"Consulting (days)","quantity":3,"unitPrice":850,"currency":"EUR","vatRate":19},{"description":"Cloud hosting","quantity":1,"unitPrice":412.37,"currency":"USD","vatRate":19},{"description":"Conference ticket","quantity":2,"unitPrice":299.99,"currency":"GBP","vatRate":7},{"description":"Travel expenses (no VAT)","quantity":1,"unitPrice":123.45,"currency":"USD","vatRate":0}],"rounding":"line"}'
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://multicurrencyinvoicecalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
multi_currency_invoice_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=multi-currency-invoice-calculator
{
"mcpServers": {
"multi-currency-invoice-calculator": { "type": "http", "url": "https://multicurrencyinvoicecalculator.usefulweb.site/mcp" }
}
}