FX Rates MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FX Rates MCP Server How much is 100 USD in EUR right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FX Rates MCP Server
A production-shaped Model Context Protocol server that gives AI agents (Claude, ChatGPT, Cursor, and any MCP client) live and historical foreign-exchange rates. Built by 7Block Labs as a public reference for how we ship MCP servers for companies that sell data and APIs.
It runs on the free Frankfurter API (European Central Bank reference rates, no key required), so you can clone it and have a working MCP server in under a minute.
Why this repo exists
Most "MCP servers" are an OpenAPI spec auto-converted into one tool per endpoint — which agents use badly. This one is deliberately built the way a data/API company should ship theirs:
Task-shaped tools, not endpoint dumps. Five tools that answer real questions (
convert_amount,latest_rates,historical_rate,timeseries,list_currencies) instead of a raw mirror of the HTTP API.Precise tool descriptions + read-only annotations (
readOnlyHint) so the model knows when and which tool to call — the difference between a demo and something agents use reliably.Streamable HTTP transport (MCP spec 2025-06-18 and later), ready to deploy as a remote server.
A clean seam for auth + plan entitlements. For a paid data API this is where per-user OAuth 2.1, plan → scope mapping, rate limits, and usage metering attach. See
docs/PRODUCTION.md.
Related MCP server: @cyanheads/exchange-rates-mcp-server
Quickstart
python -m venv .venv && source .venv/bin/activate
pip install -e .
# Local (stdio) — for Claude Desktop / Cursor:
python -m fx_mcp.server
# Remote (Streamable HTTP) — for hosting:
TRANSPORT=http PORT=8000 python -m fx_mcp.serverUse it in Claude Code
claude mcp add --transport http fx-rates http://localhost:8000/mcpUse it in Claude Desktop / Cursor (stdio)
{
"mcpServers": {
"fx-rates": { "command": "python", "args": ["-m", "fx_mcp.server"] }
}
}Tools
Tool | What it answers |
| "How much is 100 USD in EUR?" (latest or on a date) |
| Today's ECB rates for a base against some/all currencies |
| Rates on a specific past date |
| A daily series over a range (for trends / charts) |
| All supported currency codes + names |
From reference to your production server
This is the free-data version. For a company selling a paid data API, the same architecture extends to: account linking (OAuth 2.1 into your existing logins), plan-aware entitlements and rate limits, usage metering into your billing, an in-chat UI, and listing in the Claude and ChatGPT directories.
That's what we do. 7Block Labs builds and launches MCP servers for data and API companies — get in touch.
License
MIT — see LICENSE.
Available Tools
5 toolsconvert_amountConvert an amount between currenciesARead-only
Convert a money amount from one currency to another using the latest ECB rate (or a specific date). Returns the converted amount and the rate used. Example: convert_amount(amount=100, base='USD', quote='EUR').
Inputs: base (required), quote (required), amount (required), on.
historical_rateHistorical rate on a dateARead-only
Get ECB reference rates for a specific past date (YYYY-MM-DD). Weekends/holidays return the most recent prior business day. Example: historical_rate('2020-01-02', base='USD').
Inputs: on (required), base, symbols.
latest_ratesLatest exchange ratesARead-only
Get today's ECB reference rates for one base currency against some or all currencies. Example: latest_rates(base='EUR', symbols=['USD','GBP']).
Inputs: base, symbols.
list_currenciesList supported currenciesARead-only
List all currency codes the service supports, with their full names.
Inputs: no named parameters.
timeseriesRate time series over a rangeBRead-only
Get a daily time series of rates between two dates for a base/quote pair. Useful for trends or charts. Example: timeseries('2024-01-01','2024-01-31', base='USD', quote='INR').
Inputs: end (required), base (required), quote (required), start (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: convert_amount converts an amount, latest_rates retrieves current rates, historical_rate fetches rates for a specific date, timeseries returns a date-range series, and list_currencies enumerates supported currencies. Although convert_amount mentions using a specific date, it remains the only conversion tool, so boundaries stay unambiguous.
All names use snake_case, but the pattern mixes verb_noun (convert_amount, list_currencies) with adjective/noun phrases (latest_rates, historical_rate) and a bare noun (timeseries). This inconsistency is noticeable, though names remain readable and predictable in casing.
5 tools is well-scoped for an FX rates service, covering conversion, current rates, historical rates, time series, and currency enumeration without redundancy or missing core functionality.
The surface covers the full lifecycle of exchange-rate needs: current and historical retrieval, time series, conversion, and supported-currency listing. No obvious gaps for the stated ECB-based 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.
Unofficial Exchange MCP — wraps the Frankfurter currency exchange API (free, no auth)
ExchangeRate MCP — wraps open.er-api.com (free, no auth)
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides real-time foreign-exchange rates, historical data, and multi-currency lookups to MCP-compatible AI coding assistants like Claude Code and Cursor.4MIT
- AlicenseNot gradedqualityBmaintenanceConvert currencies, get FX rates, and query historical ECB exchange rate data via MCP.407 npm1Apache 2.0
- AlicenseAqualityDmaintenanceEnables currency conversion and exchange rate lookups using real ECB reference rates, free and without an API key. Supports natural language queries like 'convert 100 USD to EUR' or 'what's the exchange rate between GBP and JPY?'.2MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to access exchange rates for 160+ currencies, currency conversion, historical rates, time series, crypto, metal and stock prices, usage checks, and rate alerts.1728 npmMIT