Best for
- Users who need AI-assisted access to an Interactive Brokers account
- Automated trading or headless environments
- Users who need account statements or historical data through Flex Queries
An unofficial Alpha-stage Interactive Brokers MCP server covering account queries, market data, order management, and Flex Queries. Its trading automation capabilities are substantial, but it handles real-money access, sensitive credentials, and a local Gateway; users should start with paper trading and apply strict permission controls.
Interactive Brokers MCP Server is an unofficial, community-developed MCP server in Alpha state. It integrates with the Interactive Brokers trading platform to retrieve account information, positions, real-time market data, and order information, and to place orders. It also supports Flex Queries for account statements, trade confirmations, and historical data.
Add the provided stdio configuration to a supported Cursor or Claude MCP configuration, and ensure Node.js 18 or later is available. On first use, a browser opens for Interactive Brokers OAuth authentication; automated environments can instead configure headless mode and credentials. Flex Query features additionally require IB_FLEX_TOKEN.
{"mcpServers":{"interactive-brokers":{"command":"npx","args":["-y","interactive-brokers-mcp"]}}}