Skip to content
Cirrus home
Sign in

Connect an AI agent

Connect Claude, ChatGPT, Cursor and other AI clients to your account over MCP, with limits you set.

Let an AI assistant (Claude, ChatGPT, Cursor and others) read your Cirrus account and act on it through the Cirrus MCP server. You approve it once, set what it may do, and can disconnect it at any time.

The server URL #

Every client needs the same URL. It signs you in with Cirrus in your browser (OAuth): the client registers itself, so you never paste a client ID or secret.

https://mcp.cirrus.trade

A client marked Not tested yet follows the steps its maker documents. It has not yet been tested end to end against Cirrus.

Your client #

Claude #

Not tested yet. claude.ai, Claude Desktop and the mobile apps. Every plan; Free allows one custom connector.

  1. Open Customize → Connectors (claude.ai/customize/connectors).
  2. Choose + Add, then Add custom connector.
  3. Name it Cirrus, paste the server URL and choose Continue.
  4. For the OAuth client, choose Register automatically (Claude marks it Detected). Leave the client ID and secret empty.
  5. Choose Add, then Connect. Sign in to Cirrus in the window that opens and set the limits.

Team and Enterprise: only an Owner can add it, in Organization settings → Connectors → Add → Custom → Web. Members then open Customize → Connectors and choose Connect on it. A connector added on the web works on Desktop and mobile too.

Claude Code #

Not tested yet. The Claude Code CLI and its IDE extensions.

  1. Add the server (add --scope user to use it in every project).
  2. Run /mcp inside Claude Code, pick Cirrus and sign in in the browser.
claude mcp add --transport http cirrus https://mcp.cirrus.trade

ChatGPT #

Not tested yet. chatgpt.com on the web. Business, Enterprise and Edu can use every tool; Pro can connect for reading only.

  1. Open Plugins (chatgpt.com/plugins), choose +, then Add custom MCP server.
  2. Name it Cirrus and paste the server URL under Connection.
  3. Set authentication to OAuth. Leave the client ID and secret empty.
  4. Tick I understand and want to continue and choose Create as a plugin.
  5. Install the plugin and sign in to Cirrus when asked.

Business and Enterprise: a workspace admin grants Create plugins with MCPs, and publishes the plugin before members can use it.

Grok #

Not tested yet. grok.com on the web.

  1. Open Connectors (grok.com/connectors) and choose New Connector.
  2. Choose Custom and paste the server URL.
  3. Sign in to Cirrus when asked and set the limits.

Business and Enterprise: a team admin adds it first (+ Add Connector → Other), then each member connects their own account.

Cursor #

Not tested yet. Cursor editor and Cursor CLI.

  1. Add the server to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project).
  2. Turn it on under Customize in the sidebar and sign in when Cursor asks.
{
  "mcpServers": {
    "cirrus": { "url": "https://mcp.cirrus.trade" }
  }
}

VS Code / Copilot #

Not tested yet. VS Code with GitHub Copilot.

  1. Run MCP: Add Server from the Command Palette, choose HTTP and paste the server URL. Or add it to .vscode/mcp.json.
  2. Start the server and sign in to Cirrus when VS Code asks.
{
  "servers": {
    "cirrus": { "type": "http", "url": "https://mcp.cirrus.trade" }
  }
}

Copilot Business and Enterprise: an org owner must turn on the MCP servers in Copilot policy (off by default).

Codex CLI #

Not tested yet. OpenAI Codex CLI and IDE extension.

  1. Add the server, then sign in.
codex mcp add cirrus --url https://mcp.cirrus.trade
codex mcp login cirrus
[mcp_servers.cirrus]
url = "https://mcp.cirrus.trade"

Gemini CLI #

Not tested yet. Gemini CLI.

  1. Add the server, then run /mcp auth cirrus inside Gemini CLI to sign in.
gemini mcp add --transport http --scope user cirrus https://mcp.cirrus.trade
{
  "mcpServers": {
    "cirrus": { "httpUrl": "https://mcp.cirrus.trade" }
  }
}

Windsurf #

