概要
What is FullMt5McpByLeo?
FullMt5McpByLeo is a production-ready MCP server that enables Claude and other AI assistants to control MetaTrader 5 directly. It is written in C++ with an MQL5 backend, providing access to the full MT5 API for trading, data, and automation operations.
How to use FullMt5McpByLeo?
Download the latest .exe and .ex5 files from the repository releases. Place the .ex5 files in the MT5 terminal’s Experts folder, and the .exe file in an accessible folder. Download the tools.json file to the terminal’s Common\Files folder. Create a config JSON file. Add the server to your Claude Desktop configuration with the path to the EXE, config file, your TBP ID, and your MT5 account login. In MT5, allow WebRequest to 127.0.0.1, enable AutoTrading and DLL imports, then attach the Runner.ex5 and Mt5Mcp.ex5 EAs on a chart. The server will connect and you can execute trades via natural language in Claude.
Key features of FullMt5McpByLeo
- Executes trades with market and pending orders
- Retrieves real-time OHLC and tick data
- Manages indicators, graphic objects, and charts
- Compiles MQL5 code and runs backtests
- Accesses full terminal and account information
- Average response time around 10ms
Use cases of FullMt5McpByLeo
- Automate trading strategies through natural language commands
- Analyze market data and historical deals with AI assistance
- Develop and test Expert Advisors via MQL5 compilation and backtesting
- Manage chart visualizations and annotations remotely
FAQ from FullMt5McpByLeo
What makes this server different from other MT5 MCPs?
Unlike other MCPs that rely on the Python mt5 package, this server uses a C++/MQL5 dual architecture, giving access to the full MQL5 API including chart handling, indicators, and graphic objects.
What are the runtime requirements?
The server requires an EXE from releases (McpServer.exe), an EX5 from releases (Runner and Mt5Mcp EAs), and an active license from TheBotPlace. It runs on Windows with MetaTrader 5 installed.
How is the license activated?
You must purchase McpServerByLeo from TheBotPlace, obtain your TBP ID from your account, and add it to the args array in your Claude Desktop configuration.
Does the server support backtesting?
Yes. It can run historical tests with multiple tick modeling, leverage, optimization criteria, forward mode, and visual mode, without needing .ini files.
What transport methods are supported?
The server supports stdio (via stdin/stdout) and HTTP remote (using httplib and mcp-remote npm package).