Provides runtime environment for the MCP server to execute trading operations and communicate with Interactive Brokers Gateway
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
This MCP server is designed to run locally only for security reasons. Never deploy this to remote servers or cloud platforms as it handles sensitive trading credentials and financial data.
✨ Features
- Account Management: Get account information and balances
- Position Tracking: View current positions and P&L
- Market Data: Real-time market data for stocks and instruments
- Order Management: Place market, limit, and stop orders
- Order Monitoring: Check order status and execution details
Prerequisites
No additional installations required! This package includes:
- Pre-configured IB Gateway for all platforms (Linux, macOS, Windows)
- Java Runtime Environment (JRE) for IB Gateway
- 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:
When you first use the server, a web browser window will automatically open for the Interactive Brokers OAuth authentication flow. Log in with your IB credentials to authorize the connection.
Available MCP Tools
Tool | Description |
---|---|
get_account_info | Retrieve account information and balances |
get_positions | Get current positions and P&L |
get_market_data | Real-time market data for symbols |
place_order | Place market, limit, or stop orders |
get_order_status | Check order execution status |
Troubleshooting
Authentication Problems:
- Use the web interface that opens automatically
- Complete any required two-factor authentication
- Try paper trading mode if live trading fails
Security & Risk Disclaimer
⚠️ 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.
Support
- IB Gateway Issues: Interactive Brokers API Documentation
- MCP Protocol: Model Context Protocol Documentation
- This Server: Open an issue in this repository
License
MIT License - see LICENSE file for details.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
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.
Related MCP Servers
- -securityFlicense-qualityEnables AI assistants to interact with Metabase, providing access to dashboards, questions, databases, and tools for executing queries and viewing data through natural language.Last updated -JavaScript
- AsecurityAlicenseAqualityA bridge between AI assistants and the Paradex perpetual futures trading platform that enables retrieving market data, managing trading accounts, placing orders, and monitoring positions.Last updated -261MIT License
- AsecurityFlicenseAqualityTransforms AI assistants into autonomous crypto trading agents with real-time market analysis, portfolio management, and trade execution across 17+ blockchains.Last updated -321639JavaScript
- -securityFlicense-qualityEnables trading and market analysis through Tiger Brokers API integration. Provides real-time market data, portfolio management, order execution, and technical analysis tools with a comprehensive web dashboard for monitoring.Last updated -Python