Skip to main content
Glama

deptho-mcp

An MCP server that gives coding assistants (Claude Code, Claude Desktop, Cursor and others) Deptho's backtest checks: replay a backtest's market orders against the trades that followed them, and write a tearsheet that splits returns into fees, funding and slippage. It runs on your machine over stdio, reads and writes local files, and sends nothing anywhere.

Tools

tool

does

replay_orders

orders CSV + trades file → fills CSV and a slippage summary (mean, median, p90, p99 bps)

tearsheet

bars CSV (time, price, position) → self-contained HTML report, its path and headline numbers

pro_status

whether Deptho Pro is installed and licensed here

pro_sync

Deptho Pro: download Binance USD-M days from the public archive into a local memory-mapped dataset

pro_replay

Deptho Pro: replay an orders CSV against that dataset

Orders CSV: time (ISO 8601 or epoch), side (+1/-1 or buy/sell), qty (base units, e.g. BTC). Trades file: a Binance archive aggTrades file (.zip or .csv) or a Tardis.dev trades file (.csv or .csv.gz) covering the orders' period.

Fills are modeled from trade prints: each order fills at the VWAP of the same-side trades after it until its size is covered. Order book depth and queue position are not modeled.

Related MCP server: KLinePic MCP Server

Install

pip install deptho-mcp

Use a virtual environment if you like; then point your assistant at that environment's deptho-mcp (which deptho-mcp prints the full path). For the Pro tools, install Deptho Pro into the same environment with your license key.

Claude Code

claude mcp add deptho -- deptho-mcp

Claude Desktop

Settings → Developer → Edit Config, then add to claude_desktop_config.json:

{
  "mcpServers": {
    "deptho": { "command": "/full/path/to/deptho-mcp" }
  }
}

Cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "deptho": { "command": "/full/path/to/deptho-mcp" }
  }
}

Then ask, for example: "Replay orders.csv against BTCUSDT-aggTrades-2026-09-30.zip and tell me the p90 slippage."

Privacy

Every tool works on local files. Nothing is sent to Deptho. The only download is pro_sync, which fetches Binance's public archive (data.binance.vision) when you ask it to.

License: Apache-2.0. Market data comes from Binance's public archive or from files you supply; Deptho is not affiliated with Binance or Tardis.dev.

Available Tools

5 tools
pro_replayA

(Deptho Pro) Replay an orders CSV (time, side, qty) against a dataset made by pro_sync (the name it returned, e.g. "BTCUSDT-aggTrades"), straight off the memory-mapped columns. Same output as replay_orders.

Inputs: dataset (required), orders_csv (required), fills_csv.

pro_statusA

Whether Deptho Pro is installed and licensed here. pro_sync and pro_replay need it.

Inputs: no named parameters.

pro_syncA

(Deptho Pro) Download Binance USD-M daily trade files from Binance's public archive for start..end (YYYY-MM-DD, inclusive) and append them to one local memory-mapped dataset, "-aggTrades". Days already on disk aren't downloaded again. Returns the dataset name and size.

Inputs: end (required), start (required), symbol (required).

replay_ordersA

Replay a backtest's market orders against the trades that followed them.

orders_csv: CSV with columns time (ISO or epoch), side (+1/-1 or buy/sell), qty (base units). trades_file: Binance archive aggTrades file (.zip or .csv) or Tardis.dev trades file (.csv or .csv.gz) covering the orders' period. Writes one row per filled order (side, qty, price, ref_price, slippage_bps) to fills_csv (default: next to the orders, .fills.csv) and returns a summary. Slippage is in bps against the last trade before each order; positive = cost.

Inputs: orders_csv (required), trades_file (required), fills_csv.

tearsheetA

Write Deptho's HTML tearsheet for a strategy and return its path and headline numbers.

bars_csv: CSV with columns time, price (mark/close) and position (exposure as a fraction of equity, 1.0 = 1x long, decided at each bar's close; it earns from the next bar). funding_csv (optional): time and funding_rate (positive = longs pay). fee_bps and slippage_bps: per unit of turnover; use the slippage measured with replay_orders rather than a guess. Writes one self-contained HTML file (default: next to bars_csv, .report.html).

Inputs: bars_csv (required), title, fee_bps, funding_csv, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 5 tools

    Disambiguation3/5

    replay_orders and pro_replay have the same output and both replay an orders CSV, differing mainly by data source and Pro licensing. The distinction is explained, but an agent must reason about prerequisites to choose correctly. The remaining tools (tearsheet, pro_status, pro_sync) are clearly distinct.

    Naming Consistency4/5

    Most names use a readable verb_noun or prefixed form (replay_orders, pro_status, pro_sync, pro_replay), with a consistent pro_ prefix for licensed tools. The noun-only tearsheet is a minor deviation but remains clear as a domain term.

    Tool Count5/5

    Five tools is well-scoped for a backtest replay and reporting server. Each tool has a clear role: replay, reporting, and Pro dataset management.

    Completeness4/5

    The surface covers the core workflow: syncing trade data, replaying orders, and generating a tearsheet with headline metrics. Minor gaps exist around inspecting intermediate results or non-Pro dataset management, but agents can work around them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Local-first backtesting engine with built-in overfitting detection (PBO, deflated Sharpe, bootstrap CI, walk-forward) and a native MCP server for AI agents to validate trading strategies.
      4
      Apache 2.0
    • A
      license
      A
      quality
      A
      maintenance
      Generate annotated post-trade candlestick review-chart PNGs from broker or exchange fills. Includes capability checks, no-charge preflight validation, and chart rendering; no signals or order execution.
      3
      20
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables auditing and verification of algorithmic trading backtests from coding agents like Claude Code, Cursor, and Windsurf, including look-ahead bias detection, overfitting checks, and sealed audit proof verification.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to log trades from chart screenshots, validate them against custom strategy rules, import statements from MT5/TradingView and other brokers, and review R-based statistics in a local dashboard.
      75 npm
      1
      MIT