Back to Home
johnlam1968 icon

ibkr_headless_mcp

Verified Safe

by johnlam1968

Overview

Provides an MCP server to access Interactive Brokers (IBKR) API endpoints for financial data and trading operations via an LLM agent, using OAuth for authentication.

Installation

Run Command
/home/john/CodingProjects/llm/.venv/bin/python /home/john/CodingProjects/llm_public/src/endpoint_server.py

Environment Variables

  • IBIND_USE_OAUTH
  • IBIND_OAUTH1A_CONSUMER_KEY
  • IBIND_OAUTH1A_ENCRYPTION_KEY_FP
  • IBIND_OAUTH1A_SIGNATURE_KEY_FP
  • IBIND_OAUTH1A_ACCESS_TOKEN
  • IBIND_OAUTH1A_ACCESS_TOKEN_SECRET
  • IBIND_OAUTH1A_DH_PRIME

Security Notes

The server correctly externalizes sensitive IBKR OAuth credentials into environment variables and separate files. There are no obvious 'eval' or 'exec' calls within the provided source code, reducing direct code injection risks. The primary security consideration is the potential for an unconstrained LLM agent to make unauthorized data retrieval requests through the `call_endpoint` tool, as it directly passes agent-provided `path` and `params` to the `ibind` client's GET method. However, since `call_endpoint` exclusively uses `client.get` and the documented endpoints are read-only, the risk of malicious write operations (e.g., placing trades) appears mitigated by the current implementation which is restricted to GET requests.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2026-01-07

Tags

Interactive BrokersIBKRFinancial APITradingMCP ServerLLM Tool