Open-source · Model Context Protocol · v1.0

Flattrade Trading MCP - Connect your AI Assistants

Flattrade MCP is an open-source Model Context Protocol server that lets ChatGPT, Claude, Gemini, Cursor and any MCP-compatible AI securely trade, analyze markets and stream live data on your Flattrade account.

$
Free Forever Zero Brokerage Real-time Data Ultra Low Latency WebSocket Ready MCP Compatible
ChatGPT
Claude
Gemini
Cursor
VSCode
Flattrade MCP
@flattrade/mcp
Exchange NSE · BSE · MCX

Works with the tools you already love

If your AI supports MCP, it works with Flattrade.

What is MCP

A universal protocol between your AI and your broker.

Flattrade MCP is an open-source Model Context Protocol server that lets any AI assistant securely interact with your Flattrade trading account.

Instead of switching between multiple apps, just ask your AI to retrieve live market data, check holdings, place orders, manage positions, or build automated strategies.

Natural language interface

Talk to your account the same way you talk to your AI.

Runs locally

Credentials stay on your machine. Nothing shipped to the cloud.

One protocol, every AI

Compatible with ChatGPT, Claude, Gemini, Cursor, VSCode & more.

Supported AI Platforms

Works with every AI assistant that speaks MCP.

No lock-in. No custom SDKs. Point your MCP-compatible AI at Flattrade and start trading in natural language.

If your AI supports MCP, it works with Flattrade.

Why Flattrade MCP

Built for developers. Free for everyone.

Everything You Can Do

From a single sentence to a live position.

Ask, analyze, execute. Everything your broker exposes - now available to your AI.

Market Analysis

Option chains, PCR, IV rankings, top movers, sector rotation - all with a prompt.

Show NIFTY option chain
Compare Reliance vs TCS
Today's top gainers
Calculate PCR
Find highest IV stocks

Portfolio

Holdings, portfolio value, today's P&L, available margin, funds.

₹12,48,320 +2.4%

Trading

Buy, sell, modify, cancel. Order book & trade book - all conversational.

BUY INFY
100 · ₹1,548
SELL NIFTY 24500 CE
50 · ₹142

Live Market Feed

Subscribe via WebSocket to realtime prices, depth, market watch and streaming ticks.

INFY
₹1,000
+1.18%
TCS
₹1,240
-0.42%
HDFC
₹1,480
+1.18%

Historical Data

Candles, OHLC, indicators, backtesting, export - piped straight into your AI.

AI Strategy Builder

Generate Python or Pine Script, size positions, define entry/exit and risk - all in a single conversation.

// strategy.py
rsi = ta.rsi(close, 14)
supertrend = ta.supertrend(...)
entry = rsi > 55 and st.up
// risk.json
"max_dd": 5%,
"per_trade": 1%,
"stop_loss": ATR × 1.5
// backtest.log
CAGR 32.4%
Sharpe 1.8
Max DD -4.2%
Realtime Architecture

From your prompt to the exchange in milliseconds.

A single MCP server sits between your AI and the exchange. Bi-directional streaming keeps prices, orders and positions live.

You

Prompt in natural language

AI Assistant

ChatGPT · Claude · Gemini · Cursor

Flattrade MCP

Local · secure · open-source

Exchange

NSE · BSE · MCX

Realtime WebSocket · ticks · depth · orders
LIVE · flattrade.mcp
09:15:00.121ws.connect ok
09:15:00.204subscribe {"symbol":"NIFTY","depth":true}
09:15:00.208ack NIFTY · 5 depth channels
09:15:00.312tick NIFTY 24,842.30 +0.42%
09:15:00.318order.place buy INFY x100 @market
09:15:00.406order.filled #F8823 @ ₹1,548.20
09:15:00.502tick NIFTY 24,844.90 +0.43%
09:15:00.610tick NIFTY 24,846.10 +0.44%
Try AI Prompts · Live Demo

Click a prompt. Watch your AI trade.

A playground of real Flattrade MCP interactions. No account required - this demo mirrors how ChatGPT, Claude or Cursor would answer once connected.

~/flattrade-mcp · chat
connected · flattrade.mcp
Supported MCP Tools

Every broker action, exposed as an MCP tool.

17+ tools your AI can call. Fully documented. Composable in any workflow.

Developer Friendly

One config. Every AI. Zero glue code.

Drop this snippet into your AI assistant's MCP config. That's the whole installation. No SDK. No boilerplate.

npx @flattrade/mcp
~/.config/mcp/config.json

        
Open Source

Start building today.

Explore the source code, documentation, installation guide, examples, and contribute back to the project. MIT licensed.

github.com/flattrade/flattrademcp

flattrade / flattrademcp
public
src/
  server.ts
  tools/
    orders.ts
    quotes.ts
    websocket.ts
examples/
  chatgpt.md
  claude.md
  cursor.md
README.md
LICENSE (MIT)
Getting Started

Five steps. One coffee. You're live.

FAQ

Questions, answered.

Build the future of AI trading.

Connect your AI assistant to Flattrade today. Free, open source, and shipping on your terms.