Getting Started
Overview
Section titled “Overview”This MCP server connects AI agents to cTrader’s FIX 4.4 trading gateway over TLS/TCP. It provides 10 trading tools, 12 resources (4 core + 8 knowledge base), and 3 prompts, with built-in risk management and optional real-time market data via a dedicated QUOTE session.
Step 1: Obtain FIX API Credentials
Section titled “Step 1: Obtain FIX API Credentials”Open cTrader desktop or web platform:
- Click the Cog (settings) icon in the bottom-left corner
- Select FIX API from the settings menu
- You will see two connection types: Price and Trade
- This server uses both connections: Trade for orders/positions, Price for real-time quotes
- Use the Copy button to copy each credential
Reference: https://help.ctrader.com/fix/getting-credentials/
Required Credentials (4 fields)
Section titled “Required Credentials (4 fields)”| Field | Example |
|---|---|
| Host | uat-demo1.p.c-trader.com |
| Trade Port | 5212 |
| SenderCompID | demo.axioryuat.3008144 |
| Password | (from cTrader FIX API settings) |
Auto-Derived Fields
Section titled “Auto-Derived Fields”- Username: Automatically extracted from SenderCompID (last segment after final dot).
Example:
demo.axioryuat.3008144->3008144 - TargetCompID: Defaults to
cServer - SenderSubID: Defaults to
TRADE
You only need to override these if your broker requires different values.
Step 2: Find FIX Symbol IDs
Section titled “Step 2: Find FIX Symbol IDs”Each symbol has a unique numeric ID required for FIX messages:
- In cTrader, open the Active Symbol Panel
- Scroll down to Symbol info dropdown
- At the bottom of Symbol info, find FIX symbol ID
Important: FIX Symbol IDs may differ across brokers. Always verify with your broker.
Step 3: Connect Your AI Agent Client
Section titled “Step 3: Connect Your AI Agent Client”There are two connection methods. Use whichever works with your client.
Method A: OAuth (Recommended)
Section titled “Method A: OAuth (Recommended)”Most MCP clients support OAuth natively. When you add the server URL, the client opens a browser window where you enter your FIX credentials. Tokens refresh automatically.
- In your MCP client: Settings → MCP Servers → Add Server
- Enter the connector URL:
https://mcp.axiory.ai/mcp - A browser window opens with the FIX credentials form
- Select your broker server from the dropdown (trade/quote ports auto-fill)
- Enter your FIX credentials (SenderCompID, Password)
- Optionally configure mode, risk limits under “Advanced Settings”
- Click “Connect” — the browser redirects back and you’re connected!
Supported clients: Claude Desktop, claude.ai, Cursor, Windsurf, Cline, Claude Code CLI, OpenAI/ChatGPT, Google Gemini, Perplexity, and more.
Method B: Portal Token (Fallback)
Section titled “Method B: Portal Token (Fallback)”If your client doesn’t complete the OAuth browser flow:
- Visit the Token Portal in your browser:
https://mcp.axiory.ai/token-portal - Select your broker server and enter your FIX credentials
- Choose your trading mode (readonly / paper / live)
- Click “Generate Token”
- Copy the token immediately — it is shown only once
- Add the token to your client’s config as a Bearer token
Portal tokens expire after 30 days. Store the token in an environment variable, never hardcoded.
Example (Cursor ~/.cursor/mcp.json):
{ "mcpServers": { "ctrader": { "url": "https://mcp.axiory.ai/mcp", "headers": { "Authorization": "Bearer ${env:CTRADER_TOKEN}" } } } }Your credentials are encrypted server-side. Raw credentials are never logged or stored in plaintext.
QUOTE Session (for real-time market data)
Section titled “QUOTE Session (for real-time market data)”The QUOTE session is enabled by default. It typically uses the same host and credentials as TRADE, but a different port (e.g., 5211 instead of 5212).
In the OAuth credentials form, expand “Advanced Settings” to configure:
| Field | Default |
|---|---|
| Quote Host | Same as Trade Host |
| Quote Port | Same as Trade Port |
| Quote Password | Same as Password |
Step 3: Choose Operating Mode
Section titled “Step 3: Choose Operating Mode”| Mode | Behavior | Use Case |
|---|---|---|
readonly | View positions/orders only | Monitoring |
paper | Validate + log, no execution | Testing (default) |
live | Real order execution | Production trading |
Start with paper mode to verify everything works before switching to live.
Select the mode during OAuth setup or on the Token Portal form.
Step 4: First Test
Section titled “Step 4: First Test”- Connect from your preferred AI agent client
- Use
get_positionsto verify the FIX connection - Use
get_ordersto check for any pending orders - Check
ctrader://healthresource for connection status - Try a test order with
place_order(paper mode won’t execute) - Review the audit log entry in the journal
Supported Clients
Section titled “Supported Clients”This server works with any MCP-compatible AI agent client:
- Claude Desktop / claude.ai — OAuth (built-in)
- Claude Code CLI — OAuth or Bearer token via
--header - Cursor — OAuth or Bearer token via
~/.cursor/mcp.json - Windsurf — OAuth or Bearer token via
~/.codeium/windsurf/mcp_config.json - Cline — OAuth or Bearer token via UI
- Continue — Bearer token via
~/.continue/config.yaml - OpenAI / ChatGPT — OAuth or Bearer token via Developer Mode
- Google Gemini CLI — OAuth or Bearer token
- Perplexity — OAuth or API key
- Manus — OAuth or Bearer token via Connector UI
For detailed per-client setup instructions with exact config snippets, ask about “agent client setup”.
