Deptho MCP
Supports replaying trading orders against Binance market data, including Binance aggTrades files and, with Deptho Pro, downloading Binance USD-M daily data from the public archive for local backtest replay and slippage analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Deptho MCP Replay orders.csv against BTCUSDT-aggTrades-2026-09-30.zip and tell me the p90 slippage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| orders CSV + trades file → fills CSV and a slippage summary (mean, median, p90, p99 bps) |
| bars CSV ( |
| whether Deptho Pro is installed and licensed here |
| Deptho Pro: download Binance USD-M days from the public archive into a local memory-mapped dataset |
| 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-mcpUse 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-mcpClaude 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.
Links
Deptho: https://deptho.io/go/mcp
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 toolspro_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
Scored across 5 tools
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.
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.
Five tools is well-scoped for a backtest replay and reporting server. Each tool has a clear role: replay, reporting, and Pro dataset management.
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.
Related MCP Connectors
Free backtest forensics (lookahead bias, t-stats, cost survival) and hosted PIT SEC/macro data.
Honest backtests and paper trading for US options and equities, driven by your agent.
Backtest and analyze any portfolio, incl. nested multi-strategy ones: returns, risk, factors, guides
Live trading-pipeline intelligence for AI agents: signal scoring, calibration, recorded outcomes.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceLocal-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.4Apache 2.0
- AlicenseAqualityAmaintenanceGenerate 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.320MIT
- AlicenseBqualityDmaintenanceEnables 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.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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.79 npm1MIT