
mcp-cbr-rates
io.github.atomno-mcp由 GitHub 账号 atomno-mcp 发布v0.1.11更新于 Oct 24, 2026
CBR exchange rates and key rates for Russia. MCP tools for finance agents.
概览
一个本地 MCP 服务器,让助手以只读方式获取俄罗斯央行公开数据:汇率、关键利率、通胀和宏观快照。
- 可以做什么
- 按货币代码查询指定日期或最新日期的官方汇率,并获取某一日期区间内的每日汇率序列(单次最多 366 天)。查询某一日期区间的央行关键利率历史。按年份区间读取月度同比通胀数据。一次调用获取关键利率、美元/欧元/人民币汇率和通胀的合并宏观面板。
- 适用场景
- 适合助手需要俄罗斯卢布汇率、俄罗斯央行关键利率或俄罗斯通胀数据来做分析、报告或金融类问答,且不想申请 API 密钥的场景。
- 运行要求
- 以 Python 包形式通过 stdio 在本地运行(可用 pipx 或 uv 安装,或用 uvx 运行)。需要能访问俄罗斯央行公开端点的网络。无需 API 密钥或账号。可选环境变量可调整 HTTP 超时、缓存有效期和日志级别。
安装
在 SourceWeft 中
- 打开 控制台中的 mcp-cbr-rates,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-cbr-rates
A Model Context Protocol (MCP) server that exposes public Bank of Russia (Центральный банк РФ, CBR) data — currency quotes, key rate, inflation and a compact macro snapshot — to AI agents.
[License: MIT] [PyPI] [GitHub release] [Tests] [Coverage] [Python] [MCP] [Glama]
[mcp-cbr-rates MCP server]mcp-cbr-rates is part of the atomno family of MCP
servers focused on the Russian fintech ecosystem. It is fully open-source,
requires no API keys, and is built on top of the official public CBR
endpoints.
Features
- Five high-quality MCP tools, each with a strict Pydantic schema:
get_rate,history_rates,key_rate,inflation,statistics. - Built-in TTL (Time-To-Live) cache: 1 hour for daily quotes, 24 hours for historical series, to be polite to the source.
- Async
httpxtransport with automatic retries on 5xx errors. - Safe XML parsing via
defusedxml. - 50+ unit tests with
respx-mocked HTTP, ≥80 % coverage. - No secrets, no telemetry, no third-party trackers.
Quick start
Install from PyPI (recommended)
Or with uv:
Install from source
Use with Cursor
Add the following to .cursor/mcp.json (or your global ~/.cursor/mcp.json):
Use with Claude Desktop
Add to claude_desktop_config.json:
On Windows the config lives at
%APPDATA%\Claude\claude_desktop_config.json; on macOS at
~/Library/Application Support/Claude/claude_desktop_config.json.
Use with Claude Code
Tools
Examples in plain English:
"What was the official EUR rate on April 25, 2024?" Tool:
get_rate(char_code="EUR", on_date="2024-04-25")
"Plot the daily USD-RUB rate over the last 90 days." Tool:
history_rates(char_code="USD", date_from=..., date_to=...)
"Give me the latest key rate, USD/EUR/CNY, and inflation in one go." Tool:
statistics()
The history_rates window is capped at 366 days; for longer periods, call
the tool repeatedly.
Configuration
All settings are optional and read from environment variables:
Legacy CBR_* names are still accepted for compatibility, but new configs should use MCP_CBR_*.
There are no API keys to configure — all CBR endpoints used here are public.
Development
Layout:
Data sources
https://www.cbr.ru/scripts/XML_daily.asp— daily currency quotes.https://www.cbr.ru/scripts/XML_dynamic.asp— historical currency series.https://www.cbr.ru/scripts/XML_valFull.asp— currency code lookup.https://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx— SOAP service for the CBR key rate.https://www.cbr.ru/hd_base/infl/— monthly year-over-year inflation table.
All endpoints are read-only and free of charge.
Disclaimer
This project is not affiliated with the Bank of Russia in any way. It is an unofficial, best-effort wrapper around publicly available data. Use at your own risk; the authors disclaim any responsibility for the freshness, accuracy or applicability of the data delivered through this server.
If CBR's HTML or XML schemas change, individual tools may stop working until this package is updated. Please open an issue if you notice a regression.
License
MIT — see LICENSE.
来源:README.md,提交 e44fc40
工具
0版本历史
1- v0.1.11最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分