Skip to main content
Glama
moex-mcp

moex-mcp

by cyberash-dev

MOEX MCP Server

MCP-сервер для доступа к данным Московской Биржи через ISS API.

Позволяет AI-ассистентам (Claude Code, Claude Desktop и др.) получать котировки, историю торгов, свечи, информацию о бумагах, индексах, валютных курсах и многое другое.

Требования

  • Node.js 18+

Related MCP server: nse-mcp

Установка

git clone <repo-url> moex-mcp
cd moex-mcp
npm install
npm run build

Подключение

Claude Code

claude mcp add moex node /path/to/moex-mcp/dist/index.js

Claude Desktop / ручная настройка

Добавить в конфигурацию MCP-серверов:

{
  "mcpServers": {
    "moex": {
      "command": "node",
      "args": ["/path/to/moex-mcp/dist/index.js"]
    }
  }
}

Инструменты (20 шт.)

Поиск и информация о бумагах

Инструмент

Описание

search_securities

Поиск бумаг по тикеру, названию или ISIN

get_security_info

Спецификация бумаги: ISIN, номинал, даты, площадки

get_security_indices

Индексы, в которые входит бумага

Рыночные данные

Инструмент

Описание

get_market_data

Текущие данные: цена, объём, bid/ask, изменение

get_orderbook

Стакан заявок

get_recent_trades

Последние сделки

get_candles

OHLCV-свечи (1, 10, 60 мин или дневные)

Исторические данные

Инструмент

Описание

get_history

Итоги торгов за период

get_history_date_range

Доступный диапазон дат для бумаги

get_historical_candles

Исторические свечи за период

Справочники

Инструмент

Описание

list_engines

Торговые системы (stock, currency, futures и др.)

list_markets

Рынки торговой системы

list_boards

Режимы торгов

Аналитика и статистика

Инструмент

Описание

get_index_analytics

Аналитика индексов, состав и веса (IMOEX, RTSI)

get_currency_rates

Валютные курсы: фиксинг MOEX, ЦБ РФ, индикативные

get_market_turnovers

Обороты по рынкам

get_bond_yield_curve

Кривая бескупонной доходности (ZCYC)

get_futures_open_positions

Открытые позиции по фьючерсам

Корпоративные действия

Инструмент

Описание

get_dividends

История дивидендных выплат

get_coupons

График купонных выплат по облигациям

Примеры использования

После подключения сервера можно обращаться к данным биржи на естественном языке:

  • «Найди акции Сбербанка»

  • «Покажи текущую цену GAZP»

  • «Дай историю торгов SBER за январь 2025»

  • «Какие дивиденды платил Лукойл?»

  • «Покажи состав индекса IMOEX»

  • «Курс доллара по фиксингу ЦБ»

  • «Свечи YNDX за последний месяц с интервалом 1 день»

Параметры по умолчанию

Большинство инструментов используют значения по умолчанию для удобства:

  • engine = "stock" (фондовый рынок)

  • market = "shares" (акции)

Для работы с другими рынками (облигации, валюта, фьючерсы) укажите параметры явно.

Аутентификация

Сервер работает без аутентификации. В этом режиме рыночные данные приходят с 15-минутной задержкой. Индексы всегда доступны в реальном времени.

Архитектура

Vertical Slice + Hexagonal (Ports & Adapters):

src/
├── index.ts                    # Composition root
├── server.ts                   # Регистрация MCP-инструментов
├── shared/
│   ├── ports/                  # Интерфейсы (порты)
│   ├── adapters/               # Реализации (адаптеры)
│   ├── pagination.ts           # Авто-пагинация
│   └── formatter.ts            # Форматирование для LLM
└── features/                   # 20 вертикальных слайсов
    └── <tool-name>/
        ├── schema.ts           # Zod-схема параметров
        ├── query.ts            # Бизнес-логика запроса
        └── handler.ts          # MCP-обработчик

Лицензия

MIT

Available Tools

20 tools
get_bond_yield_curveB

