T-Invest MCP Server

T-Invest MCP Server

Enables interaction with the T-Invest (Tinkoff Investments) API to manage investment portfolios, access market analytics, and retrieve technical analysis data. It supports executing trading operations, including placing and canceling market or stop orders, with optional confirmation workflows.

Category
Visit Server

README

T-Invest MCP Server

MCP сервер для работы с API Т-Инвестиций (Тинькофф Инвестиции) из Claude и других LLM-клиентов.

Порт t-invest-mcp-server на Node.js.

Инструменты (30)

Управление счетами

Инструмент Параметры Описание
get_accounts Список брокерских счетов
get_bank_accounts Список банковских счетов
get_user_info Профиль пользователя (тариф, квал. инвестор)
get_user_tariff Лимиты API (запросы/мин, стримы)
get_portfolio accountId*, tickers? Портфель по счёту с фильтрацией по тикерам
get_positions accountId* Позиции счёта (деньги, ценные бумаги, фьючерсы)
get_withdraw_limits accountId* Лимиты вывода средств
get_margin_attributes accountId* Маржинальные атрибуты (ликвидный портфель, начальная маржа)
get_account_values accountIds* Дополнительные показатели счетов
pay_in fromAccountId, toAccountId, amount*, currency?, confirm? Пополнить брокерский счёт с банковского
currency_transfer fromAccountId, toAccountId, amount*, currency?, confirm? Перевод между брокерскими счетами

Аналитика и инструменты

Инструмент Параметры Описание
get_asset_fundamentals tickers* Фундаментальные показатели: P/E, ROE, EBITDA и др. (до 100 тикеров)
get_last_prices tickers* Текущие рыночные цены (до 100 тикеров)
get_candles ticker, from, to*, interval? Исторические свечи OHLCV (1min, 5min, 15min, hour, day, week, month)
get_dividends tickers*, from?, to? Дивидендный календарь (до 50 тикеров)
get_bond_coupons tickers*, from?, to? Купонные выплаты по облигациям (до 50 тикеров)
get_consensus_forecasts tickers* Консенсус-прогнозы аналитиков (до 50 тикеров)
get_order_book ticker*, depth? Стакан заявок (глубина 1–50, по умолчанию 10)
get_trading_status tickers* Статус торгов по тикерам (до 50)
get_trading_schedules exchange?, from, to Расписание торгов (по умолчанию MOEX)
get_tech_analysis ticker, indicator, from, to, interval?, length? Технический анализ: BB, EMA, RSI, MACD, SMA
get_signals tickers?, from?, to?, direction?, limit? Торговые сигналы
get_max_lots accountId, ticker, price? Максимальное количество лотов для покупки/продажи

История операций

Инструмент Параметры Описание
get_operations accountId*, from?, to?, limit? История операций: сделки, дивиденды, комиссии

Торговые операции

Инструмент Параметры Описание
get_orders accountId* Активные биржевые заявки
post_order accountId, ticker, direction, quantity, orderType*, price?, confirm? Выставить заявку (купить/продать)
cancel_order accountId, orderId, confirm? Отменить биржевую заявку
get_stop_orders accountId* Активные стоп-заявки
post_stop_order accountId, ticker, direction, quantity, orderType, stopPrice, limitPrice?, expirationType?, expireDate?, confirm? Выставить стоп-заявку
cancel_stop_order accountId, stopOrderId, confirm? Отменить стоп-заявку

* — обязательный параметр, ? — опциональный

Рабочий процесс: агент сначала вызывает get_accounts, запоминает accountId и использует его в последующих запросах.

Переменные окружения

Переменная Обязательная Описание
APP_T_INVEST_BASE_URL да URL API T-Invest
APP_T_INVEST_TOKEN да Токен API (получить)
APP_T_INVEST_CONFIRM_TRADES нет Подтверждение сделок: true (по умолчанию) — превью перед исполнением, false — исполнять сразу

URL для прода: https://invest-public-api.tinkoff.ru/rest/ URL для песочницы: https://sandbox-invest-public-api.tinkoff.ru/rest/

Подтверждение сделок

При APP_T_INVEST_CONFIRM_TRADES=true (по умолчанию) торговые инструменты (post_order, cancel_order, post_stop_order, cancel_stop_order, pay_in, currency_transfer) без параметра confirm: true возвращают только превью — агент показывает его пользователю и запрашивает подтверждение. Для исполнения нужно повторно вызвать инструмент с confirm: true.

При APP_T_INVEST_CONFIRM_TRADES=false операция исполняется сразу.

Настройка в Claude Desktop

Файл конфигурации: ~/Library/Application Support/Claude/claude_desktop_config.json

Через 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_CONFIRM_TRADES": "true"
      }
    }
  }
}

Через 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_CONFIRM_TRADES=true",
        "t-invest-mcp-server"
      ]
    }
  }
}

Запуск

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

Из исходников

npm install
npm run build
npm start

Лицензия

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured