IG Integration MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@IG Integration MCPShow my open positions and account summary"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
IG Integration MCP
MCP server for IG's REST Trading API and Lightstreamer streaming API. It uses stdio, so it works with MCP clients such as Claude Desktop and OpenCode.
Release 0.1.1
Add support for IG's current v3 OAuth session response and required
IG-ACCOUNT-IDREST header.Retain compatibility with legacy
CSTandX-SECURITY-TOKENsessions.Configure the
Pricingdata adapter forPRICEsubscriptions.Validate OAuth authentication, market search, and historical-price retrieval against the demo API.
Related MCP server: ibkr-mcp
Setup
Use Python 3.10 or newer and install the project:
python3 -m pip install -e '.[dev]'.Copy
.env.exampleto.envand set a separately generated IG API key, identifier, password, andIG_ENVIRONMENT=demoorlive. Do not commit.envor.env.demo.Start the server with
ig-mcp.
Example MCP configuration:
{
"mcpServers": {
"ig": {
"command": "ig-mcp",
"cwd": "/absolute/path/to/ig_integration_mcp_v4"
}
}
}Tools
Focused tools cover accounts, preferences, sessions, markets, historical prices, positions, working orders, confirmations, watchlists, sentiment, OTC trades, and bounded Lightstreamer PRICE, ACCOUNT, TRADE, and CHART subscriptions. ig_request provides access to the complete documented REST API where no focused tool exists.
Every POST, PUT, and DELETE request requires confirm=true. This includes deals, position/order changes, watchlist mutations, account preferences, session account switches, and all generic mutation calls. Check the configured environment before confirming a state-changing operation.
Authentication
The server logs in with IG REST API v3. Current IG sessions return an OAuth access token and selected account ID, which are sent as Authorization: Bearer ... and IG-ACCOUNT-ID on REST requests. Older IG sessions using CST and X-SECURITY-TOKEN remain supported. All credentials and tokens are redacted from logs and MCP results.
Logging And Secrets
Every REST request and response is logged to a rotating file specified by IG_LOG_PATH, defaulting to ~/.cache/ig-mcp/ig-mcp.log. MCP uses stdout for its protocol and no operational logs are written there. Passwords, API keys, session tokens, OAuth tokens, and encryption material are recursively redacted in logs and MCP REST results.
Tests
Run uv run --extra dev pytest. Demo validation should use only read-only tools such as accounts, search_markets, market_details, historical_prices, and a short stream_updates price collection. Version 0.1.1 was validated against the demo API for login, market search, and historical prices; the Lightstreamer subscription connection is established but may return no update for an inactive or unavailable demo price feed.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityCmaintenanceMCP server for the tastytrade brokerage API, providing tools for account management, market data, and order execution.18
- AlicenseBqualityCmaintenanceA read-only-by-default MCP server for Interactive Brokers that exposes account, positions, PnL, market data, and trade history from a local TWS/IB Gateway session, with optional trading capabilities.15MIT
- AlicenseAqualityBmaintenanceMCP server for the Oanda v20 REST API enabling forex/CFD trading account management, market data retrieval, and order/trade operations with a read-first design and practice environment by default.221MIT
- AlicenseAqualityBmaintenanceMCP server for the Trading 212 public API, enabling account, portfolio, order, pie, and history access with read tools always available and trading tools opt-in.131MIT
Related MCP Connectors
Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.
Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarkHorwell/ig-integration-mcp-simple'
If you have feedback or need assistance with the MCP directory API, please join our Discord server