Skip to main content
Glama

ecb-mcp

European Central Bank data for AI agents. Exchange rates, interest rates, yield curves, inflation, money supply, and 100+ more datasets from the ECB — directly inside Claude, Cursor, Windsurf, or any MCP client.

No API key. No registration. No config. Just npx ecb-mcp.

npm version License: MIT

Why

The ECB publishes 100+ statistical datasets via a free, public API — exchange rates for 40+ currencies, key interest rates, yield curves, HICP inflation, monetary aggregates, banking statistics, and much more.

But the API uses SDMX, a format nobody memorizes. You need to know dataflow IDs, dimension key structures, and query syntax just to get a single number.

ecb-mcp translates natural questions into the right SDMX queries. Your AI agent asks "What's the current EUR/USD rate?" and gets a clean answer from live ECB data. No SDMX knowledge required.

Related MCP server: NexusForge EU Finance

Quick Start

Add to your MCP client config:

{
  "mcpServers": {
    "ecb": {
      "command": "npx",
      "args": ["-y", "ecb-mcp"]
    }
  }
}

That's it. No API key, no environment variables, no account creation.

Where to add this config

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

  • Claude Code: claude mcp add ecb-mcp -- npx -y ecb-mcp

  • Cursor: Settings > MCP Servers

  • Windsurf: ~/.windsurf/config.json

What you can ask

Once installed, just ask your AI agent questions in natural language:

"What's the current EUR/USD exchange rate?"

"Show me ECB interest rate changes since 2022"

"What's the eurozone inflation rate?"

"Convert 5000 USD to GBP using ECB rates"

"What's the 10-year euro area government bond yield?"

"How has M3 money supply grown over the past year?"

"What ECB datasets are available about bank lending?"

"Explain the structure of the EXR dataset"

Tools

get_exchange_rates

EUR reference rates for 40+ currencies. Daily, monthly, or annual. The same rates used by European institutions and businesses.

"What's the EUR/USD rate?"
"Show me EUR/GBP rates for the last 30 days"
"EUR/JPY monthly averages for 2024"

get_interest_rates

The ECB's key policy rates — the ones that move markets and drive eurozone monetary policy.

"What is the current ECB deposit facility rate?"
"Show me the history of ECB rate changes"
"When did the ECB last change the main refinancing rate?"

get_yield_curve

Euro area government bond yield curve. AAA-rated sovereign spot rates from 3 months to 30 years.

"What's the 10-year euro area yield?"
"Show me the 2-year yield over the past 6 months"
"Compare 5Y and 10Y yields since January"

get_inflation

HICP inflation — the official eurozone inflation measure. Available for the euro area as a whole or individual countries.

"What's the current eurozone inflation rate?"
"Germany's inflation over the past year"
"Compare inflation in France vs Spain"

get_money_supply

Euro area monetary aggregates (M1, M2, M3). Outstanding amounts or annual growth rates.

"What's the current M3 money supply?"
"M1 growth rate over the past year"
"How has M3 evolved since 2020?"

convert_currency

Convert any amount between currencies using official ECB reference rates. Supports EUR-direct, inverse, and cross-currency conversions (e.g., USD to GBP via EUR triangulation).

"Convert 1000 EUR to USD"
"How much is 500 GBP in JPY?"
"What was 10000 USD worth in CHF on 2025-01-15?"

search_datasets

Search across all 100+ ECB statistical datasets by keyword. The ECB publishes far more than exchange rates — banking statistics, balance of payments, government debt, payment systems, insurance data, and much more.

"What ECB datasets are about bank lending?"
"Find datasets related to government debt"
"What data does the ECB publish about payments?"

explain_dataset

Understand any ECB dataset's structure — its dimensions, valid values, and how to query it. This is the key to unlocking the full 100+ datasets beyond the built-in tools.

"Explain the EXR dataset structure"
"What dimensions does the BSI dataset have?"
"What are the valid currency codes?"

Data Source

All data comes directly from the ECB Data Portal API (SDMX 2.1 REST).

  • No intermediary, no proxy — live data from the European Central Bank

  • No authentication or API key required

  • Exchange rates updated daily at 16:00 CET

  • Other datasets updated at various frequencies (monthly, quarterly)

Configuration

ecb-mcp works with zero configuration. Optional settings:

Environment Variable

Default

Description

ECB_API_URL

https://data-api.ecb.europa.eu/service

API base URL. Only change this if you're proxying the ECB API.

DEBUG

—

Set to any value to enable debug logging to stderr.

Development

git clone https://github.com/scka-de/ecb-mcp.git
cd ecb-mcp
npm install
npm test                      # unit tests (fixtures, no API calls)
INTEGRATION=true npm test     # integration tests (live ECB API)
npm run build                 # compile to dist/
npm run dev                   # run in dev mode
npm run lint                  # check code style

How It Works

ecb-mcp translates your AI agent's natural language questions into SDMX series key queries against the ECB API. For example, when Claude asks for the EUR/USD rate, ecb-mcp:

  1. Builds the SDMX key: D.USD.EUR.SP00.A

  2. Fetches CSV from https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A?format=csvdata

  3. Parses the response and returns clean, human-readable data

For dataset discovery, ecb-mcp fetches and parses XML metadata from the ECB's structure definition endpoints, letting your agent explore all 100+ datasets without knowing SDMX.

License

MIT

Available Tools

8 tools
convert_currencyA

Convert an amount between currencies using ECB reference rates.

Supports EUR to any currency, any currency to EUR, and cross-currency conversion (e.g. USD to GBP) via EUR triangulation. Uses the latest ECB reference rate, or a rate from a specific date.

