Skip to main content
Glama
T-Invest MCP Server

T-Invest MCP Server

by nonnname

T-Invest MCP Server

MCP server for working with the T-Invest (Tinkoff Investments) API from Claude and other LLM clients.

A port of t-invest-mcp-server to Node.js.

Tools (30)

Account Management

Tool

Parameters

Description

get_accounts

—

List of brokerage accounts

get_bank_accounts

—

List of bank accounts

get_user_info

—

User profile (tariff, qualified investor status)

get_user_tariff

—

API limits (requests/min, streams)

get_portfolio

accountId*, tickers?

Portfolio by account with ticker filtering

get_positions

accountId*

Account positions (cash, securities, futures)

get_withdraw_limits

accountId*

Withdrawal limits

get_margin_attributes

accountId*

Margin attributes (liquid portfolio, initial margin)

get_account_values

accountIds*

Additional account metrics

pay_in

fromAccountId, toAccountId, amount*, currency?

Top up a brokerage account from a bank account

currency_transfer

fromAccountId, toAccountId, amount*, currency?

Transfer between brokerage accounts

Analytics and Tools

Tool

Parameters

Description

get_asset_fundamentals

tickers*

Fundamental indicators: P/E, ROE, EBITDA, etc. (up to 100 tickers)

get_last_prices

tickers*

Current market prices (up to 100 tickers)

get_candles

ticker, from, to*, interval?

Historical OHLCV candles (1min, 5min, 15min, hour, day, week, month)

get_dividends

tickers*, from?, to?

Dividend calendar (up to 50 tickers)

get_bond_coupons

tickers*, from?, to?

Bond coupon payments (up to 50 tickers)

get_consensus_forecasts

tickers*

Analyst consensus forecasts (up to 50 tickers)

get_order_book

ticker*, depth?

Order book (depth 1–50, default 10)

get_trading_status

tickers*

Trading status by ticker (up to 50)

get_trading_schedules

exchange?, from, to

Trading schedule (default MOEX)

get_tech_analysis

ticker, indicator, from, to, interval?, length?

Technical analysis: BB, EMA, RSI, MACD, SMA

get_signals

tickers?, from?, to?, direction?, limit?

Trading signals

get_max_lots

accountId, ticker, price?

Maximum number of lots for buy/sell

Operation History

Tool

Parameters

Description

get_operations

accountId*, from?, to?, limit?

Operation history: trades, dividends, commissions

Trading Operations

Tool

Parameters

Description

get_orders

accountId*

Active exchange orders

post_order

accountId, ticker, direction, quantity, orderType*, price?

Place an order (buy/sell)

cancel_order

accountId, orderId

Cancel an exchange order

get_stop_orders

accountId*

Active stop orders

post_stop_order

accountId, ticker, direction, quantity, orderType, stopPrice, limitPrice?, expirationType?, expireDate?

Place a stop order

cancel_stop_order

accountId, stopOrderId

Cancel a stop order

* — required parameter, ? — optional

Workflow: the agent first calls get_accounts, remembers the accountId, and uses it in subsequent requests.

Related MCP server: t-invest-mcp

Environment Variables

Variable

Required

Description

APP_T_INVEST_BASE_URL

yes

T-Invest API URL

APP_T_INVEST_TOKEN

yes

API token (get it here)

APP_T_INVEST_READONLY

no

true — read-only mode (trading operations disabled)

Production URL: https://invest-public-api.tinkoff.ru/rest/ Sandbox URL: https://sandbox-invest-public-api.tinkoff.ru/rest/

Security

