TradeLab-MCP
TradeLab-MCP
양적 리서치 MCP 서버. AI가 전략을 정의합니다. MetaTrader 5 Strategy Tester가 백테스트를 실행합니다.
IA (Codex / GPT / Grok / Gemini / Claude)
│ MCP
▼
Trading Research MCP
│
▼
terminal64.exe → Strategy Tester oficial → runs/<run_id>/PHUICMT/mcp-mt5의 포크(MIT)입니다. Python으로 테스터를 다시 구현하지 않습니다.
원칙
MT5는 주문, 체결(fills), 틱, 스프레드, SL/TP, 마진, 수수료 및 P&L의 권위자입니다.
Python은 단지 실험을 구성합니다 (run_id, manifest, hashes, parser, 파생 통계).
각 백테스트는 고유 식별자를 생성합니다. "최근 파일"로 복구되는 것은 없습니다.
runs/20260817_073412_a8f231/
tester.ini
strategy.mq5
strategy.ex5
report.htm
tester.log
trades.csv
metrics.json
manifest.jsonRelated MCP server: OpenFinClaw CLI
MCP 도구 (V1)
도구 | 기능 |
| MT5, MetaEditor, 터미널, 데이터 디렉터리, Experts, Tester, 빌드 |
|
|
| 공식 Tester → |
| 동일한 전략, 여러 자산, 순차적 |
|
|
| 해당 |
| run 간 메트릭 diff |
| IS/OOS 창, 각각은 공식 백테스트 |
| 컴파일 + 짧은 테스터 (심볼/기간/모델/날짜 구성 가능) |
설치
Windows + MetaTrader 5 + Python 3.10+.
cd C:\Users\caioa\TradeLab-MCP
python -m pip install -e ".[dev]"MCP 클라이언트:
{
"mcpServers": {
"tradelab": {
"command": "tradelab-mcp",
"env": {
"MT5_INSTALL": "C:\\Program Files\\MetaTrader 5",
"TRADE_LAB_ROOT": "C:\\Users\\caioa\\TradeLab-MCP\\research"
}
}
}
}변수: MT5_INSTALL, MT5_DATA, MT5_TERMINAL_HASH, TRADE_LAB_ROOT.
예제
Compile este EA e faça um backtest de PETR4 D1,
entre 2015 e 2025, usando real ticks.에이전트가 run_backtest(strategy="experts/RSI2.mq5", symbol="PETR4", timeframe="D1", from_date="2015.01.01", to_date="2025.08.01", model=4)를 호출하고 다음을 받습니다:
{
"run_id": "20260817_073412_a8f231",
"status": "completed",
"symbol": "PETR4",
"period": "D1",
"model": "real_ticks",
"metrics": {
"total_trades": 134,
"net_profit": 18342.21,
"profit_factor": 1.48
}
}get_run("20260817_073412_a8f231")는 정확히 그 실험을 반환합니다.
MT5에서 EA의 위치
모든 자동 테스트용 EA는 다음 위치에 게시됩니다:
<MQL5>\Experts\TradeLab MCP\이 PC에서는 다음 경로로 확인됩니다:
C:\Users\caioa\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\TradeLab MCP
Strategy Tester에서 전문가(expert)는 TradeLab MCP\RSI2로 나타납니다. 폴더는 항상 활성 터미널(layout.experts_dir) 기준이며, 고정 해시 기준이 아닙니다.
Git 저장소의 소스는 계속 experts/에 있습니다. MCP는 소스 + .ex5 + 로컬 includes를 터미널 폴더로 복사합니다.
랩의 기본 EA(CTrade, ArraySetAsSeries, 단일 포지션)는 아직 표준화되지 않았습니다 — 나중에 천천히 도입합니다.
인수 테스트 EA
experts/RSI2.mq5
RSI(2)
RSI < 10이면 매수
RSI > 70이면 청산
단일 포지션
최적화 없음
인수 테스트 1번: 동일한 EA / 자산 / 날짜 / 입력값 / 자본 / 모델을 수동 Strategy Tester와 MCP에서 각각 실행했을 때 동일한 메트릭과 동일한 트레이드를 생성해야 합니다.
테스트
pytest통합 테스트(Windows + 실제 MT5):
$env:TRADE_LAB_INTEGRATION = "1"
$env:TRADE_LAB_SYMBOL = "EURUSD"
pytest tests/test_integration_mt5.py -v우선순위
재현성 > 신뢰성 > 단순성 > 속도 > 기능
V1은 순차적입니다 (데이터 디렉터리에 mt5.lock 잠금). 병렬 Python 백테스터가 없습니다. .opt 파서를 공식 소스로 사용하지 않습니다.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server that provides AI agents with financial tools including real-time quotes, backtesting, technical analysis, and multi-exchange data via a simple CLI interface.1MIT
- Flicense-qualityDmaintenanceEnables quant research, strategy generation, backtesting, and paper trading from natural language prompts, integrating with AI agents via an MCP server.61
- AlicenseAqualityAmaintenanceAn MCP server exposing a registry of paper-backed quantitative trading methods plus a deterministic, no-LLM decision helper for reproducible trading research.13MIT

backtest360-mcpofficial
AlicenseAqualityDmaintenanceMCP server that exposes the Backtest360 backtesting engine API as tools, enabling AI agents to conversationally discover indicators, build and validate strategies, run backtests, and read results.14MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Build, backtest, and deploy quantitative trading strategies from your AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CaioAllgayer/TradeLab-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server