Examples of questions this tool answers:

  • "Convert 1000 EUR to USD"

  • "How much is 500 GBP in EUR?"

  • "Convert 250 USD to JPY"

  • "What was 1000 EUR worth in CHF on 2025-01-15?"

Inputs: amount (required), from (required), to (required), date.

explain_datasetA

Explain the structure of any ECB dataset — dimensions, valid values, and example queries.

Use this after search_datasets to understand what a dataset contains and how to query it. Returns the dataset's dimensions, their valid values (codes), and an example series key. Works for all 100+ ECB datasets, not just the ones with dedicated tools.

Examples of questions this tool answers:

  • "What dimensions does the EXR dataset have?"

  • "What are the valid currency codes in the exchange rate dataset?"

  • "How do I query the BSI (balance sheet) dataset?"

Inputs: dataset_id (required).

get_exchange_ratesA

Get EUR exchange rates from the European Central Bank.

Returns daily, monthly, or annual reference rates for a currency pair against EUR. The ECB publishes reference rates for ~40 currencies at 16:00 CET each business day.

Examples of questions this tool answers:

  • "What is the current EUR/USD exchange rate?"

  • "Show me EUR/GBP rates for the last week"

  • "What was the EUR/JPY rate in January 2025?"

Inputs: target (required), frequency, startPeriod, endPeriod, +1 more.

get_inflationA

Get HICP inflation data from the ECB — the official eurozone inflation measure.

Returns the Harmonised Index of Consumer Prices (HICP) as published by Eurostat via the ECB. Available as annual rate of change (%) or index level, for the euro area or individual countries.

Examples of questions this tool answers:

  • "What is the current eurozone inflation rate?"

  • "Show me Germany's inflation over the past year"

  • "Compare inflation in France vs Italy"

Inputs: country, measure, startPeriod, endPeriod, +1 more.

get_interest_ratesA

Get key ECB interest rates — the rates that drive eurozone monetary policy.

Returns the ECB's main policy rates: Main Refinancing Operations (MRO), Deposit Facility, and Marginal Lending Facility. These are the rates the ECB sets at its Governing Council meetings.

Examples of questions this tool answers:

  • "What is the current ECB deposit facility rate?"

  • "Show me the history of ECB interest rate changes"

  • "When did the ECB last change its main refinancing rate?"

Inputs: type (required), startPeriod, endPeriod, lastNObservations.

get_money_supplyA

Get euro area monetary aggregates (M1, M2, M3) from the ECB.

Returns monetary aggregate data as outstanding amounts (EUR millions) or annual growth rates. M1 = currency in circulation + overnight deposits. M2 = M1 + short-term deposits. M3 = M2 + repos + money market funds + debt securities up to 2 years.

Examples of questions this tool answers:

  • "What is the current M3 money supply in the euro area?"

  • "Show me M1 growth rate over the past year"

  • "How has M3 evolved since 2020?"

Inputs: aggregate, measure, country, startPeriod, +2 more.

get_yield_curveA

Get euro area government bond yield curve data from the ECB.

Returns spot rates from the ECB's AAA-rated government bond yield curve. Available maturities range from 3 months to 30 years. Updated daily.

Examples of questions this tool answers:

  • "What is the current 10-year euro area yield?"

  • "Show me the 2-year yield over the past 6 months"

  • "What was the 5-year spot rate in March 2024?"

Inputs: maturity, issuerType, startPeriod, endPeriod, +1 more.

search_datasetsA

Search the ECB's 100+ statistical datasets by keyword.

Returns matching dataset IDs and names. Use this to discover what data the ECB publishes. After finding a dataset, use explain_dataset to learn its structure, or use the specific data tools (get_exchange_rates, get_interest_rates, etc.) for common queries.

Examples of questions this tool answers:

  • "What ECB datasets are available about inflation?"

  • "Does the ECB publish data about bank lending?"

  • "What datasets cover government debt?"

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting different ECB data domains (currency conversion, exchange rates, inflation, interest rates, money supply, yield curves, dataset search, and dataset explanation). There is no overlap in functionality—for example, convert_currency handles conversions while get_exchange_rates provides raw rate data, and search_datasets and explain_dataset are complementary discovery tools.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (e.g., convert_currency, get_exchange_rates, search_datasets). The verbs are appropriate and predictable (convert, explain, get, search), making the set easy to navigate and understand at a glance.

    Tool Count5/5

    With 8 tools, the server is well-scoped for providing ECB data access. It covers core economic indicators (exchange rates, inflation, interest rates, money supply, yield curves) plus essential utilities (conversion, dataset search/explanation). Each tool earns its place without redundancy, fitting the typical 3-15 tool range for a focused domain.

    Completeness5/5

    The tool surface is complete for the ECB data domain, offering full lifecycle coverage: discovery (search_datasets, explain_dataset), retrieval (get_* tools for key datasets), and utility (convert_currency for derived calculations). There are no obvious gaps—agents can find, understand, and query all major ECB data types without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Macro economic intelligence MCP — 13 tools powered by 86 FRED series + ECB data covering Fed rates, inflation (CPI/PCE), yield curve, GDP, recession probability, and regime classification. Every response ES256K signed.
      1
      -
    • A
      license
      A
      quality
      B
      maintenance
      Connect your ads, shop, analytics, social, CRM and finance platforms once, then let Claude, ChatGPT, Cursor or any MCP client read, join and explain your numbers. Public statistics from the World Bank, IMF, Eurostat, OECD, WHO and SEC filings come as context, searchable and chartable from the same tools. Read-only by design, every number carries its source.
      57
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides access to European Central Bank statistical data through SDMX data flows, enabling querying and listing of data flows via natural language or direct tool calls.
      67 npm
      MIT