Central Bank Rates MCP Server
中央银行汇率 MCP 服务器 — @allratestoday/central-bank-mcp
获取已公布的中央银行和税务机关汇率。
安装后,您的助手可以回答如下问题:
“今天 ECB 的官方 USD/EUR 汇率是多少?”
“这份三月发票我该用哪个 HMRC 汇率?”
“显示日本央行第一季度每一天的官方汇率。”
“比较每个公布官方 USD/LKR 汇率的中央银行给出的汇率。”
⚖️ 官方汇率 vs 市场中间价汇率
此服务器返回的一切都是官方公布的汇率:一旦机构公布即固定,并带有该机构自己的发布日期——这正是税务机关、审计机构和海关要求的数据。* 它不是实时市场汇率。有关实时中间价汇率(价格显示、兑换、任何应追踪市场的应用),请使用配套服务器 @allratestoday/mcp-server。两者可能相差几个百分点——请根据使用场景选择。方法论: allratestoday.com/official-rates-methodology。
Related MCP server: Banco Central do Brasil (BCB): Cotações
🚀 为什么选择这个服务器?
🏛️ 60 多个官方数据源——中央银行(ECB、Fed、BOJ、SNB、RBI 等)以及税务机关(HMRC、US Treasury 等) ,每个数据源都来自其自己发布的表格
📅 时间点正确性 —— 询问任意日期;周末和节假日会自动回滚至法律上有效的汇率,响应中会告知实际适用的发布日期
📊 跨银行对比 —— 一次调用即可获得一家机构对某种货币对的汇率,提供最低值/最高值/中位数及价差统计
🧮 诚实的推导 —— 银行未直接公布的货币对只会在该银行自己的表格内交叉计算,并标记为
derived;绝不会混淆不同银行小工具** —— 给模型使用更准确
🔌 与所有 MCP 兼容 — stdio 传输,MCP 1.x;Claude Code、Cursor、Claude Desktop、Windsurf 或任何泛用主机
🔑 获取您的 API 密钥
服务器如果没有有效的 ALLRATES_API_KEY 就不会启动。一个免费密钥覆盖至最新公布的表格——无需信用卡。指定日期和历史数据需要付费计划。
1.在 allratestoday.com/register 注册 —— 只需 30 秒
2. 验证您的电子邮件
3. 从仪表盘复制您的密钥(格式:art_live_xxxxx)
4. 在下面的配置中作为 ALLRATES_API_KEY 使用
📦 安装
# Run without installing (recommended)
npx -y @allratestoday/central-bank-mcp# Or install globally
npm install -g @allratestoday/central-bank-mcp
central-bank-mcp两条命令都会启动 stdio MCP 服务器并等待某个客户端连接 —— 您的 MCP 客户端已将把它们作为子进程启动。
🏁 各客户端快速配置
Claude Code
claude mcp add central-bank-rates -- npx -y @allratestoday/central-bank-mcp
claude mcp env central-bank-rates ALLRATES_API_KEY=art_live_xxxxx重启 Claude Code。通过询问验证: “您可以从哪些中央银行获取官方汇率?”
Cursor
编辑 ~/.cursor/mcp.json(或项目中的 .cursor/mcp.json):
{
"mcpServers": {
"central-bank-rates": {
"command": "npx",
"args": ["-y", "@allratestoday/central-bank-mcp"],
"env": {
"ALLRATES_API_KEY": "art_live_xxxxx"
}
}
}
}Claude Desktop
编辑 claude_desktop_config.json(设置 → 开发者 → 编辑配置),添加上面 Cursor 示例中相同的 mcpServers 块,然后重启 Claude Desktop。
🧰 工具
工具 | 功能 | 计划 |
| 所有机构支持的机构,包含代码、元数据、最新日期 | 免费 |
| 某家银行的公布表(或某一种货币对),获取最新汇率或指定日期 | 免费/付费 |
| 一种货币对逐日公布的官方汇率系列 | 付费,每覆盖一个月约计 1 次调用 |
| 同时在所有银行间比对一种货币对,并给出价差统计 | 免费 |
| 银行实际公布的日期(不含值) | 免费 |
🔒 隐私
只有请求参数和我们的 API 密钥会发送到 allratestoday.com——绝不会包含任何对话上下文。
📚 AllRatesToday 的更多内容
@allratestoday/mcp-server— 实时汇率 MCP 服务器
许可协议
MIT © AllRatesToday
Available Tools
6 toolscompare_official_ratesCompare one pair across every bankARead-only
Use this when the user wants one currency pair across ALL institutions at once — 'what does each central bank say USD/EUR is?', 'spread between official USD/LKR rates', 'which bank has the highest official rate for X?'. One call returns every covered bank's latest official rate for the pair plus spread stats { min, max, median, spread_bps } over fresh sources (stale quarterly publishers are returned but excluded from stats). Rates a bank doesn't publish directly are cross-computed within that bank's own table only — banks are never mixed. Methodology: https://allratestoday.com/official-rates-methodology/
Inputs: source (required), target (required).
get_official_rate_historyGet a bank's official rate historyARead-only
Use this for a date-by-date series of one bank's OFFICIAL rates — 'ECB USD rate for every day of 2025', 'how did the CBSL official rate move last quarter'. Returns one row per published date: { series: [{ date, rate, rate_type, derived, method }] }. Give either symbol (matches either side of the pair vs the bank's home currency) or a source+target pair. Defaults to the last year when from/to omitted. Paid plans only, and BILLED BY VOLUME: one API call per month of history covered (a year-long series costs ~12 calls) — keep ranges as narrow as the question needs. For publication dates without values (free) use get_publication_calendar.
Inputs: bank (required), to, from, source, +2 more.
get_official_ratesGet a bank's official published ratesARead-only
Use this for OFFICIAL rates a specific institution published — 'what is the ECB rate for USD?', 'Bank of Japan official rate on 2026-03-14', 'HMRC rate for invoicing'. These are the fixed rates in force for compliance, tax, customs, and accounting — NOT live market rates. Omit date for the newest published table; give date (paid plans) for the table in force on that day (weekends/holidays roll back to the last published date — the response's rate_date says which). Omit source/target for the bank's full table { rates: [{ base, quote, type, value }] }; give both for one pair — with an API key, pairs not directly published are cross-computed via the bank's own home currency and flagged derived; keyless serves only published pairs and their inverses. For live mid-market rates use the @allratestoday/mcp-server package instead.
Inputs: bank (required), date, source, target.
get_publication_calendarGet a bank's publication calendarARead-only
Use this to see WHICH dates a bank actually published a rate table — 'did the ECB publish on 2026-01-01?', 'how often does the US Treasury publish?'. Returns dates only, no rate values, so it is available on every plan (unlike history). Gaps reveal weekends, holidays, and weekly/quarterly publication cadence. Give ?year=YYYY or a from/to range; large ranges are capped and flagged truncated.
Inputs: bank (required), to, from, year.
list_central_banksList covered central banks & tax authoritiesARead-only
Call this FIRST when you need a bank code, or when the user asks 'which central banks do you cover?' or 'do you have rates from X?'. Returns { banks: [{ code, name, country, home_ccy, rate_types, latest date, ... }], disclaimer } for 130+ central banks and tax authorities (plus a composite) — central banks (ECB, Fed, BOJ, ...) plus tax authorities (HMRC, US Treasury, ...). The code field is what every other tool takes as its bank parameter. Cheap to call.
Inputs: no named parameters.
request_trial_keyRequest a trial API keyA
Self-issue an AllRatesToday API key with 100 lifetime calls, valid 7 days, with no account and no email. Use it when another tool answered "needs an API key" and the user wants a dated central-bank table, a history series, a cross-bank comparison or a publication calendar right now. The key is adopted by this server for the rest of the session and returned once — tell the user to put it in the MCP config as ALLRATES_API_KEY to keep it. Capped at 3 keys per IP per day. For a lasting key, register at https://allratestoday.com/register (free) or see https://allratestoday.com/pricing.
Inputs: agent, purpose. Returns: key, note, calls, adopted, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct axis: enumerating banks, fetching a bank's official table, fetching a per-date series, comparing across banks for one pair, and listing publication dates only. The descriptions explicitly disambiguate the riskiest overlaps (get_official_rates vs compare_official_rates, history vs calendar) and even steer users to a different package for live market rates.
All names follow a strict snake_case verb_noun pattern (list_central_banks, get_official_rates, get_official_rate_history, compare_official_rates, get_publication_calendar, request_trial_key). The single auth-related tool still fits the same convention, so there is no style drift.
Six tools is tight and well-scoped for a rates data server: one discovery tool, three rate-query tools at different granularity, one comparison aggregator, and one key-bootstrap tool. Nothing looks redundant or padded.
The core lifecycle is covered: discover banks, get latest/dated official tables, get history series, cross-bank comparison, and publication cadence, plus a way to obtain a key. Minor gaps remain — no tool to inspect key status/quota usage, no explicit currency-conversion or bulk multi-pair fetch, so an agent hitting billing limits must infer state from errors.
Maintenance
Related MCP Connectors
Live FX + official central-bank rates, 110+ sources. Hosted, keyless, nothing to install.
Official exchange rates from central banks: latest & historical rates plus currency conversion.
ExchangeRate MCP — wraps open.er-api.com (free, no auth)
Indicative fiat and crypto rates over MCP, paid per request via x402 at $0.0001/request.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceMCP server that provides real exchange-rate data from the European Central Bank, including latest rates, currency conversion, historical rates, and time series.-
- AlicenseNot gradedqualityDmaintenanceEnables querying official Brazilian Central Bank currency exchange rates and quotes through a read-only MCP tool, with pay-per-use prepaid credits.MIT
- 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.17109 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents and MCP clients to convert currency amounts, retrieve current, historical, and timeseries exchange rates, and list supported currencies from European Central Bank reference data.5MIT