QuantWright
com.quantwright/agent-api
MCP server OK
Backtests with costs, a held-out test that counts once, a score that counts every version tried.
Technical sheet
- Author
- quantwright.com (registry namespace)
- Repository
- —
- Site
- quantwright.com/docs/agent-api
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://quantwright.com/api/mcp Streamable HTTP required header :
Authorization - Tools
- 6
- Categories
- AI, agents and memory
- Last updated
- 29 Oct 2026
- Published
- 29 Oct 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/com.quantwright/agent-api)<a href="https://latlas.dev/en/mcp/com.quantwright/agent-api"><img src="https://latlas.dev/badge/fiche/com.quantwright/agent-api.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://quantwright.com/api/mcp
- Last result
- OK 28 Nov 2026, 11:38
- Response time
- 1,713 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- quantwright 1.0.0
- Tools
- 6
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 11:38 | OK | 1,713 ms | 6 |
Exposed tools (6, from tools/list, 28 Nov 2026)
describe_data
What can be backtested
Start here to backtest a trading idea. This server holds the price history (US stocks and ETFs, FX, spot gold and silver, spot crypto; daily and intraday bars) and runs backtests on it. Returns the markets and bar sizes served, the default costs per market, the rules and daily limits every run is held to, and how to write the strategy code; then call create_study.
No parameters.
create_study
Start a study
Opens a study, the named set of runs every backtest belongs to: call it once per question, before run_backtest. Can set a hold-out period, once and only here, that no run tests except run_held_out_test. Only the first held-out test per account and market counts, and any earlier run on the market (in any study, at any bar size) that read its days disqualifies it: set the hold-out in your first study on a market, before any run on it.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | What the study tests, in a few words. |
| hold_out | object | no | The days kept back from every run but run_held_out_test; set once, here. Set it in your first study on a market, before any run on it: a held-out test on days an earlier run on the market read does not count. |
run_backtest
Backtest a strategy
Backtests a trading rule on this server's price history: one backtesting.py Strategy class, one symbol, one bar size, in a study. Use it to test, backtest or evaluate a trading rule or strategy. Returns summary figures (return, drawdown, Sharpe, win rate, trades, a grade, whether it beat buy-and-hold) and the run's trades (when each entered and left, which exit ended it, its side, win or loss), never prices or bars; a figure may be withheld, with the reason. Waits up to 90 s, then answers status "running" with a run_id for get_result.
| Parameter | Type | Required | Description |
|---|---|---|---|
| study_id | string | yes | The id create_study returned. |
| code | string | yes | One backtesting.py Strategy class (describe_data has the rules). |
| symbol | string | yes | One ticker ("QQQ", "BTCUSD", "EURUSD"). |
| timeframe | enum: "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "1d" | yes | |
| window | object | object | no | Dates ({from, to}; `to` may be "latest") or the last N days, months or years ({last: {n, unit}}). Left out: the standard history, the newest bars counted back from the newest bar, cut at the start of the hold-out. |
| costs | object | array<object> | no | The costs: two fractions of the trade value, or a list of costs each in its own unit. |
| account_usd | number | no | The starting account, in US dollars. |
| stated_rules | array<object | object | object | object | object> | no | Rules the trades are checked against, one per kind. |
| label | string | no | A short text shown with the run. |
get_result
Read a result
Reads 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). A run comes with its trades, a page at a time (trades_page).
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | no | A run_id run_backtest or run_held_out_test returned. |
| study_id | string | no | A study's id, for its runs (the newest 20 by default); with `version`, one of them. |
| version | integer | string | no | |
| before_version | integer | string | no | With study_id: the 20 runs before this version (a list's `next` gives it). |
| trades_page | integer | no | With a run (run_id, or study_id with version): the page of its trade list, from 1; a page holds 100 trades. Left out: the first. |
run_held_out_test
Test on the hold-out
The final out-of-sample check: runs a finished run's exact code once over its study's hold-out period. Call it at the end, on the run you would keep: the first held-out test per account and market is the one that counts, and a hold-out with too few trades for figures (a result needs 10) spends it all the same: each development run says how many trades the hold-out is expected to hold, in `hold_out_estimate`.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | yes | A run of a study with a hold-out, which ran. |
compare_trades
Check my own trades
Checks 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). Use it when the trader lists trades they made and asks which the rule took. Takes a run (run_id) and the trades, each {side, entry, exit?}; answers in words, never prices. It re-runs the run's code, so it counts as a run on the run's symbol.
| Parameter | Type | Required | Description |
|---|---|---|---|
| run_id | string | no | A run_id run_backtest or run_held_out_test returned: the run whose code is checked against the trades. |
| study_id | string | no | A study's id; with `version`, one of its runs. |
| version | integer | string | no | |
| trades | array<object> | yes | The trader's own trades, in their order, each stamp exactly as the trader wrote it. |
| time_zone | string | no | The clock the trader says their times are on ("UTC+2", "New York", "Europe/Prague"). Left out: the clock the run's trade list is on (ET for stocks and ETFs, UTC otherwise). |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://quantwright.com/api/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http agent-api https://quantwright.com/api/mcpCustomize > Connectors > + Add > Add custom connector ; Name : agent-api ; URL : https://quantwright.com/api/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : agent-api ; Server URL : https://quantwright.com/api/mcp ; Create as a plugin{
"mcpServers": {
"agent-api": {
"url": "https://quantwright.com/api/mcp"
}
}
}{
"mcpServers": {
"agent-api": {
"type": "http",
"url": "https://quantwright.com/api/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"agent-api": {
"url": "https://quantwright.com/api/mcp"
}
}
}{
"mcpServers": {
"agent-api": {
"httpUrl": "https://quantwright.com/api/mcp"
}
}
}[mcp_servers.agent-api]
url = "https://quantwright.com/api/mcp"Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.