Stratify Continue with Google

Documentation

Stratify is an MCP server. Connect it to the AI app you already use, then describe an options strategy in plain words; it runs on real one-minute NIFTY and SENSEX prices and answers with the result and a report.

Quickstart

Get a key

Continue with Google. Your key is shown once, already pasted into a setup line for your client. ChatGPT and Claude.ai need no key.

Add Stratify to your client

Pick your client below and paste one line. Restart the client if it was open.

Ask for a backtest

“Sell a NIFTY strangle 0.5% either side of spot at 09:20 every trading day, exit at 15:15. Did it make money?”

Connect your client

Server address: https://stratify-mcp.aeon-labs.site/mcp (Streamable HTTP). Keys go in an Authorization: Bearer header. Replace sk_live_YOUR_KEY with your own, or create a key from your dashboard and every line is filled in for you.

Paste this into the agent or chatbot that should do the setup.

Set up the Stratify MCP server for me. Instructions: https://stratify.aeon-labs.site/llms.txt
My Stratify API key: sk_live_YOUR_KEY

Run once in a terminal. Available in every project afterwards.

claude mcp add -s user --transport http stratify https://stratify-mcp.aeon-labs.site/mcp --header "Authorization: Bearer sk_live_YOUR_KEY"

Add to ~/.codex/config.toml.

[mcp_servers.stratify]
url = "https://stratify-mcp.aeon-labs.site/mcp"
http_headers = { Authorization = "Bearer sk_live_YOUR_KEY" }

Add to ~/.cursor/mcp.json. If the file already has an mcpServers block, add the stratify entry inside it rather than replacing the file.

{
  "mcpServers": {
    "stratify": {
      "url": "https://stratify-mcp.aeon-labs.site/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_YOUR_KEY"
      }
    }
  }
}

Run once in a terminal.

code --add-mcp '{"name":"stratify","type":"http","url":"https://stratify-mcp.aeon-labs.site/mcp","headers":{"Authorization":"Bearer sk_live_YOUR_KEY"}}'

Run once in a terminal.

gemini mcp add -s user -t http stratify https://stratify-mcp.aeon-labs.site/mcp -H "Authorization: Bearer sk_live_YOUR_KEY"

Add to claude_desktop_config.json, or use Settings > Connectors with the URL below and sign in instead.

{
  "mcpServers": {
    "stratify": {
      "command": "npx",
      "args": [
        "-y",
        "stratify-mcp"
      ],
      "env": {
        "STRATIFY_API_KEY": "sk_live_YOUR_KEY"
      }
    }
  }
}

No key needed: add the URL as a custom connector and sign in when asked.

https://stratify-mcp.aeon-labs.site/mcp

For AI agents

Setting this up for someone with an AI agent? Give the agent this site’s address, or point it straight at /llms.txt: it is the whole setup, written for a model to follow, including how to create an account from an email address and how to check the key works.

Tools

What your AI app can call once Stratify is connected. You never call these yourself; you ask in words and the app picks the tool.

run_backtestBacktest an Indian index option strategy on real 1-minute NIFTY options data.
describe_coverageWhat data is available: symbols, date range, resolution, structures, gates, biases, the cost model, and every known gap.
explain_methodologyHow a result is produced: entry pricing, settlement, margin, slippage, the honesty rubric, and what each check can and cannot establish.
list_backtestsThe account's backtests, newest first, with id, date, trade count, net P&L and report URL.
get_backtestRetrieve a previous backtest result by its id — honesty panel, equity curve and per-trade detail, exactly as first computed.
list_strategiesStrategies from THIS account's history that held up under out-of-sample and walk-forward checks, not merely ones that made money.
searchSearch what this service covers — symbols, dates, structures, signals, methodology.
fetchFetch a document or backtest result by id, as returned by search.
submit_feedbackFiles a bug report or feature request when the user asks to report something.
build_reportCreates a shareable report page for a backtest the user owns and returns its URL.
my_feedbackReports this account has filed, and where each one stands.

The shape of a strategy

A strategy is three things: what to open (`legs`), when to open it (`entry`), and what to do about it while it is open (`rules`). Everything else is optional. It is JSON, drawn from a closed vocabulary — nothing is evaluated as code, so a strategy is data you can store, diff and share.

{
  "name": "my strategy",
  "legs": [
    "..."
  ],
  "entry": {
    "cadence": "weekly | daily | monthly",
    "dte": 3,
    "time": "09:30",
    "when": "optional condition"
  },
  "rules": [
    "optional, up to 24"
  ],
  "exit": {
    "time": "optional hard square-off",
    "when": "optional condition"
  },
  "max_adjustments": 4,
  "portfolio": "optional rules over the sequence of trades"
}

