Get real-time exchange rates directly in your AI coding assistant. Works with Claude Code, Cursor, and Claude Desktop.
Model Context Protocol (MCP) is an open standard created by Anthropic for connecting AI assistants to external tools and data sources. An MCP server exposes a set of typed tools that clients like Claude Code, Cursor, and Claude Desktop can call on your behalf whenever the model needs live data.
The Exchange Rate API MCP server is a lightweight bridge that gives your AI assistant direct access to real-time mid-market exchange rates and historical currency data. Once configured, your assistant can answer questions like:
Package: @allratestoday/mcp-server on npm. Source: github.com/Exchange-RateAPI/mcp-server.
The MCP server exposes four tools that your AI assistant can call automatically:
get_exchange_rate
get_historical_rates
1d, 7d, 30d, or 1y of data points.get_rates_authenticated
list_currencies
Choose your AI client below. The MCP server runs via npx — no global install required.
Run this in your terminal:
claude mcp add exchange-rates -- npx -y @allratestoday/mcp-server
# Optional: set API key for authenticated endpoints
claude mcp env exchange-rates ALLRATESTODAY_API_KEY=your_api_key_here
Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
{
"mcpServers": {
"exchange-rates": {
"command": "npx",
"args": ["-y", "@allratestoday/mcp-server"],
"env": {
"ALLRATESTODAY_API_KEY": "your_api_key_here"
}
}
}
}
Edit your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"exchange-rates": {
"command": "npx",
"args": ["-y", "@allratestoday/mcp-server"],
"env": {
"ALLRATESTODAY_API_KEY": "your_api_key_here"
}
}
}
}
Restart Claude Desktop after editing.
| Variable | Required | Purpose |
|---|---|---|
ALLRATESTODAY_API_KEY |
Optional | Your API key. Required only for get_historical_rates and get_rates_authenticated. The other two tools work without a key. |
Get a free API key at exchange-rateapi.com/register. The free plan covers personal and development use.
The MCP server itself is open-source (MIT licensed). The underlying Exchange Rate API has a free tier and paid plans. Two tools (get_exchange_rate and list_currencies) work without any API key.
No — the tools call the Exchange Rate API over HTTPS to fetch live data. You can cache results locally if you need offline access.
Any MCP-compatible client works. We provide setup instructions for Claude Code, Cursor, and Claude Desktop, but any client that supports the Model Context Protocol standard can connect.
Yes. The source is on GitHub — issues and pull requests are welcome.
Install the MCP server in one line. Free tier available — no credit card required.
Get Free API Key → View on GitHub