Every feature, explained.
BrokersMCP is a full trading toolkit you drive from Claude โ and every part of it is built around one idea: be useful without ever pretending to an edge it can't prove. Here's what each piece actually does, and where it's honest about its limits.
Execution
Orders, brackets, exits โ and proof they filled
Trading isn't just "buy." You place equity, F&O and MCX commodity orders, horizon-aware so intraday goes MIS and delivery goes CNC โ never the wrong product by accident. You protect a position with an OCO bracket (a target and a stop where one leg cancels the other), set GTT triggers, square off to flatten, and cancel โ then read the fill / order detail back to confirm what actually executed and at what average price.
- place โ equity / F&O / commodity, MIS or CNC/NRML
- bracket-oco โ protective target + stop, one cancels the other
- gtt โ good-till-triggered orders; square-off โ flatten a position
- fills / detail / trades โ confirm the real fill, partial fills included
Research & rigor
A research bar strict enough to disappoint you
Run a hundred backtests and a few look brilliant by chance. The research harness is built to see through that. It walk-forwards every strategy over your symbols โ net of charges and slippage โ and only calls a result robust if every out-of-sample fold pays. Then it applies the multiple-testing defenses most tools skip: how many "winners" pure chance would produce, the deflated Sharpe of the best (discounted for the number of attempts), Combinatorial Purged CV with a probability-of-overfitting score, and an embargo against boundary leakage.
- Walk-forward, net of charges + slippage, no look-ahead
- Strict verdict โ robust / fragile / no-edge
- Deflated Sharpe + expected false positives (multiple-testing)
- CPCV / PBO and --embargo for an honest out-of-sample read
Risk & sizing
Bet less on weak evidence
Position size scales with how much edge you've actually measured. Fractional Kelly and volatility targeting shrink the bet when the evidence is thin โ to zero when there's none โ and size a calm name larger than a jumpy one for the same risk budget. A circuit breaker enforces intraday drawdown, consecutive-loss and per-symbol cooldown limits, day/week/month loss halts cut new entries, and a drift monitor flags when live results decay from the backtest.
- Fractional Kelly + volatility targeting (no edge โ size 0)
- Circuit breaker + kill switch (HALT flag flattens and stops)
- Loss halts โ daily / weekly / monthly ยท drift regime alerts
Pre-trade safety
Don't trade what you shouldn't
Some orders the exchange would simply reject, and some names you shouldn't enter at all. BrokersMCP catches these before the order goes out: it vetoes new entries on ASM / GSM / ESM surveillance-listed symbols (trade-for-trade, price-frozen names that trap intraday strategies), blocks derivative orders above the F&O quantity-freeze limit, and warns when a price is outside the day's circuit band.
Market data & F&O
Reads to decide on
Ask Claude for live prices and it reads them through the broker: LTP, full quotes with depth, day OHLC, and chunked historical candles. For derivatives it pulls the option chain, Greeks, expiries and tradable contracts, plus a market-calendar/status check. Prices can come from the broker live, a delayed REST source, or a streaming websocket feed.
Signals & data capture
Capture, don't assume
The real order-flow signal isn't in OHLCV history, so BrokersMCP captures live order-book microstructure (bid/ask imbalance, spread, depth) and runs a forward-return study on it. Alongside that: a cross-asset scanner (what's in play across stocks + commodities), a tips scorecard that grades any source's calls net of charges, news sentiment and an earnings/events calendar that can veto entries, and fundamentals + IPO data.
Analytics & tax
Learn from what actually happened
From your real closed trades it computes expectancy, win rate, charge drag (how much of gross the costs ate), and live slippage (actual-vs-intended fill cost) โ broken down by symbol, time-of-day, side and horizon. It also sorts closed trades into India tax buckets: speculative (intraday) / STCG / LTCG, net of charges, with the โน1.25L exemption and the 23-Jul-2024 split.
Machine learning
No special treatment
ML is available but earns its place the same way everything else does. A causal RandomForest with price + calendar/seasonality features, and a small time-series Transformer, are optional research candidates โ judged by the same walk-forward, deflated-Sharpe and CPCV bar as the rule-based strategies.
Compliance
Built for the rules
Every order is stamped with an exchange Algo-ID for the audit trail, and the write path is rate-limited under SEBI's retail-algo threshold (~10 orders/sec) so a burst can't reclassify you. These are wired into the same chokepoint as DRY_RUN.
Run it with Claude
One Docker command, a config block, your own broker keys. DRY_RUN by default.