Skip to main content
MCP server CX Codex

MT5-Quant — Claude Code MCP server for MQL5 testing

Run MT5 backtests and inspect MQL5 Expert Advisor results through an MCP server. It can help trace drawdowns and examine individual deals on macOS or Linux.

Open on GitHub

What MT5-Quant does

MT5-Quant connects an agent to workflows for compiling Expert Advisors, running tests and analyzing reports. It can inspect drawdown events, losing streaks and deal-level performance. For optimization, it starts a genetic run and parses the results afterward.

The server can filter deals by attributes such as type, volume and date, and search comments or EA magic numbers. Reports and deals are organized in SQLite, and a report can be compared with a baseline. The setup relies on Wine and MT5 paths, so those need to be available for the server to detect.

Cargo installation requires a Rust toolchain. After installing, register the server with Claude Code and run scripts/setup.sh. Prebuilt binaries are also listed for macOS Apple Silicon and Linux x64.

What it helps with

  • compile an MQL5 Expert Advisor
  • run a backtest and inspect its report
  • trace drawdown events and losing streaks
  • compare a test report against a baseline
  • parse genetic optimization results

Example prompts for the agent

  • Backtest MyEA from January through March and investigate the February drawdown.
  • Compare the latest report with the baseline and identify the better result.
  • Break down MyEA deals by holding time and volume.

How to install MT5-Quant

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about MT5-Quant

How do I install MT5-Quant in Claude Code?

Install it with cargo install mt5-quant --locked, then register the server using claude mcp add mt5-quant -- mt5-quant --stdio. Finish by running bash scripts/setup.sh to detect the Wine and MT5 paths.

What does MT5-Quant do?

It compiles and backtests MQL5 Expert Advisors, analyzes reports and deals, and runs genetic optimization.

What does MT5-Quant need on macOS or Linux?

It supports macOS and Linux and uses setup to detect Wine and MT5 paths. Installing through Cargo requires a Rust toolchain.

Similar MCP servers

MCP servers catalog →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor