metatrader-mcp
If you are the rightful owner of metatrader-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project provides a fully automated workflow for running, optimizing, and documenting MetaTrader 5 (MT5) Expert Advisors (EAs) using a Distrobox container, a Flask REST API, and an MCP server.
The MetaTrader 5 MCP Server & Distrobox Automation project is designed to streamline the process of running and optimizing MetaTrader 5 Expert Advisors (EAs). It leverages a Distrobox container to automate the setup and execution of MT5 within a Wine environment, ensuring a consistent and reproducible environment for trading operations. The project includes a Flask REST API that provides endpoints for programmatically optimizing EAs, monitoring their status, and retrieving results. The MCP server acts as a unified interface for trading, optimization, and result retrieval, making it easier to manage and document trading strategies. Additionally, the project includes automated documentation features that save optimization results as HTML and Markdown reports, and it uses Git for version control to track all code and configuration changes.
Features
- MetaTrader 5 in Wine/Distrobox: Automated setup and launch of MetaTrader 5 within a Wine environment using Distrobox.
- Flask REST API: Provides endpoints for running, monitoring, and saving optimization results of EAs.
- MCP Server: Unified interface for trading, optimization, and result retrieval.
- Automated Documentation: Saves optimization results as HTML and Markdown reports for each EA.
- Git Version Control: Tracks all code and configuration changes from the start.
Tools
Trading operations
Includes tools like get_account_info, create_order, etc.
Optimization operations
Includes tools like run_optimization, get_optimization_status, get_optimization_results, save_optimization_results.