T-Invest MCP Server
T-Invest MCP Server
Claudeやその他のLLMクライアントからT-Invest (Tinkoff Investments) APIを操作するためのMCPサーバーです。
Node.js版 t-invest-mcp-server のポートです。
ツール (30)
口座管理
ツール | パラメータ | 説明 |
| — | 証券口座リスト |
| — | 銀行口座リスト |
| — | ユーザープロフィール(料金プラン、適格投資家ステータス) |
| — | API制限(リクエスト数/分、ストリーム) |
|
| ティッカーでフィルタリングされた口座ポートフォリオ |
|
| 口座のポジション(現金、証券、先物) |
|
| 出金制限 |
|
| 証拠金属性(流動ポートフォリオ、初期証拠金) |
|
| 口座の追加指標 |
|
| 銀行口座から証券口座への入金 |
|
| 証券口座間の資金移動 |
分析およびツール
ツール | パラメータ | 説明 |
|
| ファンダメンタルズ指標: P/E, ROE, EBITDAなど(最大100ティッカー) |
|
| 現在の市場価格(最大100ティッカー) |
|
| OHLCVヒストリカルローソク足 (1min, 5min, 15min, hour, day, week, month) |
|
| 配当カレンダー(最大50ティッカー) |
|
| 債券のクーポン支払い(最大50ティッカー) |
|
| アナリストのコンセンサス予想(最大50ティッカー) |
|
| 板情報(深さ1~50、デフォルト10) |
|
| ティッカーごとの取引ステータス(最大50) |
|
| 取引スケジュール(デフォルトはMOEX) |
|
| テクニカル分析: BB, EMA, RSI, MACD, SMA |
|
| 取引シグナル |
|
| 売買可能な最大ロット数 |
取引履歴
ツール | パラメータ | 説明 |
|
| 取引履歴: 約定、配当、手数料 |
取引操作
ツール | パラメータ | 説明 |
|
| アクティブな注文 |
|
| 注文の発注(買い/売り) |
|
| 注文のキャンセル |
|
| アクティブなストップ注文 |
|
| ストップ注文の発注 |
|
| ストップ注文のキャンセル |
* — 必須パラメータ, ? — オプションパラメータ
ワークフロー: エージェントはまず
get_accountsを呼び出し、accountIdを記憶して後続のリクエストで使用します。
Related MCP server: IBKR TWS MCP Server
環境変数
変数 | 必須 | 説明 |
| はい | T-Invest APIのURL |
| はい | APIトークン (取得はこちら) |
| いいえ |
|
本番環境URL: https://invest-public-api.tinkoff.ru/rest/
サンドボックスURL: https://sandbox-invest-public-api.tinkoff.ru/rest/
セキュリティ
このサーバーはAPIを通じて実際の資金を扱います。リスクを大幅に軽減するためのいくつかのルールがあります:
デフォルトで
APP_T_INVEST_READONLY=trueを使用してください。 このモードでは読み取り専用ツールのみが登録され、資金を動かす可能性のある6つの操作(post_order,cancel_order,post_stop_order,cancel_stop_order,pay_in,currency_transfer)はLLMから一切利用できません。これは分析、レポート、ポートフォリオ監視には十分です。READONLYの解除は慎重に行ってください。 LLMが呼び出すいかなる取引操作も取り消し不可能です。取引の確認はMCPクライアントに委ねられています(Claude Desktopはツール呼び出しの前にユーザーに確認を求めます)が、これは最後の防衛線であり、最初のものではありません。アシスタントを通じて取引を行う予定がない場合は、その権限を与えないでください。developer.tbank.ru にて、最小限の権限を持つ個別のトークンを作成してください。 取引が不要な場合は読み取り専用トークンを使用してください。「念のため」という理由でフル権限を持つメインのトークンを使用しないでください。
トークンは環境変数またはシークレットマネージャーにのみ保存してください。 ファイルがクラウドバックアップ、Git、共有マシンに同期される可能性がある場合、
claude_desktop_config.jsonに直接コピーしないでください。macOSでは、設定ファイル内のトークンはユーザーのすべてのプロセスから参照可能です。APP_T_INVEST_BASE_URLには HTTPS URL のみを使用してください。 サーバーはhttp://での起動を意図的に拒否します。.envを決してコミットせず、トークンをIssue/PR/チャットに貼り付けないでください。.gitignoreが.envと*.logをカバーしていることを確認してください。
サーバー自体はトークンをログに記録したり、MCPのレスポンスに含めたりすることはありませんが、環境変数、設定ファイル、シェル履歴を通じた漏洩はユーザーの責任となります。
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_READONLY": "true"
}
}
}
}LLMに注文の発注や資金移動を許可したいと明確に意図する場合を除き、
APP_T_INVEST_READONLYを削除(またはfalseに設定)しないでください。
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"
]
}
}
}起動
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-serverソースコードから
npm install
npm run build
npm start免責事項
このプロジェクトは非公式のツールであり、T-Bank (Tinkoff) とは一切関係ありません。サーバーはT-Investの公開APIを通じて金融データおよび取引操作と対話します。ユーザーは自身の行動に対して全責任を負うものとします。株式取引には資金を失うリスクが伴います。
ライセンス
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