IBKR MCP TWS setup

Updated: 2026-05-31 21:23 CEST

ibkr mcp is a local IBKR MCP TWS bridge: Claude Desktop, Claude Code, Cursor, Zed, Continue, or another stdio MCP host talks to ibkr mcp, and ibkr reads account and market data from the Trader Workstation (TWS) API socket on the same machine.

Use this page when you searched for "ibkr mcp tws", "IBKR MCP TWS", "IBKR TWS MCP server", or "MCP server for IBKR TWS". The same binary also works with IB Gateway; choose TWS when you already keep Trader Workstation open for charting, manual supervision, or daily trading context.

Why this one ranks differently from simple Python bridges

Many IBKR MCP search results are small wrappers around a few TWS API calls. ibkr is broader:

TWS connection model

Claude / Cursor / Zed / other MCP host
  -> ibkr mcp
  -> local ibkr daemon
  -> Trader Workstation API socket
  -> Interactive Brokers account and market data

ibkr auto-discovers the standard local API ports, including TWS paper and live ports. You can pin host, port, client ID, account, and TLS settings in local config when auto-discovery is not right for your workstation.

Install

Claude Desktop users can install the MCP Bundle:

open https://github.com/osauer/ibkr/releases/latest/download/ibkr.mcpb

Shell, Cursor, Continue, Zed, and generic MCP hosts can install the binary:

curl -fsSL https://raw.githubusercontent.com/osauer/ibkr/main/install.sh | sh
ibkr status
ibkr setup claude-desktop

Generic MCP config:

{
  "mcpServers": {
    "ibkr": {
      "command": "/ABSOLUTE/PATH/TO/ibkr",
      "args": ["mcp"]
    }
  }
}

The command must be an absolute path because MCP hosts usually do not expand ~ or read your interactive shell's PATH.

TWS prerequisites

In Trader Workstation, enable API socket access:

The published ibkr mcp server does not need TWS order entry permissions because it exposes no order-entry tool surface.

What to ask through MCP

TWS or IB Gateway?

Use TWS when the desktop platform is already part of your workflow. Use IB Gateway when you want a lighter headless API process. The ibkr mcp tools are the same in both cases; only the local IBKR process behind the API socket changes.