Skip to main content
Glama
rodrigta

IBKR MCP

by rodrigta

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IBKR_HOSTNoHost of IB Gateway (default: 127.0.0.1)
IBKR_PORTNoPort of IB Gateway (4001 for live, 4002 for paper, default: 4002)
IBKR_TRADING_ENABLEDNoSet to 'true' to enable trading (used for paper account)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ibkr_health_checkA

Check IB Gateway connection and account mode.

ibkr_get_positionsC

Get current portfolio positions.

ibkr_get_account_summaryC

Get account summary values (buying power, net liquidation, etc.).

ibkr_get_daytrade_statusB

Get day-trade balance and PDT-related account tags.

ibkr_get_quoteC

Get a market data snapshot. For options, pass expiry (YYYYMMDD), strike, and right.

ibkr_get_historical_barsC

Get historical OHLCV bars for a stock.

ibkr_get_option_chainC

Get option chain expirations and strikes for an underlying symbol.

ibkr_place_stock_orderC

Place a stock order. Paper account only.

ibkr_place_option_orderB

Place a single-leg option order. Paper account only.

ibkr_cancel_orderC

Cancel an open order. Paper account only.

ibkr_get_open_ordersC

List open orders.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rodrigta/ibkr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server