Quantplay MCP server

One link connects Claude, ChatGPT or any MCP app to your accounts on 10+ Indian brokers. You sign in with OAuth; there's no API key to copy.

Last updated 21 October 2026

On this page

What it is

The Model Context Protocol (MCP) is an open standard for connecting AI assistants to outside services. The Quantplay MCP server lets Claude, ChatGPT, Cursor and other MCP clients work with the broker accounts you have connected to Quantplay. For other ways to connect, including OpenClaw and Hermes, see AI agents.

Before you start: add your broker

The agent works with the broker accounts you've added to Quantplay. Sign up, click Add account, pick your broker and enter its API details. Find your broker's guide.

What you can do

  • Read positions, holdings, orders, margins, live P&L and history
  • Look up option chains, expiries, instruments and market data
  • Place, cancel and square off orders, if you allow trading
  • Set stoploss, target and trailing stoploss, if you allow risk changes

Authentication

No API key needed. Add the URL, pick OAuth if asked, then sign in and choose what the agent can do. Viewing is always on; trading and risk changes are off until you allow them.

Full access

https:/​/​mcp.quantplay.tech/​mcp

Read-only

Can't place, change or cancel orders, even if trading was approved.

https:/​/​mcp.quantplay.tech/​mcp/​readonly

Setup guides

Claude

Requires a Claude plan with custom connectors.

  1. 1
    Copy the Full access URL above.
  2. 2
    Open Customize → Connectors → + Add → Add custom connector, name it Quantplay, paste the URL and click Continue.
  3. 3
    Click Connect. Sign in to Quantplay, choose permissions and approve.
  4. 4
    Start a new chat and ask for your Quantplay accounts to check it works.

ChatGPT

Requires a ChatGPT plan that can add custom MCP servers. Developer mode is no longer needed.

  1. 1
    Copy the Full access URL above.
  2. 2
    Open Plugins, click Add, then Create custom MCP server.
  3. 3
    Paste the URL, choose OAuth and create the plugin.
  4. 4
    Sign in to Quantplay, choose permissions and approve. Then ask ChatGPT for your Quantplay accounts.

Claude Code

  1. 1
    Run:
    claude mcp add --transport http quantplay https:/​/​mcp.quantplay.tech/​mcp
  2. 2
    Optional: add --scope user for every project, or --scope project to share it through .mcp.json.
  3. 3
    Run /mcp, pick quantplay and choose Authenticate.

Codex

  1. 1
    Run:
    codex mcp add quantplay --url https:/​/​mcp.quantplay.tech/​mcp
  2. 2
    Run codex mcp login quantplay and approve the sign-in in your browser.

Cursor

  1. 1
    Add this to ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:
    { "​mcpServers"​: { "​quantplay"​: { "​url"​: "​https:/​/​mcp.quantplay.tech/​mcp"​ } } }
  2. 2
    Approve the sign-in Cursor opens.
  3. 3
    Check the tools under Settings → MCP.

Grok

Uses Grok's custom connectors (Bring Your Own MCP).

  1. 1
    Copy the Full access URL above.
  2. 2
    Open grok.com/connectors, choose New connector → Custom and paste the URL.
  3. 3
    Sign in to Quantplay, choose permissions and approve. Then ask Grok for your Quantplay accounts.

Muse

Uses Muse custom connectors.

  1. 1
    Copy the Full access URL above.
  2. 2
    Add a custom connector in Muse with the URL.
  3. 3
    Sign in to Quantplay, choose permissions and approve.

Any other MCP client

  1. 1
    Add the Full access URL as a remote server using Streamable HTTP.
  2. 2
    Pick OAuth and approve the sign-in.
  3. 3
    No browser? Send an API key from Settings → Developer as an X-Api-Key header. A key can do everything your account can, so prefer OAuth.

Example prompts

What you wantTry asking
See your portfolio“Show my positions across all accounts and today's P&L”
Check margins“How much margin do I have left on Zerodha?”
Read the option chain“Show the NIFTY option chain for this expiry around the ATM strike”
Place an order“Buy 1 lot of NIFTY 24300 CE on my main account”
Set risk limits“Set stoploss 5,000 and target 12,000 on my main account”
Review holdings“Analyse my holdings. Anything I should worry about?”

Your risk limits still apply

Stoploss, target and trailing stoploss are set per broker account and checked by Quantplay's servers every few seconds. When one is hit, Quantplay closes that account's intraday and F&O positions, the agent's included. They act after a limit is crossed; they don't block orders.

An agent can change your stoploss and target only if you give it the risk permission. It can never change your kill switch.

Technical details

PropertyValue
TransportStreamable HTTP
Server URLhttps://mcp.quantplay.tech/mcp
Read-only URLhttps://mcp.quantplay.tech/mcp/readonly
AuthenticationOAuth 2.1 with PKCE and dynamic client registration; X-Api-Key header for headless clients
Permissionsread (always), trade, risk — chosen when you approve
Health checkGET https://mcp.quantplay.tech/health

Troubleshooting

Asked to sign in again and again

Finish the approval step in the Quantplay tab that opens. If it keeps happening, remove the connector, add it again and approve once more.

Using an old URL with a key in it

URLs with ?QUANTPLAY_API_KEY= no longer work. Use the plain URL and sign in with OAuth, which keeps no credential in your client config.

Tools not showing up

Restart your client after changing its config, check your JSON for typos, and confirm the URL. Server status: https://mcp.quantplay.tech/health.

Disconnecting an agent

Settings → AI Integration → Disconnect in Quantplay. Access ends within a minute.

Still stuck?

Email hello@quantplay.tech or WhatsApp us from the support page. What we store when you connect an agent is in our Privacy Policy.

Your AI trades. Quantplay keeps the limits.

  • One link, 10+ brokers

    Claude, ChatGPT or any MCP app, across every account you link.

  • Limits on our servers

    Stoploss and target (PRO) auto-exit, even on your AI's trades.

  • A kill switch no AI can touch

    Your floor stays put through market hours.

Get started

Bring your portfolio into ChatGPT or Claude

Continue with GoogleContinue with email

Already have an account? Sign in

By continuing, you agree to our Terms and Privacy Policy.