@nusantara-ventures/exchangerate-mcp
v0.2.2
Published
Stdio bridge for the exchangerate.dev Model Context Protocol server. Drops Claude Desktop, Cursor, or any MCP client into live FX rates in 30 seconds.
Maintainers
Readme
@nusantara-ventures/exchangerate-mcp
Stdio bridge for exchangerate.dev — indicative, session-aware developer-grade FX reference rates for AI agents. Live exchange rates, currency conversion, and historical FX data for Claude, Cursor, and any MCP (Model Context Protocol) client. Indicative rates (aggregated market data + public reference rates), not for settlement or trading.
Thin proxy: the bridge holds no tool definitions or schemas. Every tool is served live from the
api.exchangerate.dev HTTP MCP endpoint, so descriptions and schemas are always up to date.
Prefer a remote connection? The server also runs directly at https://api.exchangerate.dev/v1/mcp/
(streamable HTTP) and is listed in the official MCP registry
as dev.exchangerate/mcp — no install needed:
claude mcp add --transport http exchangerate-dev https://api.exchangerate.dev/v1/mcp/Quick start
Requires Node.js 20 or newer.
{
"mcpServers": {
"exchangerate-dev": {
"command": "npx",
"args": ["-y", "@nusantara-ventures/exchangerate-mcp"]
}
}
}An API key is required. Get one at https://exchangerate.dev/pricing — the Free tier includes MCP access. To run without a key on the shared anonymous free-tier pool, also set ALLOW_ANONYMOUS=true:
{
"mcpServers": {
"exchangerate-dev": {
"command": "npx",
"args": ["-y", "@nusantara-ventures/exchangerate-mcp"],
"env": { "EXCHANGERATE_API_KEY": "your-key-here" }
}
}
}Tools
| Tool | What it does |
|---|---|
| list_currencies | supported currencies + type/decimals metadata |
| get_rate | single pair, live or historical |
| convert | amount conversion with correct minor-unit rounding |
| get_range | time series for charting/analysis |
| get_usd_index | latest USD index (reconstructed six-currency basket, or the equal-weight usd-strength index) |
| list_official_rate_tables | countries and rate types with government-published rates (tax, customs, central bank) |
| get_official_rate | the rate an authority published for a date, with the period it is valid for |
| search_docs | lets the agent look up API behavior itself |
| start_checkout | opens a billing link for a chosen plan after human confirmation |
Every response is freshness-labeled: source is live (~60s on trading days for all 144 currencies),
ecb_daily (ECB daily fallback), or market_daily (stored daily market close), and
market_session says whether the FX market is currently open.
Env
| Variable | Required | Default | Description |
|---|---|---|---|
| EXCHANGERATE_API_KEY | Yes* | — | Bearer token for API access. Required by default. |
| ALLOW_ANONYMOUS | No | — | Set to "true" to allow anonymous free-tier access without an API key. Shares the free-tier rate-limit pool; no audit trail. |
| EXCHANGERATE_BASE_URL | No | https://api.exchangerate.dev | Override API origin (testing / staging). |
| EXCHANGERATE_TIMEOUT | No | 10000 | Request timeout in milliseconds. |
* Set ALLOW_ANONYMOUS=true to opt into anonymous free-tier access instead.
Development
npm install
npm run build # tsc -> dist/Docs
Full API reference and pricing: exchangerate.dev/docs — the REST API is
Frankfurter-compatible (base + symbols params) if you'd rather skip MCP and curl it.
MIT © Nusantara Ventures, LLC
