Skip to main content
Glama
nonnname

T-Invest MCP Server

by nonnname

T-Invest MCP Server

Claudeやその他のLLMクライアントからT-Invest (Tinkoff Investments) APIを操作するためのMCPサーバーです。

Node.js版 t-invest-mcp-server のポートです。

ツール (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?

銀行口座から証券口座への入金

currency_transfer

fromAccountId, toAccountId, amount*, currency?

証券口座間の資金移動

分析およびツール

ツール

パラメータ

説明

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?

注文の発注(買い/売り)

cancel_order

accountId, orderId

注文のキャンセル

get_stop_orders

accountId*

アクティブなストップ注文

post_stop_order

accountId, ticker, direction, quantity, orderType, stopPrice, limitPrice?, expirationType?, expireDate?

ストップ注文の発注

cancel_stop_order

accountId, stopOrderId

ストップ注文のキャンセル

* — 必須パラメータ, ? — オプションパラメータ

ワークフロー: エージェントはまず get_accounts を呼び出し、accountId を記憶して後続のリクエストで使用します。

Related MCP server: IBKR TWS MCP Server

環境変数

変数

必須

説明

APP_T_INVEST_BASE_URL

はい

T-Invest APIのURL

APP_T_INVEST_TOKEN

はい

APIトークン (取得はこちら)

APP_T_INVEST_READONLY

いいえ

true — 読み取り専用モード(取引操作は無効)

本番環境URL: https://invest-public-api.tinkoff.ru/rest/ サンドボックスURL: https://sandbox-invest-public-api.tinkoff.ru/rest/

セキュリティ

このサーバーはAPIを通じて実際の資金を扱います。リスクを大幅に軽減するためのいくつかのルールがあります:

  1. デフォルトで APP_T_INVEST_READONLY=true を使用してください。 このモードでは読み取り専用ツールのみが登録され、資金を動かす可能性のある6つの操作(post_order, cancel_order, post_stop_order, cancel_stop_order, pay_in, currency_transfer)はLLMから一切利用できません。これは分析、レポート、ポートフォリオ監視には十分です。

  2. READONLY の解除は慎重に行ってください。 LLMが呼び出すいかなる取引操作も取り消し不可能です。取引の確認はMCPクライアントに委ねられています(Claude Desktopはツール呼び出しの前にユーザーに確認を求めます)が、これは最後の防衛線であり、最初のものではありません。アシスタントを通じて取引を行う予定がない場合は、その権限を与えないでください。

  3. developer.tbank.ru にて、最小限の権限を持つ個別のトークンを作成してください。 取引が不要な場合は読み取り専用トークンを使用してください。「念のため」という理由でフル権限を持つメインのトークンを使用しないでください。

  4. トークンは環境変数またはシークレットマネージャーにのみ保存してください。 ファイルがクラウドバックアップ、Git、共有マシンに同期される可能性がある場合、claude_desktop_config.json に直接コピーしないでください。macOSでは、設定ファイル内のトークンはユーザーのすべてのプロセスから参照可能です。

  5. APP_T_INVEST_BASE_URL には HTTPS URL のみを使用してください。 サーバーは http:// での起動を意図的に拒否します。

  6. .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-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

免責事項

このプロジェクトは非公式のツールであり、T-Bank (Tinkoff) とは一切関係ありません。サーバーはT-Investの公開APIを通じて金融データおよび取引操作と対話します。ユーザーは自身の行動に対して全責任を負うものとします。株式取引には資金を失うリスクが伴います。

ライセンス

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