ibapi-mcp-server
Repository hosting for the ibapi-mcp-server project, providing version control and collaboration capabilities
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Interactive Brokers API FastMCP Server
A server implementation for Interactive Brokers' API that allows LLMs to interact with your IB account using the Model Context Protocol (MCP).
Overview
This project creates a middleware server that connects to Interactive Brokers Gateway and exposes its functionality through the FastMCP framework. This allows LLMs like Claude to interact with your IB account, retrieve portfolio information, and potentially execute trades.
Related MCP server: IBKR-MCP-Server
Features
Connect to Interactive Brokers Gateway via the official IB API
Support multiple simultaneous client connections through FastMCP
Expose IB functionality as MCP tools and resources
Connection status monitoring
Error handling and logging
Prerequisites
Python 3.11+
Interactive Brokers Gateway installed and running
IB account with API access enabled
Installation
Clone this repository:
git clone https://github.com/karimQuant/ibapi-mcp-server.git
cd ibapi-mcp-serverInstall dependencies:
pip install -e .Usage
Start your IB Gateway and log in
Run the server:
a. Using stdio transport (default):
python server.pyb. Using SSE transport:
python server.py ssec. Using SSE transport with custom port:
python server.py sse port=9000d. Using the FastMCP CLI:
fastmcp run server.pye. For development with an interactive testing environment:
fastmcp dev server.pyConnect client applications (like Claude Desktop) to the server
API Documentation
The FastMCP Server provides the following functionality:
Available Tools
get_portfolio_tool: Retrieve your current portfolio positions and account summary
Resources
ibgateway://{host}/{port}: Get the current status of the IB Gateway connection
License
MIT
Contribution
Contributions are welcome! Please feel free to submit a Pull Request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents
Connect any brokerage account, including Robinhood, Charles Schwab, E*Trade, Webull, Public, Tastytrade, Moomoo, TradeStation, Coinbase, and Kraken, to ChatGPT, Claude, Gemini, Grok, Muse, or any MCP client. Look up accounts, holdings, and option chains, then place stock, multi-leg options, and crypto orders, including bracket orders with take-profit and stop-loss. Every order is shown for your approval before it’s placed unless you choose otherwise.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis MCP server interacts with the Interactive Brokers API to fetch portfolio details, enabling portfolio management through natural language.65-
- AlicenseNot gradedqualityDmaintenanceMCP server for Interactive Brokers TWS API that enables AI assistants to retrieve portfolio, account information, and real-time market prices.23Apache 2.0
- AlicenseAqualityFmaintenanceMCP server for Interactive Brokers API integration, enabling account management, trading, market data, and short selling analysis through Claude.835MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Interactive Brokers that exposes portfolio data, market quotes, trading, and analysis to any MCP-compatible AI client, with support for EU investors and safety-gated trading.1MIT