
interactive-brokers-mcp
by code-rabi·★ 131·Score 48
A comprehensive MCP server for Interactive Brokers trading with market data, position tracking, and order placement capabilities.
Overview
This MCP server provides full integration with Interactive Brokers trading platform, enabling AI assistants to access market data, check positions, and place trades through a clean tool-based interface. It supports both browser-based OAuth authentication and headless mode for automated environments, with flexible configuration options for paper or live trading accounts. The server also includes Flex Query support for retrieving account statements, trade confirmations, and historical data with automatic memory for frequently used queries.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this MCP server if you need to integrate AI assistants with Interactive Brokers for trading operations and financial data retrieval, especially when you prefer using standard npm commands without additional installations.
When NOT to choose this
Don't choose this if you're using a different broker platform, need write access to trading accounts beyond what IB offers, or require production-level stability for mission-critical trading operations.
Tools this server exposes
9 tools extracted from the READMEget_account_infoRetrieve account information and balances
get_positionsGet current positions and P&L
get_market_dataReal-time market data for symbols
place_orderPlace market, limit, or stop orders
get_order_statusCheck order execution status
get_live_ordersGet all live/open orders for monitoring
get_flex_queryExecute a Flex Query and retrieve statements
list_flex_queriesList all previously used Flex Queries
forget_flex_queryRemove a saved Flex Query from memory
Comparable tools
Installation
Add this MCP server to your Cursor/Claude configuration:
{
"mcpServers": {
"interactive-brokers": {
"command": "npx",
"args": ["-y", "interactive-brokers-mcp"]
}
}
}For headless mode, configure with environment variables:
{
"mcpServers": {
"interactive-brokers": {
"command": "npx",
"args": ["-y", "interactive-brokers-mcp"],
"env": {
"IB_HEADLESS_MODE": "true",
"IB_USERNAME": "your_ib_username",
"IB_PASSWORD_AUTH": "your_ib_password"
}
}
}
}FAQ
- Is this MCP server affiliated with Interactive Brokers?
- No, this is an unofficial, community-developed MCP server that is not affiliated with or endorsed by Interactive Brokers.
- Can I use this server for automated trading?
- Yes, the server supports headless mode for automated environments and can place orders when read-only mode is disabled. However, you should always test with paper trading first.
- What authentication methods are supported?
- The server supports both browser-based OAuth authentication and headless mode with credentials for automated environments. Two-factor authentication may still be required in either mode.
Compare interactive-brokers-mcp with
Last updated · Auto-generated from public README + GitHub signals.