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 "Install 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 Servershow 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: IBKR TWS MCP Server
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
Maintenance
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
- AlicenseBqualityAmaintenanceEnables 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.14550209MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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
- 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
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Trading212 brokerage accounts, including portfolio analysis, order placement (demo mode), and investment pie management.5MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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