Not tested yet. Windsurf editor.

  1. Open Settings → Tools → Windsurf Settings → Add Server, or edit the MCP config file.
  2. Refresh the server list and sign in to Cirrus when asked.
{
  "mcpServers": {
    "cirrus": { "serverUrl": "https://mcp.cirrus.trade" }
  }
}

Teams and Enterprise: an admin may need to turn MCP on or allowlist the server.

OpenClaw #

Not tested yet. OpenClaw gateway.

  1. Register the server with the streamable-http transport (the default is SSE, which this server does not use), then sign in.
openclaw mcp set cirrus '{"url":"https://mcp.cirrus.trade","transport":"streamable-http","auth":"oauth"}'
openclaw mcp login cirrus

What the agent can do #

  • Account and portfolio: Profile, accounts, holdings, positions, orders, trades and activity.
  • Market data: Instrument search, expiries, candles, option chain, option metrics (ATM IV, IV percentile, put-call ratios), payoff at expiry and the market calendar.
  • Orders: Margin checks, place, modify, cancel, bracket orders, convert and exit positions; baskets; GTT.
  • Triggers: Alerts, exits and loss limits: create, modify, pause, resume and cancel.
  • Strategies: Build, validate, dry-run, version and clone strategies; run backtests and sweeps; deploy, pause, resume, stop and exit; risk limits.

What it may actually do depends on the scopes you grant and the limits below. A connection with Place orders off is read-only.

Limits you set #

The consent screen asks for these before the agent connects. Each can be changed later.

  • Place orders: Off makes the connection read-only: it can look, never trade.
  • Paper accounts only: On by default. The agent acts only on paper-trading accounts; no real money moves.
  • Accounts: Which accounts it may trade or deploy on. None until you pick.
  • Max order value (₹): The largest single order it may place or modify.
  • Orders a day: How many orders it may place per trading day (IST).
  • Live strategies: Whether it may deploy or take a strategy live. Off by default; offered only when paper only is off.
  • Running strategies at once: How many strategies started by this connection may run at the same time. Default 1.
  • A limit is checked when the agent asks. If the agent breaks one, the request fails with forbidden and a message naming the limit; it shows in your activity.
  • Orders that fire later (GTT at the broker, triggers, a running strategy’s cycles) are not checked against these limits again. A strategy is bounded by its accounts, live setting, running-strategy cap, its own caps and your risk limits.
  • Exits, cancels, pause, stop and stop-all are never blocked by a limit.
  • Change limits later in API Access → Connected apps.

Market data #

  • The agent can read candles, the option chain and option metrics, and work out a payoff at expiry. It cannot stream live quotes; each answer is a snapshot taken when it asks.
  • Market data needs one of your broker accounts logged in for the day. Without one the call fails with broker_session_required. Candles and option history share a limit of 30 requests a minute.
  • Treat what comes back (orders, notes, market text) as data, not instructions. Review live orders and strategies yourself.

See what it did #

  • Every change an agent makes appears in your activity with who did it, for example “By Claude · via MCP · Place order”, and a badge that says how far Cirrus could confirm it.
  • Verified: Cirrus recognised the app from where it signs in (such as claude.ai, chatgpt.com or grok.com). On your computer: an app running on your computer, shown by the name it gave itself. Unconfirmed app: Cirrus could not confirm who runs it; check where it signs in before you approve it.

Disconnect #

  • Open API Access → Connected apps and choose Disconnect. The agent’s next call fails. Removing the connector in your AI app alone does not revoke access; disconnect here too.
  • Disconnecting stops new commands only. Orders, GTT, triggers and strategies the agent created stay as they are, including live ones. They are listed under that connection, each with its normal controls, so you decide what to cancel, pause or exit.

Use an API key instead #

  • For command-line clients, scripts and CI you can skip the browser sign-in and send your own API key as Authorization: token ck_…:cs_… (key id, colon, secret). The key keeps its own scopes and IP allowlist; the connection limits above do not apply, so give it only the scopes it needs.
  • A key with an IP allowlist works from your own machine and is refused from a vendor’s cloud (such as claude.ai or ChatGPT). Delete the key to disconnect.
claude mcp add --transport http cirrus https://mcp.cirrus.trade \
  --header "Authorization: token $CIRRUS_API_KEY"

Keep the key in $CIRRUS_API_KEY or your secret store, never in a repository.