Ecb Mcp

io.github.scka-de由 GitHub 帳號 scka-de 發布v0.1.0更新於 Oct 24, 2026

ECB data for AI agents — rates, yields, inflation, money supply, and 100+ datasets. No API key.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

讓助理不必懂 SDMX 就能查詢歐洲央行即時統計資料——匯率、政策利率、殖利率、通膨與貨幣供給。

可以做什麼
包裝歐洲央行資料入口網的 SDMX API,把自然語言問題轉成正確的序列鍵查詢。工具涵蓋歐元參考匯率、歐洲央行關鍵利率、歐元區政府公債殖利率曲線、HICP 通膨、貨幣總計(M1/M2/M3),以及包含經歐元三角換算的交叉匯率換算。也可用關鍵字搜尋 100 多個歐洲央行資料集,並說明資料集的維度與有效值,以便查詢其他資料集。
適用情境
當助理需要歐元區與歐洲央行的即時或歷史經濟數據時適用,例如匯率、政策利率歷史、公債殖利率、各國通膨比較或貨幣供給趨勢,也適合在不學 SDMX 鍵的情況下探索資料集。
執行需求
透過 stdio 在本機執行,通常使用 npx ecb-mcp,需要安裝 Node.js。不需要 API 金鑰、註冊或帳號。需要能連線到歐洲央行資料入口網 API 的網路。另有選用環境變數 ECB_API_URL(API 基礎網址)與 DEBUG(將除錯記錄輸出到 stderr),但都不是必要。
安裝前請注意
唯讀:這些工具只抓取歐洲央行資料,不會寫入、傳送或刪除任何內容。查詢內容會送到公開的歐洲央行資料入口網 API,因此問題對該第三方可見。若設定 ECB_API_URL,可把請求導向其他主機,因此只在你信任該代理時才修改。不會要求任何憑證或密鑰。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ecb Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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.

Quick Start

Add to your MCP client config:

json
{  "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 VariableDefaultDescription
ECB_API_URLhttps://data-api.ecb.europa.eu/serviceAPI base URL. Only change this if you're proxying the ECB API.
DEBUG—Set to any value to enable debug logging to stderr.

Development

bash
git clone https://github.com/scka-de/ecb-mcp.gitcd ecb-mcpnpm installnpm 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 modenpm 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

來源:README.md,提交 bc50c66

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分