Ibkr MCP-Server | PlugMCP
Zum Inhalt springen Verzeichnis Produkt Ressourcen Pricing Vom Herausgeber
Dokumentation Interactive Brokers MCP Server for Windows
A Model Context Protocol (MCP) server that provides tools for interacting with Interactive Brokers (IBKR) through the TWS API or IB Gateway.
Features
Account Management : Get account summary, positions, and portfolio information
MCP server for Interactive Brokers - enables Claude AI to interact with IBKR trading accounts
Beliebiges Tool in beliebigen Agenten. MCP-Verzeichnis für Leute, die keine Server schreiben.
Produkt
Verzeichnis
Entwickler
Unternehmen
Market Data : Real-time and historical market data for stocks
Order Management : Place market and limit orders, cancel orders, view open orders
Trade Execution : View recent trade executions
Options Trading : Get option chains for stocks
Prerequisites
Interactive Brokers Account : You need an active IBKR account
TWS or IB Gateway : Install either:
Trader Workstation (TWS) - Full trading platform
IB Gateway - Lightweight API gateway
Download from: https://www.interactivebrokers.com/en/trading/tws.php
Python 3.8+ : Required for running the MCP server
Enable API Access : In TWS/Gateway settings:
File → Global Configuration → API → Settings
Enable "Enable ActiveX and Socket Clients"
Note the Socket port (7497 for paper trading, 7496 for live)
Add 127.0.0.1 to trusted IPs
Installation
Step 1: Install Python Dependencies Open Command Prompt or PowerShell and run:
pip install -r requirements.txt
Or install packages individually:
pip install mcp ib_insync pydantic
Step 2: Configure TWS/IB Gateway
Start TWS or IB Gateway
Log in with your credentials
Go to: File → Global Configuration → API → Settings
Check "Enable ActiveX and Socket Clients"
Uncheck "Read-Only API" if you want to place orders
Note the Socket Port:
7497 for Paper Trading
7496 for Live Trading
Add 127.0.0.1 to Trusted IPs
Click OK and restart TWS/Gateway
Usage
Starting the MCP Server The server will run and wait for MCP client connections via stdio.
Integrating with Claude Desktop Add this configuration to your Claude Desktop config file:
Windows : %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ibkr": {
"command": "python",
"args": ["C:\\path\\to\\ibkr-mcp-server\\server.py"]
}
}
}
Replace C:\\path\\to\\ibkr-mcp-server\\ with the actual path where you saved this project.
Available Tools
1. connect_ibkr Connect to Interactive Brokers TWS or Gateway.
{
"host": "127.0.0.1",
"port": 7497,
"client_id": 1
}
port: 7497 (paper trading) or 7496 (live trading)
Must be called before using other tools
2. disconnect_ibkr
3. get_account_summary Get account summary including cash, equity, and P&L.
{
"TotalCashValue": "50000.00 USD",
"NetLiquidation": "52000.00 USD",
"BuyingPower": "200000.00 USD",
"RealizedPnL": "500.00 USD",
"UnrealizedPnL": "2000.00 USD"
}
4. get_positions Get all current positions.
Returns array of positions with symbol, quantity, avg cost, market value, and P&L.
5. get_market_data Get real-time market data for a symbol.
{
"symbol": "AAPL",
"exchange": "SMART",
"currency": "USD"
}
Returns bid, ask, last, volume, high, low prices.
6. get_historical_data Get historical market data.
{
"symbol": "AAPL",
"duration": "1 D",
"bar_size": "1 hour",
"what_to_show": "TRADES"
}
Duration options: "1 D", "1 W", "1 M", "1 Y"
Bar size options: "1 min", "5 mins", "1 hour", "1 day"
7. place_order {
"symbol": "AAPL",
"action": "BUY",
"quantity": 100,
"order_type": "MKT"
}
{
"symbol": "AAPL",
"action": "SELL",
"quantity": 100,
"order_type": "LMT",
"limit_price": 150.50
}
8. cancel_order Cancel an existing order.
9. get_open_orders
10. get_executions Get recent trade executions.
11. get_option_chain Get option chain for a symbol.
{
"symbol": "AAPL",
"exchange": "SMART"
}
Example Conversations with Claude Once configured, you can ask Claude:
"Connect to my IBKR paper trading account"
"What's my current account balance?"
"Show me all my positions"
"Get the current price of AAPL"
"Show me historical data for TSLA over the last week"
"Place a market order to buy 10 shares of MSFT"
"What are my open orders?"
"Get the option chain for SPY"
Security Notes ⚠️ Important Security Considerations:
Paper Trading First : Always test with paper trading (port 7497) before using live account
Order Confirmation : The server allows order placement - use with caution
API Access : Only enable API access when actively using it
Firewall : Ensure your firewall allows connections to TWS/Gateway
Credentials : Never share your IBKR credentials or API keys
Troubleshooting
Connection Failed
Ensure TWS or IB Gateway is running
Verify API settings are enabled
Check port number (7497 for paper, 7496 for live)
Confirm 127.0.0.1 is in trusted IPs
No Market Data
Your IBKR account needs market data subscriptions
Real-time data requires active subscriptions
Delayed/snapshot data may be available without subscription
Order Placement Fails
Ensure "Read-Only API" is unchecked in TWS settings
Verify you have sufficient buying power
Check that the market is open for the security
Module Not Found pip install --upgrade mcp ib_insync pydantic
Development
Running Tests
Logging Logs are written to console. Adjust logging level in server.py:
logging.basicConfig(level=logging.DEBUG)
License MIT License - See LICENSE file for details
Disclaimer This software is for educational purposes. Trading involves risk. Use at your own discretion. The authors are not responsible for any financial losses.
Resources
Support
IBKR API : Contact Interactive Brokers support
MCP Server : Open an issue on GitHub
ib_insync : Check the ib_insync documentation
Changelog
Version 1.0.0
Initial release
Support for basic account operations
Market data retrieval
Order management
Historical data queries
Option chain retrieval
Verzeichnis-Score 6/100 Gelistet 10 von 10
In der offiziellen MCP Registry 0 von 18
Vom Maintainer beansprucht 0 von 8
Antwortet mit einer Tool-Liste 0 von 12
GitHub-Sterne 4 von 16
Wöchentliche Downloads 0 von 10
Pipeworx Gateway Live data for AI agents. 250+ data sources, 900+ tools. Ask questions in plain English with ask_pipeworx — trade flows, SEC filings, drug safety, housing data, and more. No API keys needed. SparkForge Access a versatile collection of tools for media generation, web scraping, and cryptocurrency research. Convert between data formats, summarize long documents, and extract text from images or PDFs wit Last30days Skill AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary Ko Financial Data Real SEC, 13F, insider, congress & macro data your AI agent can cite. 24 tools — institutional 13F holdings (85M+ rows), insider & congress trades, spot-Bitcoin-ETF ownership, company financials, and Polymarket Data By PolymarketScan Real-time Polymarket analytics for AI agents. Query live prediction market data including whale trades, market odds, trader profiles, and leaderboards.
**Available tools:**
- `get_whale_trades` — lar Sap Use the SAP MCP Wizard or install the library from the npm registry to automatically create and configure a Solana/SAP wallet via https://mcp.sap.oobeprotocol.ai Emblem # EmblemAI MCP
EmblemAI is a hosted Model Context Protocol server that gives AI agents a full-featured crypto wallet plus **200+ tools** for trading, DeFi, NFTs, and on-chain analytics across **7 blo UnClick AI agent tool marketplace. 60+ tools for social, e-commerce, accounting, messaging, media, and more. Search and call tools for Slack, Reddit, Discord, Shopify, Xero, Bluesky, TMDB, Steam, and 50+ more X711io Universal Gas Station Market And Intelligence Pay-per-call tool API for autonomous agents. x402 payments on Base. 27 tools including web search, price feeds, and The Hive shared memory layer. Open Saas A 100% free modern JS SaaS boilerplate (React, NodeJS, Prisma). Full-featured: Auth (email, google, github, slack, MS), Email sending, Background jobs, Landing page, Payments (Stripe, Polar.sh), Shadc Zipp Multi-language crypto news for AI assistants — editorial summaries, sentiment labels (BULLISH/NEUTRAL/BEARISH), importance scores 0–100, and every story credited to its original publisher. 8 languages TREK The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routin MCP-Server für Finance Die besten MCP-Server für Finance
Noch keine Tool-Liste. Remote-Server erhalten eine nach dem ersten Health-Check.
Wie installiere ich Ibkr? Kopieren Sie auf dieser Seite die stdio-Konfiguration für Cursor, Claude Desktop, Claude Code oder VS Code. Sie nutzt die Installation des Herausgebers, keinen PlugMCP-Proxy.
Benötigt Ibkr einen API-Schlüssel? In diesem Eintrag ist keine erforderliche Umgebungsvariable aufgeführt.
Welchen Transport verwendet Ibkr? Ibkr läuft lokal über stdio.
Wann wurde Ibkr zuletzt geprüft? Zuletzt geprüft: 2026-10-28. MCP server for Interactive Brokers - enables Claude AI to interact with IBKR trading accounts
Tools haben Beschreibungen 0 von 6
Seit drei Tagen nicht gesehen -8