xiao81/IBKR-MCP-Server
If you are the rightful owner of IBKR-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) Server for Interactive Brokers TWS API that enables AI assistants to access portfolio data, account information, and real-time market prices.
The IBKR-MCP-Server is a specialized server designed to interface with the Interactive Brokers Trader Workstation (TWS) API. It allows AI assistants to seamlessly access and interact with financial data, including portfolio details, account summaries, and real-time market prices. This server is particularly useful for traders and financial analysts who wish to leverage AI capabilities to enhance their trading strategies and decision-making processes. By providing a structured and efficient way to retrieve and analyze financial data, the IBKR-MCP-Server facilitates a more informed and responsive trading experience. The server requires a running instance of TWS or IB Gateway and is compatible with both paper and live trading accounts. It is built on Python 3.10+ and can be easily integrated into existing workflows using the provided setup and configuration instructions.
Features
- Retrieve current portfolio with positions and P&L
- Get account balances and key metrics
- Look up current stock prices
- Get option prices
Usages
usage with Claude Desktop
{ "mcpServers": { "ibkr": { "command": "uv", "args": ["run", "python", "src/ibkr_mcp/server.py"], "cwd": "/path/to/IBKR-MCP-Server", "env": { "IBKR_PORT": "7497", "IBKR_IS_PAPER": "true" } } } }