
code-rabi/interactive-brokers-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
code-rabi/interactive-brokers-mcpは、[[T0]からインポートされたMCPサーバー候補です。
概要
code-rabi/interactive-brokers-mcpは、[[T0]からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
免責事項:これは非公式のコミュニティ開発MCPサーバーです 、そしてInteractive Brokersとは提携または支持されていません。これ ソフトウェアはアルファ状態にあり、完璧に動作しないかもしれません。
インタラクティブとの統合を提供するモデルコンテキストプロトコル(MCP)サーバー ブローカーの取引プラットフォーム。このサーバーはAIアシスタントが操作できるようにします IBアカウントで市場データを取得し、ポジションを確認し、取引を行うことができます。
🔒 セキュリティ通知
特徴
- インタラクティブブローカーAPI連携:アカウント管理、ポジション追跡、リアルタイム市場データ、注文管理(市場、指値、ストップ注文)を含む完全な取引機能
- Flexクエリサポート:Flexクエリを実行して口座明細、取引確認、過去のデータを取得します。クエリは自動的に記憶され、再利用しやすくなります
- 柔軟な認証:ブラウザベースのOAuth認証か、認証情報付きのヘッドレスモードのいずれかを選択可能で、自動化環境には完全自動化のTOTP 2FAオーバーライドも含まれます。詳細な設定や重要なリスク警告についてはTOTP 2FA戦略文書を参照してください。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Interactive Brokers MCP Server
DISCLAIMER: This is an unofficial, community-developed MCP server and is NOT affiliated with or endorsed by Interactive Brokers. This software is in Alpha state and may not work perfectly.
A Model Context Protocol (MCP) server that provides integration with Interactive Brokers’ trading platform. This server allows AI assistants to interact with your IB account to retrieve market data, check positions, and place trades.
🔒 Security Notice
Features
- Interactive Brokers API Integration: Full trading capabilities including account management, position tracking, real-time market data, and order management (market, limit, and stop orders)
- Flex Query Support: Execute Flex Queries to retrieve account statements, trade confirmations, and historical data. Queries are automatically remembered for easy reuse
- Flexible Authentication: Choose between browser-based OAuth authentication or headless mode with credentials for automated environments, including fully automated TOTP 2FA override. See TOTP 2FA Strategy Document for detailed configuration and important risk warnings.
- Simple Setup: Run directly with
npx- no Docker or additional installations required. Includes pre-configured IB Gateway and Java runtime for all platforms
Security Notice
IMPORTANT WARNINGS:
- Financial Risk: Trading involves substantial risk of loss. Always test with paper trading first.
- Security: This software handles sensitive financial data. Only run locally, never on public servers.
- No Warranty: This unofficial software comes with no warranties. Use at your own risk.
- Not Financial Advice: This tool is for automation only, not financial advice.
Prerequisites
No additional installations required for mainstream platforms. This package includes:
- Pre-configured IB Gateway for all platforms (Linux, macOS, Windows)
- Java Runtime Environment (JRE) for macOS, Windows, and standard Linux builds
- Automatic first-run musl JRE download for Alpine-based containers (e.g.
node:lts-alpine, supergateway) - All necessary dependencies
You only need:
- Interactive Brokers account (paper or live trading)
- Node.js 18+ (for running the MCP server)
Quick Start
Add this MCP server to your Cursor/Claude configuration:
{
"mcpServers": {
"interactive-brokers": {
"command": "npx",
"args": ["-y", "interactive-brokers-mcp"]
}
}
}
インストール
npx -y interactive-brokers-mcp設定
{
"mcpServers": {
"interactive-brokers": {
"command": "npx",
"args": ["-y", "interactive-brokers-mcp"]
}
}
}