@allratestoday/central-bank-mcp

中文文档
0.3.13发布于 2026/11/03MITTypeScriptES Module近 30 天下载 2089

MCP server for official central-bank and tax-authority exchange rates — let AI tools (Claude Code, Cursor, Claude Desktop) fetch published rates from 120+ institutions (ECB, Fed, HMRC, BOJ, ...) via the AllRatesToday API.

原始使用文档
文档目录16 节
  1. ⚖️ Official rates vs mid-market rates
  2. 🚀 Why this server?
  3. 🔑 Get your API key (free)
  4. 🔓 Keyless mode — what works with no setup
  5. 🧩 Easiest install: the Claude Code plugin
  6. ☁️ Hosted endpoint — nothing to install
  7. 📦 Installation
  8. 🏁 Quick setup per client
  9. Claude Code
  10. Cursor
  11. Claude Desktop
  12. 🧰 Tools
  13. 🔒 Privacy
  14. 📚 More from AllRatesToday
  15. 🔗 Links
  16. License

Central Bank Rates MCP Server — @allratestoday/central-bank-mcp

Website: https://allratestoday.com/central-bank-rates-api/ · Hosted endpoint (no install): https://allratestoday.com/api/mcp · Docs: https://allratestoday.com/mcp/

npm version npm downloads license MCP TypeScript Central Bank Mcp on AI Agents Listing

Give your AI assistant the official exchange rates that compliance, tax, and accounting actually require. A Model Context Protocol server that lets Claude Code, Cursor, Claude Desktop, Windsurf, and any MCP-compatible client fetch published central-bank and tax-authority rates from 122 central banks and 4 tax authorities — ECB, Fed, Bank of Japan, HMRC, US Treasury, and more — via the AllRatesToday API.

After installation, your assistant can answer questions like:

  • "What is the ECB's official USD/EUR rate today?"
  • "What HMRC rate should I use for this March invoice?"
  • "Show me the Bank of Japan's official rate for every day of Q1."
  • "Compare the official USD/LKR rate across every central bank that publishes one."

⚖️ Official rates vs mid-market rates

Everything this server returns is an official published rate: fixed once the institution publishes it, carrying that institution's own publication date — the number tax authorities, auditors, and customs require. It is not the live market rate. For live mid-market rates (price display, conversion, anything that should track the market), use the companion server @allratestoday/mcp-server. The two can diverge by several percent — pick by use case. Methodology: allratestoday.com/official-rates-methodology.

🚀 Why this server?

  • 🏛️ 122 central banks and 4 tax authorities — central banks (ECB, Fed, BOJ, SNB, RBI, …) plus tax authorities (HMRC, US Treasury, …), each served from its own published tables
  • 📅 Point-in-time correctness — ask for any date; weekends and holidays roll back to the rate legally in force, and the response tells you which publication date applied
  • 📊 Cross-bank comparison — one call returns every institution's rate for a pair, with min/max/median and spread stats
  • 🧮 Honest derivations — with an API key, pairs a bank doesn't publish directly are cross-computed only within that bank's own table and flagged derived; banks are never mixed. Keyless serves only published pairs and their inverses
  • 🔓 Works with no API key — installs and answers out of the box; the latest published table of every source is open
  • 🧰 Six focused tools — small surface, easy for the model to use correctly
  • 🔌 Works everywhere MCP does — stdio transport, MCP 1.x; Claude Code, Cursor, Claude Desktop, Windsurf, or any generic host

🔑 Get your API key (free)

A free key adds cross-bank comparison, cross-computed pairs and publication calendars — free, no credit card required. Dated (historical) tables and time series need a paid plan: free and trial keys get a 403 for them.

  1. Register at allratestoday.com/register — 30 seconds
  2. Verify your email
  3. Copy your key from the dashboard (format: art_live_xxxxx)
  4. Use it as ALLRATES_API_KEY in the configs below

Without one the server prints a short summary of keyless mode (below) on stderr and keeps running — it never exits, because an MCP server that exits breaks the host client's whole configuration.

🔓 Keyless mode — what works with no setup

Install it with no configuration at all and it starts, connects, and answers:

ToolKeylessWhat you get
list_central_banks✅Every covered institution (122 central banks, 4 tax authorities and the composite), from a catalogue bundled with the package (no coverage dates).
get_official_rates✅The latest published table of any source, or one published pair (or its inverse) from it, with the publisher's own rate_date. Cross pairs need a key.
get_official_rates with a date🔑One sentence explaining that dated tables need a paid plan.
get_official_rate_history🔑Same (paid plan).
compare_official_rates🔑One sentence explaining how to get a free key.
get_publication_calendar🔑Same.
request_trial_key✅Self-issues a 100-call, 7-day key with no account and adopts it for the session.