This server interacts with real money via the API. Several rules significantly reduce risk:

  1. Use APP_T_INVEST_READONLY=true by default. In this mode, only read-only tools are registered, and the 6 operations that can move your money (post_order, cancel_order, post_stop_order, cancel_stop_order, pay_in, currency_transfer) are completely unavailable to the LLM. This is sufficient for analytics, reports, and portfolio monitoring.

  2. Disable READONLY only consciously. Any trading operation triggered by the LLM is irreversible. Trade confirmation is delegated to the MCP client (Claude Desktop will ask you before calling the tool) — but this is the last line of defense, not the first. If you do not intend to trade via the assistant today, do not give it that capability.

  3. Create a separate token with minimal permissions at developer.tbank.ru. If trading is not needed, use a read-only token. Do not use your main token with full permissions "just in case".

  4. Store the token only in environment variables or a secret manager. Do not copy it directly into claude_desktop_config.json if the file is backed up to the cloud / git / shared machine. On macOS, the token from the config is visible to all processes of your user.

  5. Use only HTTPS URLs for APP_T_INVEST_BASE_URL. The server will refuse to start with http:// — this is intentional.

  6. Never commit .env or paste the token into an issue/PR/chat. Check that .gitignore covers .env and *.log.

The server itself does not log the token and does not include it in MCP responses, but any leakage via the environment, config, or shell history remains on the user's side.

Configuration in Claude Desktop

Configuration file: ~/Library/Application Support/Claude/claude_desktop_config.json

Via npx

{
  "mcpServers": {
    "t-invest": {
      "command": "npx",
      "args": ["t-invest-mcp-server"],
      "env": {
        "APP_T_INVEST_BASE_URL": "https://invest-public-api.tinkoff.ru/rest/",
        "APP_T_INVEST_TOKEN": "your_token",
        "APP_T_INVEST_READONLY": "true"
      }
    }
  }
}

Remove APP_T_INVEST_READONLY (or set to false) only if you consciously want to give the LLM the ability to place orders and transfer money.

Via Docker

{
  "mcpServers": {
    "t-invest": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "APP_T_INVEST_BASE_URL=https://invest-public-api.tinkoff.ru/rest/",
        "-e", "APP_T_INVEST_TOKEN=your_token",
        "-e", "APP_T_INVEST_READONLY=true",
        "t-invest-mcp-server"
      ]
    }
  }
}

Running

npx

APP_T_INVEST_BASE_URL=https://invest-public-api.tinkoff.ru/rest/ \
APP_T_INVEST_TOKEN=your_token \
npx t-invest-mcp-server

Docker

docker build -t t-invest-mcp-server .

docker run -i --rm \
  -e APP_T_INVEST_BASE_URL=https://invest-public-api.tinkoff.ru/rest/ \
  -e APP_T_INVEST_TOKEN=your_token \
  t-invest-mcp-server

From source

npm install
npm run build
npm start

Disclaimer

This project is an unofficial tool not affiliated with T-Bank (Tinkoff). The server interacts with financial data and trading operations via the public T-Invest API. Users are fully responsible for their actions. Stock market trading involves the risk of losing funds.

License

MIT

Available Tools

25 tools
cancel_orderA
Destructive

Отменить биржевую заявку в Т-Инвестициях (требуется confirm: true для исполнения)

Inputs: accountId (required), orderId (required), confirm.

cancel_stop_orderA
Destructive

Отменить стоп-заявку в Т-Инвестициях (требуется confirm: true)

Inputs: accountId (required), stopOrderId (required), confirm.

get_accountsA
Read-only

Получить список счетов пользователя в Т-Инвестициях

Inputs: no named parameters.

get_asset_fundamentalsA
Read-only

Получить фундаментальные показатели компаний по тикерам

Inputs: tickers (required).

get_bond_couponsA
Read-only

Получить расписание купонных выплат по облигациям из Т-Инвестиций

Inputs: tickers (required), from, to.

get_candlesB
Read-only

Получить исторические свечи (OHLCV) по тикеру из Т-Инвестиций

Inputs: ticker (required), from (required), to (required), interval.

get_consensus_forecastsA
Read-only

Получить консенсус-прогнозы аналитиков по тикерам из Т-Инвестиций

Inputs: tickers (required).

get_dividendsA
Read-only

Получить дивидендные выплаты по тикерам из Т-Инвестиций

Inputs: tickers (required), from, to.

get_last_pricesB
Read-only

