Skip to main content
Glama
nonnname

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: IBKR TWS MCP Server

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

Install Server
A
license - permissive license
A
quality
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    Enables AI assistants to interact with Interactive Brokers trading accounts to retrieve market data, check positions, and place trades. Includes pre-configured IB Gateway and handles OAuth authentication automatically.
    14
    550
    209
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables LLM clients to interact with Interactive Brokers Trader Workstation for automated trading workflows. Supports market data retrieval, portfolio management, and order execution through the TWS API.
    5
  • 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
    Not graded
    quality
    D
    maintenance
    Enables AI agents to manage Trading212 brokerage accounts, including portfolio analysis, order placement (demo mode), and investment pie management.
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect AI agents to bank accounts, transactions, balances, and investments.

  • Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.

  • US/HK markets — 163 tools: quotes, options, orders, fundamentals, screener, IPO, alerts, DCA & grid

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nonnname/t-invest-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server