cbr-mcp
@theyahia/cbr-mcp
用于 API Центрального Банка РФ 的 MCP 服务器 — 货币汇率、关键利率、贵金属、货币兑换。无需授权,开箱即用。
属于 Russian API MCP 系列的一部分(50 个服务器),作者 @theYahia。
安装
Claude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"cbr": {
"command": "npx",
"args": ["-y", "@theyahia/cbr-mcp"]
}
}
}Claude Code
claude mcp add cbr -- npx -y @theyahia/cbr-mcpVS Code / Cursor
添加到 .vscode/mcp.json:
{
"servers": {
"cbr": {
"command": "npx",
"args": ["-y", "@theyahia/cbr-mcp"]
}
}
}Windsurf
添加到 MCP Toolkit 设置:
{
"mcpServers": {
"cbr": {
"command": "npx",
"args": ["-y", "@theyahia/cbr-mcp"]
}
}
}授权不是必需的 — API ЦБ РФ 完全开放。
Related MCP server: mcp-nbp-pl
工具(7)
工具 | 描述 |
| 指定日期的 ЦБ РФ 全部货币汇率 |
| 指定货币兑卢布的汇率及当日变动 |
| 一段时期内货币汇率动态(序列 + min/max/avg、变动) |
| ЦБ РФ 当前关键利率及其生效日期 |
| 一段时期内关键利率变动历史 |
| 黄金、白银、铂金、钯金的记账价格(买入/卖出) |
| 通过 ЦБ 汇率将金额从一种货币兑换为另一种货币 |
特点
周末和节假日。 如果所请求日期没有发布汇率(周末/节假日),则返回最近一个可用工作日的数据,并标注
note。容错性。 汇率的主要来源是镜像
cbr-xml-daily.ru;当该镜像不可用时,使用官方cbr.ru(XML_daily.asp)作为后备。数据来源: 汇率 —
cbr-xml-daily.ru+cbr.ru/scripts/XML_daily.asp;动态 —cbr.ru/scripts/XML_dynamic.asp;关键利率 —cbr.ru/hd_base/KeyRate;贵金属 —cbr.ru/scripts/xml_metall.asp。
请求示例
Какой курс доллара сегодня?Переведи 1000 USD в евроКак менялся курс доллара с 1 по 23 июня?Какая ключевая ставка ЦБ и с какого числа она действует?Покажи историю ключевой ставки за последний годКакие цены на золото и серебро?Покажи курсы валют на 10 января 2025Russian API MCP 系列的一部分
MCP | 状态 | 描述 |
✅ 已就绪 | 地址、公司、银行、电话 | |
✅ 已就绪 | 货币汇率、关键利率 | |
@theyahia/yookassa-mcp | 📅 即将推出 | 支付、退款、54-ФЗ 收据 |
@theyahia/moysklad-mcp | 📅 即将推出 | 库存、订单、交易对手 |
... | 📅 | +46 个服务器 — 完整列表 |
开发
npm install
npm run build # компиляция TypeScript → dist/
npm run lint # eslint
npm test # vitest (юнит-тесты парсеров на офлайн-фикстурах)
npm run dev # запуск из исходников через tsx测试不会访问网络 — 解析器通过 test/fixtures/ 中保存的 API 响应进行验证。
变更历史见 CHANGELOG.md。
许可证
MIT
Available Tools
7 toolsconvert_currencyA
Конвертация суммы из одной валюты в другую через курс ЦБ РФ.
Inputs: amount (required), from_currency (required), date, to_currency.
get_currency_rateB
Курс конкретной валюты к рублю с изменением за день.
Inputs: currency_code (required), date.
get_daily_ratesA
Все курсы валют ЦБ РФ на указанную дату (по умолчанию сегодня). Без авторизации.
Inputs: date.
get_key_rateA
Текущая ключевая ставка ЦБ РФ и дата вступления в силу.
Inputs: no named parameters.
get_key_rate_historyB
История изменений ключевой ставки ЦБ РФ за период.
Inputs: to_date, from_date.
get_precious_metalsB
Учётные цены ЦБ РФ на золото, серебро, платину, палладий (руб./грамм).
Inputs: date.
get_rate_dynamicsB
Динамика курса валюты к рублю за период (ряд значений + сводка: min/max/avg, изменение).
Inputs: to_date (required), from_date (required), currency_code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clear, distinct purposes: key rate, daily rates, single currency rate, dynamics, history, metals, and conversion. The only mild overlap is between get_daily_rates and get_currency_rate, but one returns all currencies and the other a specific currency with daily change. get_key_rate and get_key_rate_history are also distinguishable by current vs historical scope.
All tools use a consistent snake_case verb_noun pattern with get_ as the dominant verb. convert_currency breaks the get_ prefix but still follows the same verb_noun convention, so the naming is predictable and coherent.
Seven tools is well-scoped for a Central Bank of Russia rates server. Each tool covers a meaningful aspect of the domain without unnecessary proliferation or obvious redundancy.
The surface covers current and historical key rates, daily and specific currency rates, rate dynamics, metals prices, and currency conversion. Minor gaps exist, such as no explicit supported-currency list or a dedicated historical conversion endpoint, but these can be worked around with the existing daily rates and dynamics tools.
Maintenance
Related MCP Connectors
Live FX + official central-bank rates, 110+ sources. Hosted, keyless, nothing to install.
Unofficial access to CBRT/TCMB daily exchange rates: latest, history since 1996, conversion.
Exchange rates for about 150 currencies from central banks (ECB and others). Free, no key.
Central bank exchange rates and financial indicators via the OpenTickers API.
Related MCP Servers
- AlicenseAqualityCmaintenanceCentral Bank of Russia (CBR) data for AI agents — daily and historical currency rates, key rate, inflation, and macro statistics. Five typed MCP tools, in-memory TTL cache, MIT-licensed, no API key required.51MIT
- AlicenseNot gradedqualityCmaintenanceEnables access to National Bank of Poland (NBP) financial data, including exchange rates and other economic indicators, through the NBP Web API without requiring an API key.63 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables users to retrieve Bank of Israel public API data, including current representative exchange rates versus the Israeli Shekel and the policy interest rate, without an API key.93 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query the Russian central bank’s key-rate history and official exchange rates by currency, date, or date range through live keyless calls.MIT