Developers
The Currency-Exchange.app API
Live and historical exchange rates, conversion and currency metadata for 150+ currencies, from your own code or an AI agent, one GET request per answer.
- REST + JSON
- x-api-key
- MCP server
- 150+ currencies
https://api.currency-exchange.appQuick start
- Sign up and open your workspace.
- Under API keys, create a key and copy it: it is shown once.
- Send it in the x-api-key header with an amount and two ISO 4217 codes, as below.
curl --get "https://api.currency-exchange.app/currency/convert" \
--data-urlencode "amount=1240.50" \
--data-urlencode "from=USD" \
--data-urlencode "to=EUR" \
-H "x-api-key: $API_KEY"const query = new URLSearchParams({ amount: '1240.50', from: 'USD', to: 'EUR' });
const response = await fetch('https://api.currency-exchange.app/currency/convert?' + query, {
headers: { 'x-api-key': process.env.API_KEY ?? '' },
});
const { convertedAmount, exchangeRate, rateTime } = await response.json();
// store rateTime with the amount, so the conversion can be explained laterFour currency routes
Every route is one GET request with ISO 4217 codes and costs 1 credit per call.
| Route | Credits | Answers |
|---|---|---|
GET /currency/convert | 1 | An amount converted from one currency to another at the live rate, or at a historical rate with date=YYYY-MM-DD, with the rate and its time. |
GET /currency/exchange-rate | 1 | The live or historical rate for a currency pair, with the inverse rate and the rate timestamp. |
GET /currency/list | 1 | The supported currencies, searchable and paginated: code, name, symbol and countries. |
GET /currency/details | 1 | One currency’s metadata: ISO code and number, symbol and native symbol, units, banknotes and coins, decimal digits, countries. |
Existing integrations keep working.
The previous paths (/v1-convert-currency, /v1-get-currency-exchange-rate, /v1-list-currencies, /v1-get-currency-details) answer with the same JSON as before, with the same API keys.
Authentication
- Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace and spends that workspace’s credits.
- Keep keys on your server, never in browser code, analytics events or shared spreadsheets.
- Revoke a key under API keys and it stops working at once.
Errors, credits and limits
- Errors answer
{ "error": "CODE", "message": "…" }with the HTTP status that fits. - Each call spends 1 credit; 402
INSUFFICIENT_CREDITSmeans the workspace has none left (top up on the pricing page, or turn on auto top-up). - Over the rate limit you get 429 with Retry-After in seconds; back off and retry after that time.
MCP server for AI agents
Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.currency-exchange.app/mcp with your API key, and your agent converts amounts and reads rates with the same credits and answers as the REST API.
claude mcp add --transport http currency-exchange-app https://mcp.currency-exchange.app/mcp --header "x-api-key: <your-api-key>"Adds the server to the current project; add --scope user to use it in every project.
{
"mcpServers": {
"currency-exchange-app": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.currency-exchange.app/mcp",
"--header",
"x-api-key:<your-api-key>"
]
}
}
}claude_desktop_config.json: ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows. Restart Claude Desktop after saving.
{
"mcpServers": {
"currency-exchange-app": {
"url": "https://mcp.currency-exchange.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.
{
"servers": {
"currency-exchange-app": {
"type": "http",
"url": "https://mcp.currency-exchange.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.vscode/mcp.json in the workspace; start the server from the MCP view or Copilot Chat in Agent mode.
{
"mcpServers": {
"currency-exchange-app": {
"serverUrl": "https://mcp.currency-exchange.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}~/.codeium/windsurf/mcp_config.json; refresh the MCP servers list after saving.
curl https://mcp.currency-exchange.app/mcp \
-H "x-api-key: <your-api-key>" \
-H "content-type: application/json" \
-H "accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'Every request is a JSON-RPC 2.0 POST; send tools/list, then tools/call with {"name": "currency_convert", "arguments": {"amount": 100, "from": "USD", "to": "EUR"}} the same way.
API reference
Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.