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.
Strongest · Documentation 13/20 Weakest · Security and permissions 3/20
Static review · not runListed 2026-08-14
Read the FMRS scoring method →Runtime:Node.js 18+
IB_PASSWORD_AUTH
Your IB password for headless login; store securely.
IB_FLEX_TOKEN
Flex Web Service token, generated in IB Account Management → Settings → Reporting → Flex Web Service; required for Flex Query tools.
IB_TOTP_SECRET
TOTP 2FA secret key for fully automated 2FA override; sensitive.
IB_USERNAME
Your Interactive Brokers username, used for headless login.
IB_HEADLESS_MODE
Set to "true" for browser-free credential login, suitable for servers and automation.
IB_PAPER_TRADING
Set to "true" to use a paper trading account.
IB_AUTH_TIMEOUT
Authentication timeout in seconds.
IB_AUTH_WAIT_SECONDS
Seconds headless mode waits for 2FA completion.
IB_AUTH_POLL_SECONDS
Polling interval in seconds for auth status.
IB_FORCE_STANDALONE_GATEWAY
Set to "true" to skip external Gateway discovery and force the bundled standalone Gateway.
IB_READ_ONLY_MODE
Set to "true" to enable read-only mode and disable place_order.
IB_TWO_FA_STRATEGY
Selects the 2FA handling strategy; see docs/2FA-TOTP-STRATEGY.md.
IB_SELECTOR_USERNAME
CSS selector override for the login page username field.
IB_SELECTOR_PASSWORD
CSS selector override for the login page password field.
IB_SELECTOR_LOGIN_SUBMIT
CSS selector override for the login page submit button.
IB_SELECTOR_TOTP_INPUT
CSS selector override for the TOTP form input field.
IB_SELECTOR_TOTP_SUBMIT
CSS selector override for the TOTP form submit button.
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"]}}}
Shown for Cursor. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"interactive-brokers": {
"command": "npx",
"args": [
"-y",
"interactive-brokers-mcp"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add interactive-brokers -- npx -y interactive-brokers-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Tools like get_account_info should appear in your client's tool list; the first call to get_account_info opens a browser for IB OAuth login, and a returned balance proves the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Manage your Hevy workout data from AI assistants via MCP.
Firecrawl's official MCP server for web search, scraping, and structured extraction for AI agents
One binary. One grammar. Evidence from the biomedical sources you already trust.
Encrypted, fully offline long-term memory for AI agents
Source revision 3caecfc5072d Data synced 2026-10-19 Read the FMRS scoring method