Interactive Brokers MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Interactive Brokers MCP Servershow me my portfolio positions with Greeks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ibkr-mcp
Interactive Brokers MCP Server for AI-powered trading assistance.
A Model Context Protocol (MCP) server that connects AI assistants to Interactive Brokers, enabling intelligent portfolio management, options analysis, and risk monitoring.
Features
Account Management: Real-time account summary, portfolio positions, and P&L tracking
Options Analysis: Option chain fetching, Greeks calculation, and strategy scanning
Risk Monitoring: Portfolio risk evaluation with configurable limits and alerts
Trading Strategies: Built-in support for covered calls, iron condors, PMCC, vertical spreads
News Integration: Historical news retrieval for market research
Playbook Actions: Automated adjustment suggestions based on risk rules
Related MCP server: IBKR MCP Server
Installation
pip install ibkr-mcpPrerequisites
Python 3.12+
Interactive Brokers TWS or IB Gateway running
Valid IBKR account credentials
Configuration
Set environment variables or create a .env file:
# IBKR Connection
IBKR_HOST=127.0.0.1
IBKR_PORT=4001 # TWS: 7497, IB Gateway: 4001
IBKR_CLIENT_ID=0
IBKR_ACCOUNT= # Optional: specific account ID
# Optional: Data directories
IBKR_MCP_OPTION_DATA_DIR=optiondata
IBKR_MCP_OPTION_HISTORY_DIR=historydata
IBKR_MCP_MARKET_DATA_TYPE=LIVE # LIVE, FROZEN, DELAYED, DELAYED_FROZENUsage
As MCP Server
Add to your Claude Desktop or other MCP-compatible client configuration:
{
"mcpServers": {
"ibkr-mcp": {
"command": "uvx",
"args": [
"ibkr-mcp"
],
"env": {
"IBKR_ACCOUNT": "U1234567"
}
}
}
}Available Tools
Tool | Description |
| Retrieve account summary for specific or all accounts |
| Get portfolio positions with P&L |
| Get normalized positions across accounts |
| Calculate portfolio Greeks (delta, gamma, theta, vega) |
| Fetch option chain snapshots |
| Scan for options strategy trade signals |
| Evaluate risk against configured limits |
| Generate adjustment suggestions |
| Retrieve historical news for symbols |
Example Queries
Once connected through an AI assistant, you can ask:
"What's my current account balance and buying power?"
"Show me all my positions with Greeks"
"What's the option chain for AAPL expiring next month?"
"Evaluate my portfolio risk and suggest adjustments"
"Find covered call opportunities in my portfolio"
Risk Configuration
Create a risk.yaml file to define risk limits:
limits:
max_delta: 100
max_theta: -500
max_concentration: 0.25
roll_rules:
min_dte: 7
target_delta: 0.30Support
For issues and feature requests, please contact the maintainers.
License
Proprietary - All rights reserved.
Disclaimer
This software is for informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss. Use at your own risk.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI assistants to interact with Interactive Brokers trading accounts to retrieve market data, check positions, and place trades. Includes pre-configured IB Gateway and handles OAuth authentication automatically.14550209MIT
- Alicense-qualityDmaintenanceProvides AI models with secure access to Interactive Brokers trading data and functionality, enabling account management, market data retrieval, and trading operations through natural language interactions.18MIT
- Alicense-qualityDmaintenanceEnables algorithmic trading with Interactive Brokers, including market data, order management, and risk analysis, with special support for 0DTE SPX options.5MIT
- AlicenseBqualityDmaintenanceGives AI assistants real-time access to Interactive Brokers accounts via the Client Portal Web API, with 26 read-only tools for portfolio, market data, options, and scanner.3292MIT
Related MCP Connectors
Options analytics for AI assistants: chains, IV rank, VRP, Greeks, GEX, expected moves, screeners.
Connect AI agents to bank accounts, transactions, balances, and investments.
Connect your Necton account to AI via Brazil's Open Finance: balances, statements, cards, investment
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/kelvingao/ibkr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server