Legs

Up to 12. Each names a side, a type, an optional quantity, an optional expiry, and a strike. Leg order defines the indices that rules refer to.

Strike selectors

atmthe at-the-money strike
24000an absolute strike, as a bare number
{"pct_offset": 1.5}1.5% from spot
{"points_offset": 300}300 index points from spot
{"premium_near": 50}the strike trading nearest ₹50
{"delta_near": 0.2}the 20-delta strike, solved from the real traded price
{"from_leg": {"leg": 0, "pct": 1.0}}1% beyond another leg's strike

Expiry

nearthe nearest expiry at entry (the default)
nextthe one after it — this is how a calendar is written
farthe one after that

Entry

One entry per cycle. `when` is the gate — the reason for taking the trade — and it is the only place the market fields below mean anything, since nothing else exists yet.

weeklyone entry per weekly expiry, `dte` days out (default 4)
monthlyone per monthly expiry — the last of its calendar month (default `dte` 21)
dailyone per session; `max_dte` skips sessions further than that from expiry

Entry and exit may be ANY minute of the session, not a fixed grid.

Rules

Checked every minute while the position is open, in order; the first match fires. A rule is a condition and an action.

Actions

"close"end the trade
{"close_legs": [0, 1]}close some legs, keep the rest
{"open": [leg, ...]}add legs to the live position
{"roll": {"legs": [0], "to": strike}}close those legs and reopen them at a new strike
{"close_and_open": {"close": [0], "open": [leg]}}both at once — how a position changes shape mid-trade

Comparators: gt, gte, lt, lte, eq, between. Combine with all, any, not. Up to 12 legs, 24 rules and 50 adjustments per trade.

Book rules

Rules over the SEQUENCE of trades, which no per-trade condition can express because they depend on trades that have already closed.

max_trades, resume_after_days, skip_after_loss, stop_after_drawdown_pct, stop_after_losses, stop_after_profit_pct

Field reference

Every quantity a condition can test.

The position

pnl_ptsrunning mark-to-market P&L of the whole position, in points
pnl_rupeesthe same, in rupees at this lot size and lot count
pnl_frac_of_creditP&L as a fraction of the credit collected at entry: 0.6 is 60% of it, and -1.0 means the position has given back everything it took in (the premium has doubled)
pnl_frac_of_maxP&L as a fraction of the most this position could ever make
combined_premiumwhat it would cost to close the position right now, in points
credit_kept_fracfraction of the entry credit still unspent (1.0 at entry, 0.0 at break-even)

A single leg

leg_markthe current price of one leg, in points
leg_mark_deltathat leg's price minus what it opened at, in points
leg_mark_multthat leg's price divided by what it opened at
leg_pnl_ptsone leg's own contribution to P&L, in points
spot_beyond_strikehow far the index is past a given leg's strike, in points (negative while the strike is still out of the money)

The market

day_of_week1 = Monday through 5 = Friday
gap_pctthis morning's open against yesterday's close, in per cent
prev_day_move_pctyesterday's close-to-close move in the index, in per cent
realised_vol_20dannualised volatility of the index over the 20 sessions ENDING YESTERDAY, in per cent
vixIndia VIX right now, at the minute being evaluated
vix_change_pcthow far VIX has moved today, in per cent of yesterday's close
vix_prev_closeIndia VIX at the previous session's close
rsi_NWilder RSI of the index over N sessions ending YESTERDAY, 0-100. rsi_14 is the usual one
close_vs_sma_N_pctyesterday's close against the N-session simple moving average, in per cent (positive = above the average)
close_vs_ema_N_pctthe same against the N-session exponential average
ema_F_vs_S_pctthe F-session EMA against the S-session EMA, in per cent (positive = the fast average is above the slow one). ema_9_vs_21_pct > 0 is 'the 9 is over the 21'
sma_F_vs_S_pctthe same with simple averages

The underlying

spotthe index, in points
spot_move_pctthe index's move from where the trade opened, in per cent
spot_move_ptsthe same, in index points

The clock

timewall clock, HH:MM
minutes_heldminutes of WALL CLOCK since the position opened, so an overnight position counts the 17.5 hours the market was shut. For 'a few hours into the session' use `time` instead
dtedays to expiry of the nearest leg

Path

drawdown_from_peakpoints given back from the best mark-to-market so far
runup_from_troughpoints recovered from the worst mark-to-market so far
adjustments_donehow many rules have fired on this position already

Worked examples

A weekly iron condor

