Skip to main content
Glama
FX Rates MCP Server

FX Rates MCP Server

by 7BlockLabs

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.server

Use it in Claude Code

claude mcp add --transport http fx-rates http://localhost:8000/mcp

Use it in Claude Desktop / Cursor (stdio)

{
  "mcpServers": {
    "fx-rates": { "command": "python", "args": ["-m", "fx_mcp.server"] }
  }
}

Tools

Tool

What it answers

convert_amount

"How much is 100 USD in EUR?" (latest or on a date)

latest_rates

Today's ECB rates for a base against some/all currencies

historical_rate

Rates on a specific past date

timeseries

A daily series over a range (for trends / charts)

list_currencies

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 tools
convert_amountConvert an amount between currenciesA
Read-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 dateA
Read-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 ratesA
Read-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 currenciesA
Read-only

List all currency codes the service supports, with their full names.

Inputs: no named parameters.

timeseriesRate time series over a rangeB
Read-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

    A3.8/5.0

    Scored across 5 tools

    Disambiguation5/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides real-time foreign-exchange rates, historical data, and multi-currency lookups to MCP-compatible AI coding assistants like Claude Code and Cursor.
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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?'.
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      17
      28 npm
      MIT