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.
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.
https://mcp.quantplay.tech/mcphttps://mcp.quantplay.tech/mcp/readonlySetup guides
Claude
- 1Copy the Full access URL above.
- 2Open Customize → Connectors → + Add → Add custom connector, name it Quantplay, paste the URL and click Continue.
- 3Click Connect. Sign in to Quantplay, choose permissions and approve.
- 4Start a new chat and ask for your Quantplay accounts to check it works.
ChatGPT
- 1Copy the Full access URL above.
- 2Open Plugins, click Add, then Create custom MCP server.
- 3Paste the URL, choose OAuth and create the plugin.
- 4Sign in to Quantplay, choose permissions and approve. Then ask ChatGPT for your Quantplay accounts.
Claude Code
- 1Run:
claude mcp add --transport http quantplay https://mcp.quantplay.tech/mcp - 2Optional: add
--scope userfor every project, or--scope projectto share it through.mcp.json. - 3Run
/mcp, pick quantplay and choose Authenticate.
Codex
- 1Run:
codex mcp add quantplay --url https://mcp.quantplay.tech/mcp - 2Run
codex mcp login quantplayand approve the sign-in in your browser.
Cursor
- 1Add this to
~/.cursor/mcp.jsonfor every project, or.cursor/mcp.jsonfor one:{ "mcpServers": { "quantplay": { "url": "https://mcp.quantplay.tech/mcp" } } } - 2Approve the sign-in Cursor opens.
- 3Check the tools under Settings → MCP.
Grok
- 1Copy the Full access URL above.
- 2Open
grok.com/connectors, choose New connector → Custom and paste the URL. - 3Sign in to Quantplay, choose permissions and approve. Then ask Grok for your Quantplay accounts.
Muse
- 1Copy the Full access URL above.
- 2Add a custom connector in Muse with the URL.
- 3Sign in to Quantplay, choose permissions and approve.
Any other MCP client
- 1Add the Full access URL as a remote server using Streamable HTTP.
- 2Pick OAuth and approve the sign-in.
- 3No browser? Send an API key from Settings → Developer as an
X-Api-Keyheader. A key can do everything your account can, so prefer OAuth.
Example prompts
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
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.