ibapi-mcp-server

ibapi-mcp-server

3.3

If you are the rightful owner of ibapi-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 server implementation for Interactive Brokers' API that allows LLMs to interact with your IB account using the Model Context Protocol (MCP).

The Interactive Brokers API FastMCP Server is a middleware server that connects to the Interactive Brokers Gateway and exposes its functionality through the FastMCP framework. This setup allows language models like Claude to interact with your IB account, enabling them to retrieve portfolio information and potentially execute trades. The server supports multiple simultaneous client connections, monitors connection status, and includes error handling and logging features. It requires Python 3.11+, an installed and running Interactive Brokers Gateway, and an IB account with API access enabled.

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

Tools

  1. get_portfolio_tool

    Search current portfolio positions and account summary

  2. ibgateway://{host}/{port}

    Get the current status of the IB Gateway connection

Related MCP Servers

View all finance servers →