ibapi-mcp-server
Repository hosting for the ibapi-mcp-server project, providing version control and collaboration capabilities
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., "@ibapi-mcp-servershow me my current portfolio holdings"
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.
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.
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
- Alicense-qualityDmaintenanceAn MCP server that enables interaction with Interactive Brokers TWS/Gateway via natural language for portfolio management and market data retrieval. It provides tools for account summaries, historical data, and a secure two-step confirmation process for placing and canceling orders.Last updated6MIT
- Flicense-qualityFmaintenanceThis MCP server interacts with the Interactive Brokers API to fetch portfolio details, enabling portfolio management through natural language.Last updated64
- AlicenseBqualityCmaintenanceMCP server for Interactive Brokers API, enabling account management, trading, market data, options, scanners, and news via natural language.Last updated333MIT
- Alicense-qualityDmaintenanceMCP server for Interactive Brokers TWS API that enables AI assistants to retrieve portfolio, account information, and real-time market prices.Last updated22Apache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
MCP server exposing the Backtest360 engine API as tools for AI agents.
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/karimQuant/ibapi-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server