AllRatesToday MCP Server
This server provides real-time and historical foreign-exchange data to AI assistants via the Model Context Protocol.
Get current exchange rate (
get_exchange_rate): Fetch the live mid-market rate between any two of 150+ currencies using ISO 4217 codes (e.g., USD → EUR). Rates refresh every ~60 seconds from tier-1 sources.Get historical rates (
get_historical_rates): Retrieve time-series data for a currency pair over fixed periods:1d— hourly data (24 points)7d— daily data (7 points)30d— daily data (30 points)1y— weekly data (52 points)
Multi-currency lookups (
get_rates_authenticated): Fetch rates from one source currency to multiple targets in a single call (e.g., USD → EUR, GBP, JPY), with optional historical timestamps and grouping by hour, day, week, or month.List supported currencies (
list_currencies): Retrieve all 150+ available currencies with their ISO code, full name, and symbol. Results are cached for 24 hours.
Most features require an AllRatesToday API key. Clear error messages are provided for missing keys, quota limits, and invalid requests.
AllRatesToday MCP Server — @allratestoday/mcp-server
English | 简体中文
Give your AI assistant a live window into the foreign-exchange market. A Model Context Protocol server that lets Claude Code, Cursor, Claude Desktop, Windsurf, and any MCP-compatible client fetch real-time currency rates, historical series, and multi-currency lookups from the AllRatesToday API.
After installation, your assistant can answer questions like:
"What's the current USD to EUR rate?"
"Show me how GBP/JPY moved over the last 30 days."
"Convert 250 USD into CAD at a real rate."
"Compare USD against EUR, GBP, and JPY simultaneously."
🚀 Why this server?
📡 Live mid-market rates — 150+ ISO 4217 currencies, refreshed every ~60 seconds from institutional interbank data
📈 Historical series built in —
1d/7d/30d/1ywindows with sensible granularity per period🧰 Four focused tools —
get_exchange_rate,get_historical_rates,get_rates_authenticated,list_currencies; small surface, easy for the model to use correctly🔌 Works everywhere MCP does — stdio transport, MCP 1.x; Claude Code, Cursor, Claude Desktop, Windsurf, or any generic host
🛡️ Fail-fast and honest — refuses to start without a key, maps API errors to clear actionable messages the assistant can relay
🔒 Nothing leaks — only the request parameters and your API key ever reach allratestoday.com; never conversation context
Related MCP server: currency-exchange-mcp
⚖️ Mid-market vs official central-bank rates
Everything this server returns is a mid-market rate: the live interbank midpoint, refreshed every ~60 seconds — the right number for price display, conversion, and anything that should track the market. It is not the official rate a tax authority or auditor may require. For those, AllRatesToday also serves published central-bank and tax-authority rates (47 sources — ECB, Fed, HMRC, US Treasury, …) that are fixed once published and carry the institution's own publication date — via the central bank REST API and per-bank npm SDKs. The two can diverge by several percent, so pick by use case, not convenience.
🔑 Get your API key
The server will not start without a valid ALLRATES_API_KEY. A free key is enough for development and personal use — no credit card required.
Register at allratestoday.com/register — 30 seconds
Verify your email
Copy your key from the dashboard (format:
art_live_xxxxx)Use it as
ALLRATES_API_KEYin the configs below
If you forget, the server prints registration instructions on stderr and exits with code 1.
📦 Installation
The simplest install is zero-install via npx, which is what every config below uses:
# Run without installing (recommended)
npx -y @allratestoday/mcp-server# Or install globally
npm install -g @allratestoday/mcp-server
allratestoday-mcpBoth commands launch the stdio MCP server and wait for a client to connect — they're not meant to be run interactively from your shell; your MCP client launches them as a subprocess.
🏁 Quick setup per client
Each client reads MCP servers from a different config file. Pick yours below.
Claude Code
The fastest path uses the built-in CLI:
claude mcp add allratestoday -- npx -y @allratestoday/mcp-server
claude mcp env allratestoday ALLRATES_API_KEY=art_live_xxxxxRestart Claude Code. Verify by asking it: "What's the current USD to EUR rate?"
Cursor
Edit ~/.cursor/mcp.json (or .cursor/mcp.json inside your project for project-scoped servers):
{
"mcpServers": {
"allratestoday": {
"command": "npx",
"args": ["-y", "@allratestoday/mcp-server"],
"env": {
"ALLRATES_API_KEY": "art_live_xxxxx"
}
}
}
}Restart Cursor. The four tools should appear in the MCP tool picker.
Claude Desktop
Edit the config file (path depends on OS):
OS | Path |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"allratestoday": {
"command": "npx",
"args": ["-y", "@allratestoday/mcp-server"],
"env": {
"ALLRATES_API_KEY": "art_live_xxxxx"
}
}
}
}Fully quit and reopen Claude Desktop (Cmd+Q on macOS, right-click tray icon → Exit on Windows). Closing the window alone keeps the old config loaded.
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json with the same mcpServers block as above, then restart Windsurf.
Generic stdio MCP client
Any MCP host that supports stdio transport works. The launch command is:
npx -y @allratestoday/mcp-server…with the environment variable ALLRATES_API_KEY set. The protocol version is MCP 1.x.
✅ Verify it works
After configuring your client, test in this order:
Server starts — open the client. A red dot or "failed to connect" means the API key is missing or wrong (see Troubleshooting below).
Tools are listed — most clients have a "tools" or "MCP" panel showing the four tools.
A live call returns a number — ask: "What's the current USD to EUR rate?" The assistant should call
get_exchange_rate(source: "USD", target: "EUR")and reply with a real rate. If it fabricates a number without a tool call, the server isn't connected.
📚 Tools reference
get_exchange_rate— current rate for one pairget_historical_rates— time series over a preset periodget_rates_authenticated— multiple targets in one call, optional point-in-timelist_currencies— all supported currency codes, names, symbols
All four tools require ALLRATES_API_KEY.
get_exchange_rate
Current mid-market rate between two currencies.
Input
Field | Type | Required | Description |
| string | yes | 3-letter ISO 4217 code, e.g. |
| string | yes | 3-letter ISO 4217 code, e.g. |
Example call
{ "source": "USD", "target": "EUR" }Response:
{ "rate": 0.92145, "source": "wise" }get_historical_rates
Time-series data points for a currency pair over a fixed period.
Input
Field | Type | Required | Description |
| string | yes | Source currency code |
| string | yes | Target currency code |
| string | no (default | One of |
Granularity by period
| Data points |
| Hourly (24 points) |
| Daily (7 points) |
| Daily (30 points) |
| Weekly (52 points) |
Example call
{ "source": "USD", "target": "INR", "period": "30d" }Response (truncated):
{
"source": "USD",
"target": "INR",
"period": "30d",
"data": [
{ "date": "2026-03-27T00:00:00Z", "rate": 83.42, "timestamp": 1743033600000 },
{ "date": "2026-03-28T00:00:00Z", "rate": 83.51, "timestamp": 1743120000000 },
"..."
]
}get_rates_authenticated
Multiple targets in one call, with optional historical timestamp or grouping window.
Input
Field | Type | Required | Description |
| string | yes | Source currency code |
| string | yes | One or more codes, comma-separated ( |
| string (ISO 8601) | no | Historical point in time |
| string | no | One of |
Example call
{ "source": "USD", "target": "EUR,GBP,JPY" }Response:
[
{ "rate": 0.9214, "source": "USD", "target": "EUR", "time": "2026-04-26T11:00:00Z" },
{ "rate": 0.7891, "source": "USD", "target": "GBP", "time": "2026-04-26T11:00:00Z" },
{ "rate": 151.34, "source": "USD", "target": "JPY", "time": "2026-04-26T11:00:00Z" }
]list_currencies
All supported currencies with codes, names, and symbols. Cached upstream for 24 hours — cheap to call for validating user input before the other tools.
Input — none.
Response (truncated):
{
"currencies": [
{ "code": "USD", "name": "US Dollar", "symbol": "$" },
{ "code": "EUR", "name": "Euro", "symbol": "€" },
{ "code": "GBP", "name": "British Pound", "symbol": "£" },
"..."
],
"count": 162
}⚙️ Environment variables
Variable | Default | Required | Purpose |
| — | yes | Your API key. The server exits at startup if unset. |
|
| no | Override for self-hosted or staging deployments. |
Set these in your MCP client's config (in the env block) — not in your shell — because MCP servers are launched as subprocesses with isolated environments.
💳 Plans
A free tier and paid plans are available — see allratestoday.com/pricing for current quotas. All plans include the same currency coverage and historical depth; only the request quotas differ.
🛠️ Troubleshooting
Symptom | Likely cause | Fix |
Client shows "MCP server failed to start" or red dot |
| Verify the key in your client config; check it matches the dashboard |
Every call returns "Invalid AllRatesToday API key" | Key is malformed (missing prefix, truncated, or revoked) | Copy a fresh key from the dashboard |
Tools return "AllRatesToday API quota exceeded" | Monthly limit hit | Wait until next month or upgrade plan |
Historical tool returns "Bad request" | Invalid period or unknown currency code | Period must be |
Server starts but tools never appear | Client didn't reload after config change | Fully quit (not just close) and reopen the client |
| The server is waiting for an MCP client to connect — normal when run from a shell | Let your MCP client launch it |
To inspect what the server is doing, run it manually with the key set:
ALLRATES_API_KEY=art_live_xxxxx npx -y @allratestoday/mcp-serverNo output means healthy (stdio is reserved for the MCP protocol); errors print to stderr.
🛡️ Error reference
The server maps API errors to clear, actionable messages the assistant can relay to the user:
HTTP status | Meaning | Tool error message |
200 | Success | (rate returned) |
400 | Bad request — usually unknown currency code |
|
401 | Invalid or missing API key |
|
429 | Quota exceeded |
|
5xx | Server-side issue at allratestoday.com |
|
❓ FAQ
Is the free plan really enough for normal use? Yes for personal/dev use. Heavy interactive use, multiple chat sessions per day, or production should consider the paid tiers.
Do you store my conversation or query data? No. Only your API key and the request parameters (source, target, period, time) are sent to allratestoday.com — never the LLM's conversation context.
What happens to my API key?
It's only sent as a Bearer token in the Authorization header on requests to the AllRatesToday API. It's never logged or transmitted elsewhere.
Why is my first call slow?
Cold-start of npx (first run downloads the package) plus the initial cache miss. Subsequent calls are typically <200ms.
Can I run this without npm/Node? Not currently — Node ≥18 is required. If a standalone binary matters to you, open an issue.
Is there a self-hosted option?
Set ALLRATES_BASE_URL to your own AllRatesToday instance. Contact support@allratestoday.com for self-hosted licensing.
Does this work with ChatGPT? MCP works with any MCP-compatible client. ChatGPT Desktop has experimental MCP support; check OpenAI's docs for current status.
👩💻 Development
git clone https://github.com/cahthuranag/mcp-server.git
cd mcp-server
npm install
npm run build
ALLRATES_API_KEY=art_live_xxxxx node dist/index.jsThe server runs on stdio and waits for an MCP client to connect; Ctrl+C to exit. npm run dev watches and rebuilds. To test against a local AllRatesToday instance:
ALLRATES_BASE_URL=http://localhost:8080/api ALLRATES_API_KEY=test_key node dist/index.jsProject structure
src/
├── index.ts # MCP server, tool registration, request handlers
└── client.ts # HTTP client for AllRatesToday API + error mapping
dist/ # Compiled JS (gitignored)
server.json # MCP registry manifestContributing — issues and PRs welcome at github.com/cahthuranag/mcp-server. Before opening a PR: npm run build must succeed, test against a real API key, and update the tool descriptions in src/index.ts plus this README's tools reference if you change tool behavior.
📝 Changelog
See GitHub Releases for the full list. Recent highlights:
0.4.x — README overhaul; registry metadata updates
0.3.x — API key required for all tools; fail-fast at startup with clear error
0.2.x — Removed news tool, required auth on
get_historical_rates0.1.x — Initial release with 5 tools
🔗 Links
Support: support@allratestoday.com
📜 License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- 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.
- AlicenseNot gradedqualityDmaintenanceReal-time currency exchange rates and crypto prices via MCP. Convert between 60+ fiat currencies and 30+ cryptocurrencies with multi-source failover. No API keys needed for upstream data.15ISC
- AlicenseAqualityBmaintenanceProvides real-time foreign-exchange rates, historical data, and multi-currency lookups to MCP-compatible AI coding assistants like Claude Code and Cursor.4219MIT
- AlicenseAqualityBmaintenanceAn MCP server for the Xe Currency Data API that brings live FX rates, historical analysis, and quant-flavored tools into AI tools, working out of the box with zero credentials via Frankfurter/ECB data.12121MIT
Related MCP Connectors
Convert currencies, get FX rates, and query historical ECB exchange rate data.
Convert currencies and fetch blended FX rates from 50+ institutional sources.
Live & historical FX rates for AI agents, from European Central Bank data. No API keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AllRates-Today/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server