Sell a 1%-wide iron condor every week, three days before expiry.

{
  "legs": [
    {
      "side": "sell",
      "type": "CE",
      "strike": {
        "pct_offset": 1.0
      }
    },
    {
      "side": "buy",
      "type": "CE",
      "strike": {
        "pct_offset": 2.0
      }
    },
    {
      "side": "sell",
      "type": "PE",
      "strike": {
        "pct_offset": -1.0
      }
    },
    {
      "side": "buy",
      "type": "PE",
      "strike": {
        "pct_offset": -2.0
      }
    }
  ],
  "entry": {
    "cadence": "weekly",
    "dte": 3,
    "time": "09:30"
  }
}

Only when volatility is worth selling

The same idea, but skip the week unless India VIX is above 15.

{
  "legs": [
    {
      "side": "sell",
      "type": "CE",
      "strike": {
        "delta_near": 0.2
      }
    },
    {
      "side": "sell",
      "type": "PE",
      "strike": {
        "delta_near": 0.2
      }
    }
  ],
  "entry": {
    "cadence": "weekly",
    "dte": 3,
    "time": "09:30",
    "when": {
      "vix": {
        "gte": 15
      }
    }
  }
}

Managed while it is open

Take profit at 60% of the credit, roll the tested side if it doubles, and stop the book after three losers.

{
  "legs": [
    {
      "side": "sell",
      "type": "CE",
      "strike": {
        "pct_offset": 1.2
      }
    },
    {
      "side": "sell",
      "type": "PE",
      "strike": {
        "pct_offset": -1.2
      }
    }
  ],
  "entry": {
    "cadence": "weekly",
    "dte": 4,
    "time": "09:20"
  },
  "rules": [
    {
      "when": {
        "pnl_frac_of_credit": {
          "gte": 0.6
        }
      },
      "then": "close"
    },
    {
      "when": {
        "leg_mark_mult": {
          "gte": 2.0,
          "leg": 0
        }
      },
      "then": {
        "roll": {
          "legs": [
            0
          ],
          "to": {
            "pct_offset": 2.0
          }
        }
      },
      "max_times": 2
    }
  ],
  "max_adjustments": 3,
  "portfolio": {
    "stop_after_losses": 3,
    "resume_after_days": 30
  }
}

An intraday 0-DTE trade

Sell the at-the-money straddle on expiry morning and square off at 15:10, with a 25% target and a 60% stop.

{
  "legs": [
    {
      "side": "sell",
      "type": "CE",
      "strike": "atm"
    },
    {
      "side": "sell",
      "type": "PE",
      "strike": "atm"
    }
  ],
  "entry": {
    "cadence": "daily",
    "max_dte": 0,
    "time": "09:16"
  },
  "rules": [
    {
      "when": {
        "pnl_frac_of_credit": {
          "gte": 0.25
        }
      },
      "then": "close"
    },
    {
      "when": {
        "pnl_frac_of_credit": {
          "lte": -0.6
        }
      },
      "then": "close"
    }
  ],
  "exit": {
    "time": "15:10"
  }
}

Two expiries at once

Sell this week's at-the-money call and buy next week's against it.

{
  "legs": [
    {
      "side": "sell",
      "type": "CE",
      "strike": "atm"
    },
    {
      "side": "buy",
      "type": "CE",
      "strike": "atm",
      "expiry": "next"
    }
  ],
  "entry": {
    "cadence": "weekly",
    "dte": 4,
    "time": "09:30"
  }
}

Limits and tiers

TierHistory BacktestsOther calls CPU s/hConcurrent
free1 year (2025-07-01 to 2026-06-30)100/h1000/h60.02
plus5 years (2021-01-01 to 2026-06-30)1000/h10000/h900.06
pro7 years (2019-01-01 to 2026-06-30)10000/h100000/h7200.016

Backtests and built reports spend the first column. Reading coverage, methodology, search or your own history spends the second, so checking what the data covers before you run never costs you a run.

How results are made

  • Option prices are real one-minute prints. Nothing is modelled — Black-Scholes is run backwards only to turn 'the 20-delta strike' into a strike.
  • Brokerage and taxes are charged per leg on real turnover. Slippage is charged by moneyness, and twice on a trade that is closed rather than settled.
  • Naked margin is a Fyers SPAN ratio calibrated today and applied to the past, so return on margin for an uncovered short is optimistic by an unknown amount. Every response that uses it says so.
  • Market gates read only what was settled before the session opened. None of them can see the day's own close.
  • A cycle whose option chain is too thin to locate the money is skipped, and the count of skipped cycles is reported with the result.