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
Installation
Prerequisites
Python 3.12+
Interactive Brokers TWS or IB Gateway running
Valid IBKR account credentials
Configuration
Set environment variables or create a .env file:
Usage
As MCP Server
Add to your Claude Desktop or other MCP-compatible client configuration:
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:
Support
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.