The keyless path reads the open, edge-cached /api/open/central-bank/{bank} endpoint (the exact attribution wording also ships in each response's attribution field).

Attribution. Keyless use requires a visible, followable link to AllRatesToday wherever the rates are shown (a footer, an about page, a README). With an API key it is appreciated but not required.

<a href="https://allratestoday.com">Exchange rates by AllRatesToday</a>

Markdown: Exchange rates by [AllRatesToday](https://allratestoday.com). Full wording: https://allratestoday.com/terms/#attribution.

🧩 Easiest install: the Claude Code plugin

If you use Claude Code, install the plugin instead of configuring this server by hand — it bundles both AllRatesToday MCP servers, two skills, and five slash commands (/rate, /convert, /official-rate, /fx-history, /add-currency-support):

/plugin marketplace add AllRates-Today/claude-code-plugin
/plugin install allratestoday@allratestoday

Everything below still applies for other MCP clients.

☁️ Hosted endpoint — nothing to install

The same six tools also run as a hosted Streamable HTTP MCP server, together with the five tools of the sibling AllRatesToday server — eleven in total on the hosted endpoint (this npm package itself exposes six). Paste the URL into any client that supports remote MCP — Claude.ai and Claude Desktop connectors, ChatGPT, Cursor, VS Code, Codex, Gemini CLI:

https://allratestoday.com/api/mcp
claude mcp add --transport http allratestoday https://allratestoday.com/api/mcp

Works keyless. With a key, send Authorization: Bearer art_live_… or, where the client only takes a URL, connect to https://allratestoday.com/api/mcp?api_key=art_live_…. Registry name: com.allratestoday/mcp. One-click Cursor / VS Code buttons: https://allratestoday.com/mcp/#hosted

📦 Installation

# Run without installing (recommended)
npx -y @allratestoday/central-bank-mcp
# Or install globally
npm install -g @allratestoday/central-bank-mcp
central-bank-mcp

Both commands launch the stdio MCP server and wait for a client to connect — your MCP client launches them as a subprocess.

🏁 Quick setup per client

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

Restart Claude Code. Verify by asking: "Which central banks can you fetch official rates from?"

Cursor

Edit ~/.cursor/mcp.json (or .cursor/mcp.json inside your project):

{
  "mcpServers": {
    "central-bank-rates": {
      "command": "npx",
      "args": ["-y", "@allratestoday/central-bank-mcp"],
      "env": {
        "ALLRATES_API_KEY": "art_live_xxxxx"
      }
    }
  }
}

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config) and add the same mcpServers block as the Cursor example above, then restart Claude Desktop.

🧰 Tools

ToolWhat it doesPlan
list_central_banksAll covered institutions with codes, metadata, latest dateFree (keyless: bundled catalogue)
get_official_ratesA bank's published table (or one pair), latest or for a given dateKeyless (latest) / Paid (dated)
get_official_rate_historyDate-by-date official series for one pairPaid, billed ~1 call per month covered
compare_official_ratesOne pair across every bank, with spread statsFree (key required)
get_publication_calendarDates a bank actually published (no values)Free (key required)
request_trial_keySelf-issue a 100-call, 7-day trial key (no account) and use it for the rest of the sessionKeyless, 3 per IP per day

🔒 Privacy

Only the request parameters and your API key ever reach allratestoday.com — never conversation context.

📚 More from AllRatesToday

License

MIT © AllRatesToday

版本与发布记录

@allratestoday/central-bank-mcp 共发布 20 个版本,首次发布于 2026/08/21;过去 12 个月发布了 20 个版本。

版本发布日期距今
0.3.13latest2026/11/035 天前
0.3.122026/11/016 天前
0.3.112026/10/2711 天前
0.3.102026/10/2711 天前
0.3.92026/10/2415 天前
0.3.82026/10/2217 天前

关于 @allratestoday/central-bank-mcp 的常见问题

@allratestoday/central-bank-mcp 是什么?

MCP server for official central-bank and tax-authority exchange rates — let AI tools (Claude Code, Cursor, Claude Desktop) fetch published rates from 120+ institutions (ECB, Fed, HMRC, BOJ, ...) via the AllRatesToday API.

如何安装 @allratestoday/central-bank-mcp?

在项目目录运行 npm install @allratestoday/central-bank-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 central-bank-mcp,可以用 npx central-bank-mcp 直接运行。

@allratestoday/central-bank-mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@allratestoday/central-bank-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@allratestoday/central-bank-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@allratestoday/central-bank-mcp 可以商用吗?

@allratestoday/central-bank-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@allratestoday/central-bank-mcp 的下载量有多少?

根据 npm 官方下载统计,@allratestoday/central-bank-mcp 在 2026/10/06 – 2026/11/04 这 30 天内被下载 2,089 次,日均约 70 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@allratestoday/central-bank-mcp 还在维护吗?

最新版本 0.3.13 发布于 2026/11/03(5 天前);至今共发布 20 个版本,其中过去 12 个月发布了 20 个;首次发布于 2026/08/21。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。