Skip to main content
Glama

@theyahia/cbr-mcp

Servidor MCP para la API del Banco Central de Rusia: tipos de cambio, tipo de interés clave, metales preciosos, conversión. Sin autorización, funciona listo para usar.

npm License: MIT

Parte de la serie Russian API MCP (50 servidores) por @theYahia.

Instalación

Claude Desktop

Añada a claude_desktop_config.json:

{
  "mcpServers": {
    "cbr": {
      "command": "npx",
      "args": ["-y", "@theyahia/cbr-mcp"]
    }
  }
}

Claude Code

claude mcp add cbr -- npx -y @theyahia/cbr-mcp

VS Code / Cursor

Añada a .vscode/mcp.json:

{
  "servers": {
    "cbr": {
      "command": "npx",
      "args": ["-y", "@theyahia/cbr-mcp"]
    }
  }
}

Windsurf

Añada en la configuración de MCP Toolkit:

{
  "mcpServers": {
    "cbr": {
      "command": "npx",
      "args": ["-y", "@theyahia/cbr-mcp"]
    }
  }
}

La autorización no es necesaria — la API del Banco Central de Rusia es totalmente abierta.

Related MCP server: mcp-nbp-pl

Herramientas (7)

Herramienta

Descripción

get_daily_rates

Todos los tipos de cambio del Banco Central de Rusia en la fecha especificada

get_currency_rate

Tipo de cambio de una moneda concreta frente al rublo con la variación diaria

get_rate_dynamics

Dinámica del tipo de cambio de una moneda durante un período (serie + min/max/promedio, variación)

get_key_rate

Tipo de interés clave actual del Banco Central de Rusia y la fecha de su entrada en vigor

get_key_rate_history

Historial de cambios del tipo de interés clave durante un período

get_precious_metals

Precios de contabilidad de oro, plata, platino y paladio (compra/venta)

convert_currency

Conversión de un importe de una moneda a otra mediante el tipo de cambio del Banco Central

Características

  • Fines de semana y festivos. Si en la fecha solicitada no se publicaron tipos de cambio (día no hábil), se devuelven los datos del día hábil disponible más cercano con la marca note.

  • Tolerancia a fallos. La fuente principal de tipos de cambio es el espejo cbr-xml-daily.ru; cuando no está disponible, se utiliza el sitio oficial cbr.ru (XML_daily.asp) como fallback.

  • Fuentes de datos: tipos de cambio — cbr-xml-daily.ru + cbr.ru/scripts/XML_daily.asp; dinámica — cbr.ru/scripts/XML_dynamic.asp; tipo de interés clave — cbr.ru/hd_base/KeyRate; metales — cbr.ru/scripts/xml_metall.asp.

Ejemplos de solicitudes

Какой курс доллара сегодня?
Переведи 1000 USD в евро
Как менялся курс доллара с 1 по 23 июня?
Какая ключевая ставка ЦБ и с какого числа она действует?
Покажи историю ключевой ставки за последний год
Какие цены на золото и серебро?
Покажи курсы валют на 10 января 2025

Parte de la serie Russian API MCP

MCP

Estado

Descripción

@metarebalance/dadata-mcp

✅ listo

Direcciones, empresas, bancos, teléfonos

@theyahia/cbr-mcp

✅ listo

Tipos de cambio, tipo de interés clave

@theyahia/yookassa-mcp

📅 próximamente

Pagos, reembolsos, recibos 54-ФЗ

@theyahia/moysklad-mcp

📅 próximamente

Almacén, pedidos, contrapartes

...

📅

+46 servidores — lista completa

Desarrollo

npm install
npm run build      # компиляция TypeScript → dist/
npm run lint       # eslint
npm test           # vitest (юнит-тесты парсеров на офлайн-фикстурах)
npm run dev        # запуск из исходников через tsx

Las pruebas no acceden a la red — los analizadores se verifican con respuestas API guardadas en test/fixtures/. El historial de cambios está en CHANGELOG.md.

Licencia

MIT

Available Tools

7 tools
convert_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

    A3.7/5.0

    Scored across 7 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Central 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.
      5
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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