Skip to content

Connect via AI (MCP)

MarketHeist runs an MCP (Model Context Protocol) server so you can run real backtests and analyze portfolios directly from Claude and other MCP-compatible AI assistants — just by asking. No account, no API key, no setup beyond adding one URL.

Connector URL

https://api.marketheist.io/api/mcp
  • Transport: Streamable HTTP
  • Authentication: None required — all tools read public market data
  • Cost: Free

Add it to Claude

  1. Open Settings → Connectors.
  2. Click Add custom connector.
  3. Paste the URL above and confirm.

Claude connects immediately and lists three tools. Ask a question in plain language and Claude will call them for you.

What it can do

ToolWhat it does
List IndicatorsLists the built-in indicators (RSI, Bollinger, MA/EMA Crossover, ADX, ATR, CCI, OBV, Stochastic, VWAP Deviation) with their parameters.
Get Price Data (OHLCV)Confirms a ticker and reports its available history — date range, bar count, and latest close — for any Yahoo Finance symbol.
Run BacktestRuns a single-strategy backtest and returns Sharpe, CAGR, max drawdown, Calmar, Sortino, Omega, and equity/drawdown curves, benchmarked against buy-and-hold.
Analyze PortfolioAnalyzes an asset-allocation portfolio — a built-in model (60/40, All Weather, Golden Butterfly, Permanent, Bogleheads, and more) or a custom ticker+weight mix — and returns CAGR, max drawdown, volatility, Sharpe, and Sortino from decades of proxy-extended history.

All four are read-only — they analyze public market data and never modify anything.

Example prompts

Try these once the connector is added:

  1. "Backtest a 200-day moving-average trend filter on the Nasdaq 100 and compare it to buy-and-hold." Runs an MA-crossover strategy with a trend regime filter on ^NDX and shows how the drawdown compares to holding the index.

  2. "What indicators can MarketHeist backtest, and what parameters does RSI take?" Lists the indicator catalogue and the default RSI settings.

  3. "How much price history does Bitcoin have, then run an RSI(14) strategy on it weekly." Checks BTC-USD history, then backtests a weekly RSI strategy with lookahead protection.

  4. "Compare a weekly RSI strategy on SPY against buy-and-hold — which has the smaller drawdown?" Returns both sets of metrics side by side.

  5. "How has the Golden Butterfly portfolio performed, and how does a 70/30 VTI/BND compare?" Analyzes the built-in template and a custom allocation, with CAGR, drawdown, and Sharpe for each.

Tickers

Any symbol on Yahoo Finance works — stocks (AAPL), ETFs (SPY, QQQ), indices (^GSPC, ^NDX), crypto (BTC-USD), and commodities (GLD). History goes back as far as Yahoo has records for that symbol.

Notes

  • Backtests always apply a one-bar execution delay to avoid lookahead bias.
  • Results are for research and education only — they are not investment advice.
  • Prefer a visual interface? Every backtest here can also be run at marketheist.io/backtest.

MarketHeist Backtest Engine