Skip to main content
Glama
AllRates-Today

Central Bank Rates MCP Server

中央银行汇率 MCP 服务器 — @allratestoday/central-bank-mcp

npm version npm downloads ![license](https://img.shields.io/npm/l/@allratestoday/central-bank-mcp.svg MCP TypeScript

为您的 AI 助手提供合规、税务和会计实际所需的官方汇率。这是一个 Model Context Protocol 服务器,可让 Claude Code、Cursor、Claude Desktop、Windsurf 以及任何兼容 MCP 的客户端通过 AllRatesToday API 从 60 多家机构(ECB、Fed、Bank of Japan、HMRC、US Treasury 等)获取已公布的中央银行和税务机关汇率。

安装后,您的助手可以回答如下问题:

  • “今天 ECB 的官方 USD/EUR 汇率是多少?”

  • “这份三月发票我该用哪个 HMRC 汇率?”

  • “显示日本央行第一季度每一天的官方汇率。”

  • “比较每个公布官方 USD/LKR 汇率的中央银行给出的汇率。”

⚖️ 官方汇率 vs 市场中间价汇率

此服务器返回的一切都是官方公布的汇率:一旦机构公布即固定,并带有该机构自己的发布日期——这正是税务机关、审计机构和海关要求的数据。*不是实时市场汇率。有关实时中间价汇率(价格显示、兑换、任何应追踪市场的应用),请使用配套服务器 @allratestoday/mcp-server。两者可能相差几个百分点——请根据使用场景选择。方法论: allratestoday.com/official-rates-methodology

Related MCP server: Realtime Exchange Rate MCP Server

🚀 为什么选择这个服务器?

  • 🏛️ 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。

🧰 工具

工具

功能

计划

list_central_banks

所有机构支持的机构,包含代码、元数据、最新日期

免费

get_official_rates

某家银行的公布表(或某一种货币对),获取最新汇率或指定日期

免费/付费

get_official_rate_history

一种货币对逐日公布的官方汇率系列

付费,每覆盖一个月约计 1 次调用

compare_official_rates

同时在所有银行间比对一种货币对,并给出价差统计

免费

get_publication_calendar

银行实际公布的日期(不含值)

免费

🔒 隐私

只有请求参数和我们的 API 密钥会发送到 allratestoday.com——绝不会包含任何对话上下文。

📚 AllRatesToday 的更多内容

许可协议

MIT © AllRatesToday

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Real-time currency exchange rates and crypto prices via MCP. Convert between 60+ fiat currencies and 30+ cryptocurrencies with multi-source failover. No API keys needed for upstream data.
    15
    ISC
  • 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
    219
    MIT
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    MCP server that provides real exchange-rate data from the European Central Bank, including latest rates, currency conversion, historical rates, and time series.
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for accessing Norges Bank exchange rates and interest rates via SDMX data flows.
    8
    MIT

View all related MCP servers

Related MCP Connectors

  • ExchangeRate MCP — wraps open.er-api.com (free, no auth)

  • Live & historical FX rates for AI agents, from European Central Bank data. No API keys.

  • National Bank of Romania (Banca Naţională a României, BNR) FX reference rates MCP. Keyless.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AllRates-Today/central-bank-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server