Get zero-coupon yield curve (ZCYC) data for bonds

Inputs: date, engine.

get_candlesB

Get OHLCV candlestick data for a security. Use interval=24 for daily candles, 60 for hourly, 10 or 1 for minutes.

Inputs: interval (required), security (required), from, till, +3 more.

get_couponsA

Get coupon payment schedule for a bond

Inputs: security (required).

get_currency_ratesB

Get currency exchange rates: MOEX fixing, Central Bank of Russia (CBRF), or indicative rates for futures

Inputs: type (required), date.

get_dividendsA

Get dividend payment history for a security

Inputs: security (required).

get_futures_open_positionsB

Get open interest / open positions for futures market

Inputs: date, asset, market.

get_historical_candlesB

Get historical OHLCV candles over a date range from the history endpoint

Inputs: interval (required), security (required), from, till, +3 more.

get_historyB

Get historical end-of-day trading data for a security over a date range. Defaults to stock/shares.

Inputs: security (required), from, till, board, +3 more.

get_history_date_rangeB

Get the available date range for historical data of a security

Inputs: security (required), board, engine, market.

get_index_analyticsB

Get MOEX index analytics and optionally index composition with weights (e.g. IMOEX, RTSI)

Inputs: date, index, tickers.

get_market_dataC

Get current market data for securities: price, volume, bid/ask, change. Defaults to stock/shares market.

Inputs: board, engine, market, security.

get_market_turnoversB

Get summary turnover statistics across MOEX markets

Inputs: date, engine, market.

get_orderbookB

Get current order book (bid/ask depth) for a security

Inputs: security (required), board, engine, market.

get_recent_tradesC

Get most recent trades for a security

Inputs: security (required), board, limit, engine, +1 more.

get_security_indicesA

Get all indices that contain a given security

Inputs: security (required).

get_security_infoA

Get full specification of a security: ISIN, face value, issue date, trading boards, etc.

Inputs: security (required).

list_boardsB

List trading boards for a given engine and market

Inputs: engine, market.

list_enginesA

List all available trading engines on MOEX (stock, currency, futures, etc.)

Inputs: no named parameters.

list_marketsB

List all markets available for a given trading engine

Inputs: engine.

search_securitiesA

Search for securities on MOEX by ticker, name, or ISIN

Inputs: query (required), limit, engine, market, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 20 tools

    Disambiguation3/5

    Most tools target distinct data types, but get_candles, get_historical_candles, and get_history overlap significantly. get_market_data also broadly overlaps with more specific quote and trade tools, requiring careful tool selection.

    Naming Consistency5/5

    All tools follow a consistent get_/list_/search_ verb + resource-object pattern with snake_case. Compound names like get_history_date_range still fit the established convention.

    Tool Count3/5

    With 20 tools, the surface is on the heavy side of the 16-25 borderline range. Most tools earn their place, but candle/history variants could plausibly be consolidated.

    Completeness4/5

    The set provides strong read-only coverage for MOEX: securities, market hierarchy, quotes, order books, trades, candles, history, indices, rates, bonds, futures positions, dividends, and coupons. Minor gaps like trading status or bulk batch endpoints exist but are not critical.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server providing financial data from Moscow Exchange and Bank of Russia, including quotes, bond metrics, interest rates, and portfolio analysis. Enables AI agents to analyze Russian financial markets through natural language.
      -
    • F
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to access National Stock Exchange of India (NSE) data, including live quotes, market status, indices, option chains, corporate actions, and historical data, through natural language.
      8
      24
      1
      -
    • A
      license
      B
      quality
      C
      maintenance
      Provides real-time market data, technical analysis, screeners, and backtesting for stocks, crypto, forex, and futures across global exchanges, enabling AI assistants to fetch quotes, indicators, and strategy results via natural language.
      37
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude to read Moscow Exchange market data and T-Invest brokerage account data, including quotes, candles, order books, dividends, portfolio, and operations. It is read-only and does not place orders.
      7
      MIT