Connects Claude to the AiDataTaskRunner panel running in MetaTrader 5 for managing forex backtesting pipelines. You can queue new backtest tasks with specific symbols, date ranges, and timeframes, monitor their execution status, run batch operations, and save or load task configurations from CSV. It talks to MT5 over a local socket connection and requires a licensed EX5 library plus the McpServer executable from TheBotPlace. The setup involves configuring JSON tool definitions, running the server as a stdio transport, and launching the corresponding EA in your MT5 terminal. Useful if you're automating ML model training workflows that depend on historical forex data and want to control the entire generation queue through natural language.
Control AiDataTaskRunner Panel directly via MCP
Control your backtesting queue directly from Claude:
Manage panel settings via Claude:
Use Claude to automate your trading data pipeline:
AiDataTaskRunerMcp/
└── aidatataskrunner_mcp/ # JSON Tools definition
cd "C:\Users\YOUR USER\AppData\Roaming\MetaQuotes\Terminal\YOUR ID\MQL5\Shared Projects"
tsndep install "https://forge.mql5.io/nique_372/AiDataTaskRunerMcp.git"
Open Common\Files And create a json file with this structure:
{
"general": {
"type_reg": "stdio_stdin",
"json_tools_fpath": "JSON_TOOL_PATH"
},
"mt5_conn": {
"host": "127.0.0.1",
"port": 9999
},
"http_lib": {
"name": "McpMt5Server",
"version": "1.0.0",
"host": "127.0.0.1",
"port": 8080,
"endpoint": "/"
},
"stdio_stdin": {
"name": "MT5 MCP Server",
"version": "1.0.0"
}
}
Add to your claude_desktop_config.json:
{
"mcpServers": {
"aidatataskrunner_mcp": {
"command": "PATH_TO_EXE",
"args": ["PATH_TO_FILE", "YOUR_TBP_ID", "YOUR_MT5_ACCOUNT_LOGIN_ID"
]
}
}
}
In MT5: Tools → Options → Allowed URLs for WebRequest
127.0.0.1 or host you configured.Open Claude Desktop. At that moment, a Python script is running in the background until it establishes a connection with the EA McpServer.ex5.
Start your AiDataTaskRunner Panel in MT5, then go to the Ai tab and then to Mcp, finally configure the server and launch it. A new chart will open with a new EA.
- Add a new EURUSD task from 2023.01.01 to 2024.01.01 on H1 timeframe, and Symbol Folder = XAUUSD, Label id = 0
- Give me the total number of tasks I have
- Clean all task
- Run all task
Claude will automatically translate this to the appropriate MCP call.
Note:
You can also use HTTP Remote with the help of "mcp-remote" (see: https://forge.mql5.io/nique_372/McpServer/wiki/Running-HTTP)
Check: Tools definition.
Read Full License By downloading or using this repository, you accept the license terms.
Full documentation is available in the main repository:
Copyright © 2026 Nique-Leo.
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json