How to Use the IBKR (Interactive Brokers) MCP in Cursor
Write automated trading scripts and execute live IBKR trades using Cursor agent mode.
Works with every AI agent you already use
…and any MCP-compatible client
Connect IBKR (Interactive Brokers) MCP to Cursor
Create your Vinkius account to connect IBKR (Interactive Brokers) to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Inline order routing from your codebase
The `place_order` tool lets you execute live market and limit trades directly from the Cursor agent panel. When you're testing an execution script, your agent uses this tool to fire trades based on your local code's output. If a trade goes sideways during runtime, the `modify_order` and `cancel_order` tools give you instant control to kill or edit the order. You don't need to waste time writing custom API wrappers just to test your logic. The Cursor agent reads your local files, structures the order array, and calls the MCP Server to execute.
Live market data injection in Cursor
The `get_market_data_snapshot` tool pulls real-time contract quotes straight into your active code editor. Your agent pulls this pricing data to populate test fixtures, verify your execution math, or check current spreads. It beats hardcoding stale pricing variables when you're building trading algorithms. By pulling live quotes via the MCP Server, your code generation is grounded in actual market conditions. You get real-world data payloads mapped directly to your TypeScript types without mock data.
Automated ledger tracking and session maintenance
The `get_portfolio_ledger` tool feeds your current cash, margin, and position balances directly into Cursor for immediate analysis. Your agent reads these balances alongside `get_account_summary` to write risk checks that match your actual capital limits. To keep these checks running without session drops, the `tickle_session` tool maintains your connection to the Client Portal API. When you need deep historical audits, the `send_flex_request` and `get_flex_statement` tools pull down your custom Flex Query reports. Your agent can parse these CSV files to build clean local backtesting databases.
Set up IBKR (Interactive Brokers) MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the IBKR (Interactive Brokers) MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent IBKR (Interactive Brokers) transactions." If the MCP tools are loaded correctly, Cursor will call the IBKR (Interactive Brokers) tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"ibkr-interactive-brokers-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Interactive Brokers. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about IBKR (Interactive Brokers) MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the IBKR (Interactive Brokers) MCP today
We host it, we monitor it, we maintain it. You just paste one token.