mcp-cbr-rates
mcp-cbr-rates
Ein Model Context Protocol (MCP)-Server, der öffentliche Daten der Bank von Russland (Центральный банк РФ, CBR) — Währungskurse, Leitzins, Inflation und eine kompakte Makro-Übersicht — für KI-Agenten bereitstellt.
mcp-cbr-rates ist Teil der atomno-Familie von MCP-Servern, die sich auf das russische Fintech-Ökosystem konzentrieren. Es ist vollständig Open-Source, erfordert keine API-Schlüssel und basiert auf den offiziellen öffentlichen CBR-Endpunkten.
Funktionen
Fünf hochwertige MCP-Tools, jedes mit einem strikten Pydantic-Schema:
get_rate,history_rates,key_rate,inflation,statistics.Integrierter TTL-Cache (Time-To-Live): 1 Stunde für tägliche Kurse, 24 Stunden für historische Reihen, um die Quelle zu schonen.
Asynchroner
httpx-Transport mit automatischen Wiederholungsversuchen bei 5xx-Fehlern.Sicheres XML-Parsing via
defusedxml.50+ Unit-Tests mit
respx-gemocktem HTTP, ≥80 % Abdeckung.Keine Geheimnisse, keine Telemetrie, keine Tracker von Drittanbietern.
Related MCP server: ozon-mcp
Schnellstart
Installation aus dem Quellcode
git clone https://github.com/atomno-labs/mcp-cbr-rates.git
cd mcp-cbr-rates
pip install -e .
mcp-cbr-rates # starts the MCP server over stdioVerwendung mit Cursor
Fügen Sie Folgendes zu .cursor/mcp.json (oder Ihrer globalen ~/.cursor/mcp.json) hinzu:
{
"mcpServers": {
"cbr-rates": {
"command": "mcp-cbr-rates"
}
}
}Verwendung mit Claude Desktop
Fügen Sie dies zu claude_desktop_config.json hinzu:
{
"mcpServers": {
"cbr-rates": {
"command": "mcp-cbr-rates"
}
}
}Unter Windows befindet sich die Konfigurationsdatei unter
%APPDATA%\Claude\claude_desktop_config.json; unter macOS unter
~/Library/Application Support/Claude/claude_desktop_config.json.
Verwendung mit Claude Code
claude mcp add cbr-rates -- mcp-cbr-ratesTools
Name | Eingaben | Rückgaben |
|
|
|
|
|
|
|
|
|
|
|
|
| (keine) |
|
Beispiele in einfachem Englisch:
"Wie war der offizielle EUR-Kurs am 25. April 2024?" Tool:
get_rate(char_code="EUR", on_date="2024-04-25")
"Erstelle ein Diagramm des täglichen USD-RUB-Kurses über die letzten 90 Tage." Tool:
history_rates(char_code="USD", date_from=..., date_to=...)
"Gib mir den aktuellen Leitzins, USD/EUR/CNY und die Inflation auf einmal." Tool:
statistics()
Das history_rates-Fenster ist auf 366 Tage begrenzt; für längere Zeiträume rufen Sie das Tool wiederholt auf.
Konfiguration
Alle Einstellungen sind optional und werden aus Umgebungsvariablen gelesen:
Variable | Standardwert | Beschreibung |
|
| HTTP-Timeout in Sekunden für CBR-Aufrufe. |
|
| Cache-TTL für tägliche Kurse (Sekunden). |
|
| Cache-TTL für historische Reihen und SOAP-Antworten. |
|
| Standard-Python-Log-Level. |
Es gibt keine API-Schlüssel zu konfigurieren — alle hier verwendeten CBR-Endpunkte sind öffentlich.
Entwicklung
git clone https://github.com/atomno-labs/mcp-cbr-rates.git
cd mcp-cbr-rates
python -m venv .venv && source .venv/bin/activate # or .\.venv\Scripts\activate on Windows
pip install -e ".[dev]"
pytest --cov=src/mcp_cbr_ratesLayout:
apps/mcp-cbr-rates/
├── src/mcp_cbr_rates/
│ ├── server.py # FastMCP entry point, tool registration
│ ├── tools.py # high-level async tools with caching
│ ├── client.py # httpx wrapper around CBR XML / SOAP / HTML endpoints
│ ├── schemas.py # Pydantic v2 models for inputs & outputs
│ ├── cache.py # async TTL cache
│ ├── currency_codes.py # static ISO → CBR id map (with dynamic fallback)
│ └── errors.py # typed exception hierarchy
└── tests/ # respx-mocked unit tests + fixturesDatenquellen
https://www.cbr.ru/scripts/XML_daily.asp— tägliche Währungskurse.https://www.cbr.ru/scripts/XML_dynamic.asp— historische Währungsreihen.https://www.cbr.ru/scripts/XML_valFull.asp— Währungscode-Suche.https://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx— SOAP-Dienst für den CBR-Leitzins.https://www.cbr.ru/hd_base/infl/— monatliche Inflationstabelle im Jahresvergleich.
Alle Endpunkte sind schreibgeschützt und kostenlos.
Haftungsausschluss
Dieses Projekt ist in keiner Weise mit der Bank von Russland verbunden. Es ist ein inoffizieller Wrapper für öffentlich verfügbare Daten, der nach bestem Wissen und Gewissen erstellt wurde. Die Nutzung erfolgt auf eigene Gefahr; die Autoren lehnen jegliche Verantwortung für die Aktualität, Richtigkeit oder Anwendbarkeit der über diesen Server bereitgestellten Daten ab.
Sollten sich die HTML- oder XML-Schemata der CBR ändern, funktionieren einzelne Tools möglicherweise nicht mehr, bis dieses Paket aktualisiert wird. Bitte öffnen Sie ein Issue, wenn Sie eine Regression bemerken.
Lizenz
MIT — siehe LICENSE.
Maintenance
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
- AlicenseAqualityCmaintenanceEuropean financial data for AI agents — ECB interest rates, Eurostat inflation, GDP and unemployment by country. Zero API key needed.6641MIT
- AlicenseAqualityDmaintenanceozon-mcp is a knowledge-rich MCP server that turns the entire Ozon seller toolkit into 15 high-leverage tools. AI agents (Claude, Cursor, Cline, Continue, Goose, Zed, …) can search the API in Russian or English, drill into any of 466 methods with a fully-resolved JSON Schema, and execute calls with built-in safety guards. Subscription- aware, automatic pagination over all 4 cursor styles, retry/ba1516MIT
- AlicenseAqualityBmaintenanceMCP server for verifying Russian counterparties (legal entities and individual entrepreneurs) via public Federal Tax Service data: EGRUL/EGRIP, bankruptcy registry (EFRSB), Transparent Business, bailiff service (FSSP), and arbitration courts (KAD).815MIT
- FlicenseNot gradedqualityBmaintenanceRussian-market marketing & ops MCP toolkit. 7 unified servers for Yandex.Direct, Yandex.Webmaster, Google Search Console (RU), YouTube Data API, VK Wall, Telegram publishing, and Click.ru (Telegram Ads + VK Ads + Yandex.Direct unified). The only complete RU-platform bundle for AI agents.1
Related MCP Connectors
Live & historical FX rates for AI agents, from European Central Bank data. No API keys.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/atomno-mcp/mcp-cbr-rates'
If you have feedback or need assistance with the MCP directory API, please join our Discord server