T-Invest MCP Server
The T-Invest MCP Server provides access to the T-Investments brokerage API for LLM clients, enabling account management, market data retrieval, analytics, and optional trading operations.
Account Management
Retrieve brokerage accounts, portfolio, and current positions (cash, securities, futures)
Check margin attributes, withdrawal limits, and user profile info
Calculate maximum lots available for buy/sell at a given price
Market Data
Fetch current prices for up to 100 tickers
Retrieve historical OHLCV candlestick data (1min to monthly intervals)
View the order book (depth 1–50), trading statuses, and exchange schedules
Analytics
Fundamental: P/E, ROE, EBITDA, dividend calendars, bond coupon schedules, analyst consensus forecasts
Technical: Bollinger Bands (BB), EMA, RSI, MACD, SMA indicators; trading signals filtered by ticker, direction, or date
Operations History
Query transaction history (trades, dividends, commissions) for a given account and date range
Trading & Order Management (disabled in read-only mode)
Place market, limit, stop-loss, take-profit, or stop-limit orders
Cancel active exchange or stop orders; view all active orders
Security
Read-only mode (
APP_T_INVEST_READONLY=true) is enabled by default, blocking all trading and transfer operationsAll write operations require explicit
confirm: trueto prevent accidental actions
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@T-Invest MCP Server show my portfolio holdings and the current prices for SBER"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| — | List of brokerage accounts |
| — | List of bank accounts |
| — | User profile (tariff, qualified investor status) |
| — | API limits (requests/min, streams) |
|
| Portfolio by account with ticker filtering |
|
| Account positions (cash, securities, futures) |
|
| Withdrawal limits |
|
| Margin attributes (liquid portfolio, initial margin) |
|
| Additional account metrics |
|
| Top up a brokerage account from a bank account |
|
| Transfer between brokerage accounts |
Analytics and Tools
Tool | Parameters | Description |
|
| Fundamental indicators: P/E, ROE, EBITDA, etc. (up to 100 tickers) |
|
| Current market prices (up to 100 tickers) |
|
| Historical OHLCV candles (1min, 5min, 15min, hour, day, week, month) |
|
| Dividend calendar (up to 50 tickers) |
|
| Bond coupon payments (up to 50 tickers) |
|
| Analyst consensus forecasts (up to 50 tickers) |
|
| Order book (depth 1–50, default 10) |
|
| Trading status by ticker (up to 50) |
|
| Trading schedule (default MOEX) |
|
| Technical analysis: BB, EMA, RSI, MACD, SMA |
|
| Trading signals |
|
| Maximum number of lots for buy/sell |
Operation History
Tool | Parameters | Description |
|
| Operation history: trades, dividends, commissions |
Trading Operations
Tool | Parameters | Description |
|
| Active exchange orders |
|
| Place an order (buy/sell) |
|
| Cancel an exchange order |
|
| Active stop orders |
|
| Place a stop order |
|
| Cancel a stop order |
* — required parameter, ? — optional
Workflow: the agent first calls
get_accounts, remembers theaccountId, and uses it in subsequent requests.
Related MCP server: t-invest-mcp
Environment Variables
Variable | Required | Description |
| yes | T-Invest API URL |
| yes | API token (get it here) |
| no |
|
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:
Use
APP_T_INVEST_READONLY=trueby 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.Disable
READONLYonly 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.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".
Store the token only in environment variables or a secret manager. Do not copy it directly into
claude_desktop_config.jsonif 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.Use only HTTPS URLs for
APP_T_INVEST_BASE_URL. The server will refuse to start withhttp://— this is intentional.Never commit
.envor paste the token into an issue/PR/chat. Check that.gitignorecovers.envand*.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 tofalse) 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-serverDocker
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-serverFrom source
npm install
npm run build
npm startDisclaimer
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 toolscancel_orderADestructive
Отменить биржевую заявку в Т-Инвестициях (требуется confirm: true для исполнения)
Inputs: accountId (required), orderId (required), confirm.
cancel_stop_orderADestructive
Отменить стоп-заявку в Т-Инвестициях (требуется confirm: true)
Inputs: accountId (required), stopOrderId (required), confirm.
get_accountsARead-only
Получить список счетов пользователя в Т-Инвестициях
Inputs: no named parameters.
get_asset_fundamentalsARead-only
Получить фундаментальные показатели компаний по тикерам
Inputs: tickers (required).
get_bond_couponsARead-only
Получить расписание купонных выплат по облигациям из Т-Инвестиций
Inputs: tickers (required), from, to.
get_candlesBRead-only
Получить исторические свечи (OHLCV) по тикеру из Т-Инвестиций
Inputs: ticker (required), from (required), to (required), interval.
get_consensus_forecastsARead-only
Получить консенсус-прогнозы аналитиков по тикерам из Т-Инвестиций
Inputs: tickers (required).
get_dividendsARead-only
Получить дивидендные выплаты по тикерам из Т-Инвестиций
Inputs: tickers (required), from, to.
get_last_pricesBRead-only
Получить текущие рыночные цены по тикерам в Т-Инвестициях
Inputs: tickers (required).
get_margin_attributesARead-only
Получить маржинальные атрибуты счёта (ликвидный портфель, начальная маржа) из Т-Инвестиций
Inputs: accountId (required).
get_max_lotsARead-only
Рассчитать максимальное количество лотов для покупки/продажи в Т-Инвестициях
Inputs: accountId (required), ticker (required), price.
get_operationsBRead-only
Получить историю операций по счёту в Т-Инвестициях
Inputs: accountId (required), from, to, limit.
get_order_bookBRead-only
Получить стакан заявок (биржевой стакан) по тикеру из Т-Инвестиций
Inputs: ticker (required), depth.
get_ordersARead-only
Получить активные биржевые заявки по счёту в Т-Инвестициях
Inputs: accountId (required).
get_portfolioBRead-only
Получить портфель клиента в Т-Инвестициях
Inputs: accountId (required), tickers.
get_positionsBRead-only
Получить позиции счёта (деньги, ценные бумаги, фьючерсы) из Т-Инвестиций
Inputs: accountId (required).
get_signalsCRead-only
Получить торговые сигналы из Т-Инвестиций
Inputs: tickers, from, to, direction, +1 more.
get_stop_ordersBRead-only
Получить активные стоп-заявки по счёту из Т-Инвестиций
Inputs: accountId (required).
get_tech_analysisBRead-only
Получить технический анализ (BB, EMA, RSI, MACD, SMA) по тикеру из Т-Инвестиций
Inputs: ticker (required), indicator (required), from (required), to (required), +2 more.
get_trading_schedulesBRead-only
Получить расписание торгов на бирже из Т-Инвестиций
Inputs: from (required), to (required), exchange.
get_trading_statusBRead-only
Получить статус торгов по тикеру из Т-Инвестиций
Inputs: tickers (required).
get_user_infoARead-only
Получить информацию о профиле пользователя в Т-Инвестициях (тариф, статус квал. инвестора)
Inputs: no named parameters.
get_withdraw_limitsBRead-only
Получить доступные лимиты вывода средств со счёта в Т-Инвестициях
Inputs: accountId (required).
post_orderADestructive
Выставить биржевую заявку в Т-Инвестициях (требуется подтверждение: сначала вызовите без confirm, затем с confirm: true)
Inputs: accountId (required), ticker (required), direction (required), quantity (required), +3 more.
post_stop_orderADestructive
Выставить стоп-заявку в Т-Инвестициях (требуется 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
Scored across 25 tools
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).
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.
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.
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
Related MCP Connectors
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Agentic brokerage access to a US brokerage account: quotes, orders, positions, cash and documents.
Unified financial infrastructure connecting AI agents directly to trade live/demo brokerage accounts, Web3 non-custodial wallets, real-time market data across equities, ETFs, crypto, forex, options, DeFi swaps, and prediction markets, institutional research feeds, and algorithmic strategy backtesters.
Licensed Borsa Istanbul (BIST) data for AI assistants: live or 15-minute delayed prices, OHLCV bars from 1 minute to monthly, financial statements, ratios, KAP disclosures, indices and sectors, indicator backtests and portfolio tracking for 600+ Turkish stocks. OAuth sign-in with an istfin subscription. Never places orders.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.232MIT
- AlicenseAqualityDmaintenanceEnables natural language interaction with your T-Invest brokerage account for portfolio analysis, dividend tracking, and optional trading with safety confirmations.2030 npm3Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables 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-
- AlicenseAqualityCmaintenanceEnables 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.7MIT