IB_MCP
This project provides an Interactive Brokers (IB) API interface using the Model Context Protocol (MCP).
GitHub Stars
27
User Rating
Not Rated
Favorites
0
Views
25
Forks
3
Issues
0
Installation
Difficulty
AdvancedEstimated Time
20-45 minutes
Installation
See a quick walkthrough in [YOUTUBE](https://www.youtube.com/watch?v=PyQz_kMQ9ek)
1Clone the repo, set env variables and build the images
bash
# Clone the repository
git clone https://github.com/rcontesti/IB_MCP.git
# Navigate to the project directory
cd IB_MCP
# Copy the .env.example file to .env and edit as needed
cp .env.example .env
# Build the image
docker compose up --build -d
2Auth with your IB account and credentials to:
After the image is up and running, navigate to https://{GATEWAY_BASE_URL}:{GATEWAY_PORT} (e.g.: https://localhost:5055/) to login.
You will also find the login path in the logs of the API gateway container:

If successful you should be redirected to a URL that reads: "Client login succeeds".
3Add the MCP server config file to your VS Code
Given the following environment parameters
```settings.json.