MCP server for quantitative trading infrastructure exposing backtesting, paper trading simulation, strategy listing, and OHLCV data fetching capabilities.
This MCP server demonstrates solid quality across most dimensions. All 4 tools have clear, descriptive names following verb_noun pattern (list_, fetch_, run_). Descriptions are well-crafted (100 - 250 chars), providing context on what each tool does, when to use it, and safety guarantees. Input schemas are present and mostly well-typed. However, there are notable gaps: output schemas are not formally documented, error handling lacks recovery guidance in most tools, and a few parameter relationships are underdocumented. The server is STDIO-only, which is a hard transport limitation per spec. Overall, this is a well-engineered backend tool suite with good descriptions but incomplete schema documentation and missing error recovery patterns.
Fetch daily OHLCV bars for a symbol over a UTC window. Returns at most 500 bars (hard cap). When the window produces more than 500 bars, the response is truncated to the FIRST 500 (oldest first) with truncated=true and the total bar count. Use a smaller window for more bars. Data source: Demo (offline synthetic, no API key) or one of Finnhub / FMP / TwelveData (real daily bars; requires a free API key in appsettings.json or an env var). Read-only, no orders.
List all built-in trading strategies available in Quant.Infra.Net (names you can pass to run_backtest / run_paper_cycle). Returns strategy names plus a short parameter description for each. Read-only, zero network.
Run one full backtest of a Quant.Infra.Net strategy over a historical window and return performance metrics as JSON (CAGR, Sharpe, Calmar, MaxDrawdown, WinRate, ProfitFactor, TotalTrades, Commission). Data source: Demo (default, offline synthetic, no key) or Finnhub / Fmp / TwelveData / LocalFile (real/local bars; Finnhub/Fmp/TwelveData need a free API key, LocalFile needs a CSV/JSON path). Read-only, no orders, no live trading — safe to call. Use this to compare strategies and decide which is better.
Run ONE paper-trading pipeline cycle (RunMode.Paper) using Quant.Infra.Net's PaperBinanceUsdFutureService for simulated bookkeeping. Zero network, no real funds, no real orders — safe to call. Returns the event stream (Stage/Message/TimestampUtc) and any errors from the cycle. Use this to see how a strategy behaves tick-by-tick in a simulated environment.
Output schemas are not formally documented for any tool. Descriptions imply response structure (metrics fields, event stream) but no JSON Schema is provided. LLMs cannot reliably plan downstream operations or extract required fields.
Conditional parameter relationships are underdocumented. run_backtest and run_paper_cycle have strategy-specific parameters (fastPeriod/slowPeriod for MaCross, lookbackBars/entryZ/exitZ for MeanReversion/PairTradingZScore, symbolA/symbolB for pair strategies) but schemas do not mark these as conditional or mutually exclusive. LLMs may pass invalid combinations.
Error handling and recovery guidance is minimal. fetch_ohlcv test shows 'UnsupportedProvider' error path exists, but tool descriptions do not explain how to handle errors or what LLM should do next. No error response schema documented.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | <=2025-11-25 | v2 |
Strategy discovery pattern is not explicit in tool composition. run_backtest and run_paper_cycle accept 'strategy' string parameter but descriptions do not formally link to list_strategies or enforce strategy enum. LLM must infer the discovery step.
No tests visible for run_paper_cycle tool. Provided test file (RunBacktestToolTests.cs) covers MaCross, MeanReversion, and error paths for run_backtest only. run_paper_cycle correctness and output format are unvalidated in source.
Parameter descriptions include example values (e.g., 'e.g. AAPL, TSLA, MSFT' for symbol; 'e.g. 2024-01-01' for dates). Should replace with enums or format constraints.