Connecting an AI agent (Claude, ChatGPT, Cursor) to your account
How to connect a read-only AI agent, such as Claude, ChatGPT, or Cursor, to your account data via the Nexum Trader MCP server.
Nexum Trader exposes a read-only Model Context Protocol (MCP) server, so you can ask an AI agent like Claude questions about your own account data directly — "how are my accounts doing today?", "what's my open exposure on XAUUSD?" — without opening the dashboard.
The agent can only read. It cannot place, modify, or close a trade, change your risk settings, or touch your configuration under any circumstances.
What the agent can see
Once you authorize an app, it can call six read-only tools scoped to your account:
- Your connected MT5 accounts and their connection status
- Balance, equity, and margin per account
- Currently open positions
- Recent trade history
- Recent signals and whether they executed
- Per-account risk and configuration settings
Every call is logged and rate-limited. Access is strictly per-account: an agent connected under your login can never see another user's data.
Connecting an agent
The exact steps depend on your AI tool, but the flow is the standard MCP + OAuth pattern:
- In your AI tool, add a new MCP server pointed at
https://api.nexumtrader.com/functions/v1/mcp. - Your AI tool will open your browser to sign you in (if you aren't already) and show a consent screen listing exactly what it's requesting — read-only access to accounts, positions, trade history, signals, and risk settings.
- Click Allow. You're returned to your AI tool, now connected.
For Claude Code, this is a one-line setup:
claude mcp add --transport http nexumtrader https://api.nexumtrader.com/functions/v1/mcpthen run claude mcp login nexumtrader and approve the consent screen when it opens.
Only approve apps you started connecting yourself
The consent screen exists specifically so you can see and confirm what's requesting access before it gets anything. Never approve a request you didn't initiate — if a consent screen appears unexpectedly, click Deny.
Revoking access
Go to Settings → Security → Connected apps to see every app you've authorized and revoke access with one click. Revoking immediately ends that app's ability to read your data; you can reconnect it later by authorizing it again. You should also remove it from your AI tool's own configuration (e.g. claude mcp remove <name>) so it stops trying to use the connection.