Interactive Brokers icon

Interactive Brokers

3

Integrates the Interactive Brokers Web API with the Model Context Protocol, enabling programmatic access to financial market data and trading functionalities.

About

This project offers a robust interface to the Interactive Brokers (IB) API, leveraging the Model Context Protocol (MCP) for streamlined interaction. It's built upon the IB Client Portal Web API and designed for a containerized environment, ensuring secure and reproducible access. The architecture comprises three core Docker containers: an API gateway for secure REST API access, a ticker service to maintain persistent IB sessions, and an MCP server that orchestrates communication with the API gateway. This setup provides a self-contained solution for developers and quantitative analysts to connect with their IB accounts and retrieve market data.

Key Features

  • Containerized Interactive Brokers Client Portal Gateway for secure REST API access
  • Access to Interactive Brokers market data and order management functionalities
  • Dedicated ticker service to maintain persistent IB API sessions and prevent timeouts
  • Integration with the Model Context Protocol (MCP) for structured data exchange
  • Reproducible and self-contained deployment environment using Docker
  • 3 GitHub stars

Use Cases

  • Programmatic retrieval of real-time Interactive Brokers market data
  • Automated management and execution of trading orders on Interactive Brokers
  • Integration of Interactive Brokers data into large language model (LLM) applications