Analytics
quantwright.com
An MCP server for backtesting trading rules and studies against price history, including retrieving results and running out-of-sample tests.
ENDPOINT 1
https://quantwright.com/api/mcp
MCP server metadata
- Name
- quantwright
- Version
- 1.0.0
Backtests a trading rule or strategy on historical US stock/ETF, spot crypto and FX prices. To test, backtest or evaluate any trading rule, use this instead of web search or downloading price files: the data is already here. Flow: describe_data, create_study, run_backtest, get_result; run_held_out_test once, at the end. You write the strategy as one backtesting.py Strategy class; the server runs it in a sandbox and returns summary figures and the run's trades (when each entered and left, which exit ended it, its side, win or loss), never prices or bars. describe_data lists the markets, bar sizes, default costs and rules, and how to write the code. create_study can set a hold-out period that only run_held_out_test uses: set it in your first study on a market, before any run on it, as a held-out test on days an earlier run read does not count. run_backtest takes one symbol and one bar size per run; it waits up to 90 s, then answers "running" with a run_id for get_result. Run the held-out test once, on the run you would keep: only the first per account and market counts, and a hold-out with too few trades for a result to show figures spends it all the same (each development run says how many it is expected to hold: hold_out_estimate). To check which of a trader's own trades a run's rule would have taken, and why not, use compare_trades with the run and their trades. Limits: results are summary figures and a trade list (no prices, bars or charts); a run reads one symbol; a day takes at most 40 runs per symbol and 150 runs and 50 studies in all (the count resets at 00:00 UTC).
Known tools 6
create_studyOpens a study, the named set of runs every backtest belongs to: call it once per question, before run_backtest.
Inferred read-onlyrun_backtestBacktests a trading rule on this server's price history: one backtesting.
Inferred read-onlyget_resultReads a backtest result by its run_id (when run_backtest answered "running", call this until the run ends), or a study's runs by study_id (one of them with version).
Inferred read-onlyrun_held_out_testThe final out-of-sample check: runs a finished run's exact code once over its study's hold-out period.
Inferred read-onlycompare_tradesChecks a trader's own trades against a run's rule, on the price history this server holds: for each trade, in their order, whether the rule would have taken it and, if not, why (already in a trade, no entry signal that day, no bar that day).
Potential side effectsCONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.quantwright]
url = "https://quantwright.com/api/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"quantwright": {
"type": "http",
"url": "https://quantwright.com/api/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: quantwright
Remote MCP URL: https://quantwright.com/api/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"quantwright": {
"url": "https://quantwright.com/api/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"quantwright": {
"type": "http",
"url": "https://quantwright.com/api/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "quantwright",
"transport": "streamable-http",
"url": "https://quantwright.com/api/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
TRUST AND VERIFICATION EVIDENCE
Loading Trust v2 evidence…
Checking the associated registrable domain. The BuiltWith key remains server-side.
Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.