MCP Catalogs
Homeinteractive-brokers-mcp screenshot

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.

financedeveloper-toolsai-llm
31
Forks
2
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Automated trading systems with AI decision making
you:Portfolio monitoring through AI assistants
you:Retrieving account statements and trading history via natural language
you:Is this MCP server affiliated with Interactive Brokers?
you:Can I use this server for automated trading?
you:What authentication methods are supported?

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 README
  • 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

  • get_live_orders

    Get all live/open orders for monitoring

  • get_flex_query

    Execute a Flex Query and retrieve statements

  • list_flex_queries

    List all previously used Flex Queries

  • forget_flex_query

    Remove a saved Flex Query from memory

Comparable tools

alpaca-mcpbinance-mcpetrade-mcpibkr-api

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.