Получить текущие рыночные цены по тикерам в Т-Инвестициях

Inputs: tickers (required).

get_margin_attributesA
Read-only

Получить маржинальные атрибуты счёта (ликвидный портфель, начальная маржа) из Т-Инвестиций

Inputs: accountId (required).

get_max_lotsA
Read-only

Рассчитать максимальное количество лотов для покупки/продажи в Т-Инвестициях

Inputs: accountId (required), ticker (required), price.

get_operationsB
Read-only

Получить историю операций по счёту в Т-Инвестициях

Inputs: accountId (required), from, to, limit.

get_order_bookB
Read-only

Получить стакан заявок (биржевой стакан) по тикеру из Т-Инвестиций

Inputs: ticker (required), depth.

get_ordersA
Read-only

Получить активные биржевые заявки по счёту в Т-Инвестициях

Inputs: accountId (required).

get_portfolioB
Read-only

Получить портфель клиента в Т-Инвестициях

Inputs: accountId (required), tickers.

get_positionsB
Read-only

Получить позиции счёта (деньги, ценные бумаги, фьючерсы) из Т-Инвестиций

Inputs: accountId (required).

get_signalsC
Read-only

Получить торговые сигналы из Т-Инвестиций

Inputs: tickers, from, to, direction, +1 more.

get_stop_ordersB
Read-only

Получить активные стоп-заявки по счёту из Т-Инвестиций

Inputs: accountId (required).

get_tech_analysisB
Read-only

Получить технический анализ (BB, EMA, RSI, MACD, SMA) по тикеру из Т-Инвестиций

Inputs: ticker (required), indicator (required), from (required), to (required), +2 more.

get_trading_schedulesB
Read-only

Получить расписание торгов на бирже из Т-Инвестиций

Inputs: from (required), to (required), exchange.

get_trading_statusB
Read-only

Получить статус торгов по тикеру из Т-Инвестиций

Inputs: tickers (required).

get_user_infoA
Read-only

Получить информацию о профиле пользователя в Т-Инвестициях (тариф, статус квал. инвестора)

Inputs: no named parameters.

get_withdraw_limitsB
Read-only

Получить доступные лимиты вывода средств со счёта в Т-Инвестициях

Inputs: accountId (required).

post_orderA
Destructive

Выставить биржевую заявку в Т-Инвестициях (требуется подтверждение: сначала вызовите без confirm, затем с confirm: true)

Inputs: accountId (required), ticker (required), direction (required), quantity (required), +3 more.

post_stop_orderA
Destructive

Выставить стоп-заявку в Т-Инвестициях (требуется confirm: true для исполнения)

Inputs: accountId (required), ticker (required), direction (required), quantity (required), +6 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources like orders, market data, or account information, with clear boundaries. However, some potential overlap exists between get_portfolio and get_positions, as both relate to account holdings, though their descriptions suggest different scopes (portfolio vs. detailed positions).

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, using 'get_' for retrieval, 'post_' for creation, and 'cancel_' for deletion. All names are in snake_case, making them predictable and easy to parse for agents.

    Tool Count3/5

    With 25 tools, the count is on the high side for an investment server, which may feel heavy and could overwhelm agents. While it covers many aspects of trading and market data, some consolidation might improve usability without sacrificing functionality.

    Completeness5/5

    The tool set provides comprehensive coverage for the investment domain, including CRUD operations for orders (post, cancel), extensive market data retrieval (prices, analysis, forecasts), and full account management (portfolio, operations, limits). No obvious gaps are present for core trading workflows.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Trading 212 investment accounts for portfolio tracking, account management, and real-time order execution. It supports managing investment pies, analyzing historical data, and monitoring market performance across multiple instrument types.
      23
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables natural language interaction with your T-Invest brokerage account for portfolio analysis, dividend tracking, and optional trading with safety confirmations.
      20
      30 npm
      3
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to research a T-Invest brokerage account, screen instruments, analyze portfolio yield and risk, build rebalance plans, and optionally preview or submit gated limit orders.
      1
      -
    • 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