L'Atlas / Serveurs MCP / QuantWright

QuantWright

com.quantwright/agent-api

Serveur MCP OK

Faire examiner Voir les tarifs

Backtests with costs, a held-out test that counts once, a score that counts every version tried.

Fiche technique

Auteur
quantwright.com (espace de noms du registre)
Dépôt
—
Site
quantwright.com/docs/agent-api
Version
1.0.0
Transport
Streamable HTTP
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://quantwright.com/api/mcp Streamable HTTP en-tête requis : Authorization
Outils
6
Catégories
IA, agents et mémoire
Dernière mise à jour
29 oct. 2026
Publication
29 oct. 2026

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/com.quantwright/agent-api.svg)](https://latlas.dev/mcp/com.quantwright/agent-api)
HTML
<a href="https://latlas.dev/mcp/com.quantwright/agent-api"><img src="https://latlas.dev/badge/fiche/com.quantwright/agent-api.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://quantwright.com/api/mcp
Dernier résultat
OK 28 nov. 2026, 11:38
Temps de réponse
1 713 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
quantwright 1.0.0
Outils
6

Historique

DateRésultatRéponseOutils
28 nov. 2026, 11:38OK1 713 ms6

Outils exposés (6, réponse à 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.

Aucun paramètre.

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.

ParamètreTypeRequisDescription
namestringouiWhat the study tests, in a few words.
hold_outobjectnonThe 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.

ParamètreTypeRequisDescription
study_idstringouiThe id create_study returned.
codestringouiOne backtesting.py Strategy class (describe_data has the rules).
symbolstringouiOne ticker ("QQQ", "BTCUSD", "EURUSD").
timeframeenum: "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "1d"oui
windowobject | objectnonDates ({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.
costsobject | array<object>nonThe costs: two fractions of the trade value, or a list of costs each in its own unit.
account_usdnumbernonThe starting account, in US dollars.
stated_rulesarray<object | object | object | object | object>nonRules the trades are checked against, one per kind.
labelstringnonA 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).

ParamètreTypeRequisDescription
run_idstringnonA run_id run_backtest or run_held_out_test returned.
study_idstringnonA study's id, for its runs (the newest 20 by default); with `version`, one of them.
versioninteger | stringnon
before_versioninteger | stringnonWith study_id: the 20 runs before this version (a list's `next` gives it).
trades_pageintegernonWith 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`.

ParamètreTypeRequisDescription
run_idstringouiA 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.

ParamètreTypeRequisDescription
run_idstringnonA run_id run_backtest or run_held_out_test returned: the run whose code is checked against the trades.
study_idstringnonA study's id; with `version`, one of its runs.
versioninteger | stringnon
tradesarray<object>ouiThe trader's own trades, in their order, each stamp exactly as the trader wrote it.
time_zonestringnonThe 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).

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://quantwright.com/api/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http agent-api https://quantwright.com/api/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : agent-api ; URL : https://quantwright.com/api/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : agent-api ; Server URL : https://quantwright.com/api/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "agent-api": {
      "url": "https://quantwright.com/api/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "agent-api": {
      "type": "http",
      "url": "https://quantwright.com/api/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "agent-api": {
      "url": "https://quantwright.com/api/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "agent-api": {
      "httpUrl": "https://quantwright.com/api/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.agent-api]
url = "https://quantwright.com/api/mcp"

Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.