CR

code-rabi/interactive-brokers-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

228 stars 49 forks Качество 71 Тренд 22MIT

code-rabi/interactive-brokers-mcp — это кандидат на сервер MCP, импортированный из https://github.com/code-rabi/interactive-brokers-mcp.

Обзор

code-rabi/interactive-brokers-mcp — это кандидат на сервер MCP, импортированный из https://github.com/code-rabi/interactive-brokers-mcp.

Обзор (машинный перевод)

ОТКАЗ от ОТВЕТСТВЕННОСТИ: Это неофициальный, разработанный сообществом MCP сервер и НЕ связан с Interactive Brokers и не поддерживается ими. Это программное обеспечение находится в Альфа-состоянии и может работать не идеально.

Сервер протокола Model Context Protocol (MCP), обеспечивающий интеграцию с Interactive Торговая платформа брокеров. Этот сервер позволяет ассистентам ИИ взаимодействовать с ваш IB-счет для получения рыночных данных, проверки позиций и размещения сделок.

🔒 Уведомление о безопасности

Особенности

  • Интеграция API с интерактивными брокерами: полные торговые возможности, включая управление счетом, отслеживание позиций, данные о рынке в реальном времени и управление ордерами (рыночные, лимитные и стоп-ордеры)
  • Flex Query Support: Выполняйте Flex-запросы для получения выписок по счету, подтверждений сделок и исторических данных. Запросы автоматически запоминаются для удобства повторного использования
  • Гибкая аутентификация: Выберите между браузерной аутентификацией OAuth или безголовым режимом с учётными данными для автоматизированных сред, включая полностью автоматизированное переопределение TOTP 2FA. См. TOTP 2FA Strategy Document для подробной конфигурации и важных предупреждений о рисках.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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"]
    }
  }
}
Открыть полный README на GitHub

Установка

npx -y interactive-brokers-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "interactive-brokers": { "command": "npx", "args": ["-y", "interactive-brokers-mcp"] } } }