MM

masdevid/mt5-quant

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

48 stars 12 forks 品質 76 トレンド 33MIT

MetaTrader 5のバックテスト、最適化、分析のためのオープンソースMCPサーバー — 純粋なRust

概要

89ツールは、コンパイル、バックテスト、分析、最適化、デバッグクラッシュ、およびMQL5エキスパートアドバイザーの管理を行うため、Windowsは必要ありません。 バックテスト組織、レポート、分析機能 — MT5自体は提供しません。 通常、MetaTrader5 Pythonパッケージを使用してWindows上で実行し、フルターミナル操作を提供します。 MT5-Quant はギャップを埋めます。つまり、MT5 またはその Python API がネイティブに公開されるものはありません。 PATH (/usr/local/bin や ~/.local/bin など) のどこかでバイナリを移動すると、クライアントは mt5-quant として起動できます。 — -/ライブラリ/アプリケーションサポート/Claude/claude desktop config.json — .cursor/mcp.json (Claude Desktop と同じ JSON 形状) その後、セットアップを終了(自動検出ワイン+MT5パス): LLM のコーディングエージェントに上記のすべてを行うように依頼することもできます。「https://github.com/masdevid/mt5-quantから mt5-quant をインストールしてください」 — ダウンロードまたはビルドして、スクリプト/setup.sh を自動検出ワインと MT5 パスに実行し、MCP サーバーとして登録してください

概要(AI 翻訳)

** macOS/Linux上のMT5戦略開発のためのMCPサーバー。** 89ツールは、コンパイル、バックテスト、分析、最適化、デバッグクラッシュ、およびMQL5エキスパートアドバイザーを管理します。

#MT5-Quantの理由

フォーカス: バックテスト組織、レポート、分析機能 — MT5自体は提供しません。

| | MT5テナント | その他 | お問い合わせ |Platform | macOS/Linux ネイティブ | Windows のみ | |バックテストパイプライン | ✅ 完全(コンパイル → 実行 → 解析) | ✅ 経由 MT5 Python パッケージ | |ディールレベルの分析 | ✅ 19 寸法 | 〇 | |報告会 | ✅ SQLite(レポート+取引)+検索+履歴 | ✕ | |MQL5コンピレーション | ✅ ヘッドレス(ワイン、GUIなし) | 必見 | GUIまたは端末別 | |最適化 | ✅ 背景 + 結果解析 + .set 生成 | ⚠️ ターミナルのみ、解析なし | |クラッシュデバッグ | ✅ ワイン/MT5 診断 | ✕ |

その他典型的には、MetaTrader5 Pythonパッケージを使用してWindows上で実行され、フルターミナル操作を提供します。 MT5-Quant は、バックテストレポートを整理し、取引レベルのインサイトを抽出し、最適化ワークフローを管理します** — どの MT5 か、その Python API がネイティブに公開されるかにかかわらず。

クイックスタート

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MT5-Quant

MCP server for MT5 strategy development on macOS/Linux. 89 tools to compile, backtest, analyze, optimize, debug crashes, and manage MQL5 Expert Advisors — no Windows required.

You: "Backtest MyEA Jan-Mar, what caused the February drawdown?"

Claude: [compile → clean → backtest → analyze 1,847 deals]
        → Feb 14: BUY grid at L6, locking lot 1.75× base
        → Cutloss fired 17 points later
        → Recommendation: cap locking multiplier to ≤1.2×

Why MT5-Quant

Focus: Backtest organization, reporting, and analytics — capabilities MT5 itself doesn’t provide.

MT5-Quant Others
Platform macOS/Linux native Windows only
Backtest pipeline ✅ Full (compile → run → analyze) ✅ Via MT5 Python package
Deal-level analytics ✅ 19 dimensions, DB-backed ❌
Report organization ✅ SQLite (reports + deals) + search + history ❌
MQL5 compilation ✅ Headless (MetaEditor via Wine, no GUI) ⚠️ Via GUI or terminal
Optimization ✅ Background + results parsing + .set generation ⚠️ Terminal only, no parsing
Crash debugging ✅ Wine/MT5 diagnostics ❌

Others typically run on Windows using the MetaTrader5 Python package, providing full terminal operations. MT5-Quant fills the gap: organizing backtest reports, extracting deal-level insights, and managing optimization workflows — none of which MT5 or its Python API expose natively.

Quick Start

Install MT5-Quant

cargo install mt5-quant --locked

Option B — Pre-built binaries (no toolchain)

# macOS Apple Silicon
curl -LO https://github.com/masdevid/mt5-quant/releases/latest/download/mcp-mt5-quant-macos-arm64.tar.gz
tar xzf mcp-mt5-quant-macos-arm64.tar.gz   # → mcp-mt5-quant-macos/mt5-quant

# Linux x64
curl -LO https://github.com/masdevid/mt5-quant/releases/latest/download/mcp-mt5-quant-linux-x64.tar.gz
tar xzf mcp-mt5-quant-linux-x64.tar.gz     # → mcp-mt5-quant-linux/mt5-quant
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mt5-quant": { "command": "mt5-quant", "args": ["--stdio"] } } }