Skip to content
appsgit

Interactive Brokers MCP

Interactive Brokers MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Interactive Brokers MCP Server. It has 219 GitHub stars, is released under the MIT license and runs locally with npx -y interactive-brokers-mcp.

github.com/code-rabi/interactive-brokers-mcp (opens in a new tab)

  • Needs API key
  • Other
  • MIT
  • Actively maintained

Install Interactive Brokers MCP

Generated from the server's published package. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "interactive-brokers-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "interactive-brokers-mcp"
      ],
      "env": {
        "IB_PASSWORD_AUTH": "your-value",
        "IB_FLEX_TOKEN": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env IB_PASSWORD_AUTH=your-value --env IB_FLEX_TOKEN=your-value --transport stdio interactive-brokers-mcp -- npx -y interactive-brokers-mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "interactive-brokers-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "interactive-brokers-mcp"
      ],
      "env": {
        "IB_PASSWORD_AUTH": "your-value",
        "IB_FLEX_TOKEN": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "ib_password_auth",
      "description": "IB_PASSWORD_AUTH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ib_flex_token",
      "description": "IB_FLEX_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "interactive-brokers-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "interactive-brokers-mcp"
      ],
      "env": {
        "IB_PASSWORD_AUTH": "${input:ib_password_auth}",
        "IB_FLEX_TOKEN": "${input:ib_flex_token}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
IB_HEADLESS_MODENoShown in the README's example configuration.
IB_USERNAMENoShown in the README's example configuration.
IB_PASSWORD_AUTHsecretNoShown in the README's example configuration.
IB_PAPER_TRADINGNoShown in the README's example configuration.
IB_FLEX_TOKENsecretNoShown in the README's example configuration.

About Interactive Brokers MCP

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.

  • ibkr
  • ibkr-api
  • interactive-brokers
  • mcp
  • mcp-server

FAQ

Interactive Brokers MCP FAQ

Still curious? Email info@appsgit.com.

What is Interactive Brokers MCP?

Interactive Brokers MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Interactive Brokers MCP Server. It has 219 GitHub stars, is released under the MIT license and runs locally with npx -y interactive-brokers-mcp. The source code is at github.com/code-rabi/interactive-brokers-mcp.

How do I install the Interactive Brokers MCP MCP server?

Add the command npx -y interactive-brokers-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Interactive Brokers MCP free?

The server is open source under the MIT license, so running it is free. It needs credentials (IB_PASSWORD_AUTH and IB_FLEX_TOKEN) for the service it connects to, which may require a paid account.

Is Interactive Brokers MCP actively maintained?

The most recent commit was on Jul 21, 2026. The latest release is v1.24.1, published Jul 4, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.