UniRate MCP
OfficialUniRate MCP gives AI assistants access to UniRate's currency data through four typed tools.
Convert currency: Convert an amount between 170+ fiat currencies and major crypto at the latest exchange rate.
Get latest rates: Fetch the current exchange rate for one target currency, or all supported currencies relative to a base currency.
Get historical rates (Pro plan): Retrieve the exchange rate for a specific date back to 1999-01-04 for major fiat pairs.
List supported currencies: Return the full list of supported currency codes (170+ fiat plus crypto), useful for autocomplete and validation.
Can run via stdio for local MCP clients (Claude Desktop, Cursor, Continue) or as a remote Streamable HTTP/SSE endpoint, with Docker and programmatic/edge-runtime support.
UniRate MCP Server
A Model Context Protocol server for the UniRate API β give Claude, Cursor, Continue, and any MCP-compatible AI assistant first-class access to currency conversion and exchange rates.
π Real-time conversion between 170+ currencies (fiat + major crypto)
π Historical rates back to 1999 (Pro plan)
π Free tier, no credit card required β get a key at unirateapi.com
π§© Four tools, fully-typed inputs (Zod schemas), structured outputs
π Stdio + Streamable HTTP/SSE transports β run locally or host as a remote MCP endpoint
β‘ Pure Node 18+, single dependency on
@modelcontextprotocol/sdk
Why this exists
Most "currency for AI" workflows today involve hand-rolled fetch wrappers in custom tools, or generic HTTP MCP servers that hand the model raw JSON. This server gives models a tight, typed, currency-aware tool surface β they ask "what was 100 USD in EUR on 2020-03-15?" and get back a formatted answer plus a structured payload they can chain into other tool calls.
Related MCP server: FX Currency MCP Server
Quick start
1. Install
npm install -g @unirate/mcpOr run on demand with npx @unirate/mcp (no install).
2. Get a UniRate API key
Free tier covers convert, latest_rate, and list_currencies. Sign up at unirateapi.com β no credit card required.
3. Wire it into your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"unirate": {
"command": "npx",
"args": ["-y", "@unirate/mcp"],
"env": {
"UNIRATE_API_KEY": "your-api-key-here"
}
}
}
}Restart Claude Desktop. The four UniRate tools will appear in the tool picker.
Cursor / Continue / Cline
Add to your MCP config (.cursor/mcp.json, ~/.continue/config.json, etc.):
{
"mcpServers": {
"unirate": {
"command": "npx",
"args": ["-y", "@unirate/mcp"],
"env": { "UNIRATE_API_KEY": "your-api-key-here" }
}
}
}From source
git clone https://github.com/UniRate-API/unirate-mcp.git
cd unirate-mcp
npm install && npm run build
UNIRATE_API_KEY=your-key node dist/index.js4. Run as a remote endpoint (Streamable HTTP / SSE)
By default the server uses stdio, which is what Claude Desktop and most MCP clients want. To host it as a remote endpoint instead β for shared use, multi-user deployments, or browser-based clients β start it in HTTP mode:
UNIRATE_API_KEY=your-key unirate-mcp --http 3001
# or via env:
UNIRATE_API_KEY=your-key UNIRATE_MCP_HTTP_PORT=3001 unirate-mcpThat exposes:
POST /mcpβ Streamable HTTP endpoint (SSE-capable). Stateless: a fresh server is built per request, so the same process can serve many concurrent clients.GET /healthzβ JSON liveness probe ({ "status": "ok", "server": "unirate-mcp", "version": "..." }).
Point any Streamable-HTTP-capable MCP client (Claude Desktop with remote server support, Cursor remote MCP, etc.) at http://your-host:3001/mcp. Drop it behind a reverse proxy + TLS for production.
Docker
Multi-arch images (linux/amd64, linux/arm64) are published to both the
GitHub Container Registry
(ghcr.io/unirate-api/unirate-mcp) and Docker Hub
(unirate/unirate-mcp) β use whichever you prefer:
# stdio mode (for local AI clients β pipe stdin/stdout)
docker run --rm -i -e UNIRATE_API_KEY="your-key" \
ghcr.io/unirate-api/unirate-mcp:latest
# ...or from Docker Hub:
# docker run --rm -i -e UNIRATE_API_KEY="your-key" unirate/unirate-mcp:latest
# HTTP/SSE mode (hosted endpoint on :3001)
docker run --rm -p 3001:3001 -e UNIRATE_API_KEY="your-key" \
ghcr.io/unirate-api/unirate-mcp:latest --http 3001Point an MCP client at http://your-host:3001/mcp for the Streamable HTTP transport.
Programmatic / edge runtimes (Cloudflare Workers, Deno, Bun)
The package exports buildServer(client) so you can wire it to whatever transport your runtime prefers. For Workers / Deno / Bun, use the SDK's webStandardStreamableHttp transport with an exported buildServer instance.
import { UnirateClient } from "@unirate/mcp/dist/client.js";
import { buildServer } from "@unirate/mcp";
// β connect to your runtime's preferred transportTools
convert
Convert an amount from one currency to another at the latest rate.
Param | Type | Required | Notes |
| string | yes | ISO 4217 code (e.g. |
| string | yes | ISO 4217 code (e.g. |
| number | yes | Positive amount in |
Example call:
{ "name": "convert", "arguments": { "from": "USD", "to": "EUR", "amount": 100 } }Response: human-readable text plus structured { from, to, amount, result }.
latest_rate
Get current exchange rate(s).
Param | Type | Required | Notes |
| string | yes | Base currency |
| string | no | Target. Omit to get rates for all currencies |
historical_rate (Pro plan)
Get the exchange rate that was in effect on a specific date. Coverage back to 1999-01-04 for major fiat pairs.
Param | Type | Required | Notes |
| string | yes |
|
| string | yes | Source currency |
| string | yes | Target currency |
| number | no | Defaults to 1 |
Free-tier keys receive a clear error pointing to unirateapi.com for upgrade.
list_currencies
Returns the array of supported currency codes (170+) with no parameters. Useful for autocomplete or validating user-supplied codes.
Errors
All UniRate API failures are mapped to friendly tool errors:
HTTP | Error class | What the model sees |
400 |
| "Invalid request parameters" |
401 |
| "Missing or invalid API key" |
403 |
| "β¦requires Proβ¦ upgrade at https://unirateapi.com" |
404 |
| "Currency not found or no data available" |
429 |
| "Rate limit exceeded" |
503 |
| "Service unavailable" |
Network/timeout errors are wrapped in UnirateError. Tool calls always return a response object with isError: true rather than throwing protocol-level errors, so the model can recover gracefully.
Development
npm install
npm run build # compile TypeScript to dist/
npm test # 24 mock tests
UNIRATE_LIVE=1 UNIRATE_API_KEY=... npm run test:live # +4 live free-tier testsUniRate ecosystem
UniRate ships official integrations for 40+ ecosystems, all maintained under the UniRate-API org.
Core clients (9 languages) Python Β· Node.js / TypeScript Β· Go Β· Rust Β· Java Β· Ruby Β· PHP Β· .NET Β· Swift
JavaScript / TypeScript React Β· Next.js Β· Remix Β· SvelteKit Β· Vue Β· Angular Β· Nuxt Β· NestJS Β· tRPC
Static-site generators Astro Β· Eleventy Β· Hugo Β· Jekyll
CMS & e-commerce Wagtail Β· WordPress Β· WooCommerce Β· Drupal Β· Strapi Β· Medusa Β· Symfony Β· Laravel Β· Directus
Data, AI & backend LangChain (Python) Β· LangChain.js Β· FastAPI Β· Flask Β· Django REST Framework Β· Apache Airflow Β· dbt
Platform & tools MCP server Β· CLI Β· Cloudflare Workers Β· Home Assistant Β· n8n Β· Google Sheets Β· VS Code Β· Obsidian
Money library bridges money gem (Ruby) Β· NodaMoney (.NET)
Get a free API key at unirateapi.com.
License
MIT β see LICENSE.
Available Tools
4 toolsconvertConvert currencyARead-only
Convert an amount from one currency to another using the latest exchange rate. Codes are ISO 4217 (e.g. USD, EUR, GBP). Supports 170+ fiat currencies and major cryptocurrencies.
Inputs: from (required), to (required), amount (required).
historical_rateGet historical exchange rate (Pro plan required)ARead-only
Fetch the exchange rate that was in effect on a specific date. Date format YYYY-MM-DD. Coverage goes back to 1999-01-04 for major fiat pairs. Requires UniRate Pro β free-tier keys will receive a clear upgrade-required error.
Inputs: date (required), from (required), to (required), amount.
latest_rateGet latest exchange rate(s)ARead-only
Fetch the latest exchange rate for a base currency. If 'to' is provided, returns a single rate; otherwise returns rates for all supported currencies relative to the base.
Inputs: from (required), to.
list_currenciesList supported currenciesARead-only
Return the list of currency codes supported by the UniRate API (170+ fiat plus major crypto).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
Each tool serves a distinct purpose: converting amounts, fetching historical rates, getting latest rates, and listing supported currencies. No overlaps.
All tool names use consistent snake_case and follow a verb_noun or adjective_noun pattern, making them predictable.
4 tools is well-scoped for a currency conversion API, covering essential operations without unnecessary complexity.
The tool set covers conversion, latest rates, historical rates, and currency listingβno obvious gaps for the domain.
Maintenance
Related MCP Connectors
Live & historical FX rates and currency conversion for AI agents. No API keys.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Currency rates, history from 1949, IMF PPP, and FX analytics for AI agents.
Free, keyless real-time currency conversion and exchange rates for any currency pair.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to currency exchange rates and conversion tools using the Frankfurter API, including latest rates, historical data, and time series from sources like the European Central Bank.5MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time and historical foreign exchange rates for 31+ currencies, enabling currency conversion, historical rate lookups, and time series analysis using data from the Frankfurter API.-
- AlicenseAqualityBmaintenanceProvides real-time foreign-exchange rates, historical data, and multi-currency lookups to MCP-compatible AI coding assistants like Claude Code and Cursor.4802 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides real-time exchange rates for any currency pair using open.er-api.com, simplifying currency conversion with a single tool.158 npmMIT