<strong>Universal MCP Server for MetaTrader 5 Trading & Data Operations</strong>
</p>
---
## Overview
FullMt5McpByLeo is a complete, production-ready MCP server that enables Claude and other AI assistants to control MetaTrader 5 directly. Execute trades, retrieve market data, manage charts, analyze trading history, and automate MT5 operations through natural language.
- Fast execution; the MCP server is written in C++ using simdjson and MQL5 uses JsonParserByLeo (fast MQL5 JsonParser), ultra-optimized code for maximum speed.
The average response time is around 10ms (from when Claude calls a function until its response; note that this may depend on the size of the request... on average it's 10ms).
- Unlike other MCPs for MT5, this MCP has two parts, one in MQL5 and the other in C++, giving access to the full MQL5 API and not limited to the mt5 package for Python, which lacks functions for handling charts, etc.
> Note: Python version package mt5_mcp_by_leo is deprecated. now replace by C++ exe server.
> Note: Unlike other MCPs that use .ini files to launch backtests, this MCP doesn't need that because it controls the entire MT5 tester from the same EA, without .ini files, without wasted terminals. In addition, the code compilation is more complete since its AI can choose whether or not to optimize the code, instructions, etc.
- For use tsndep command requerid tsndep pacakage (avaible in [pypi](https://pypi.org/project/tsndep)).. This command automatically downloads all dependencies and installs all requirements from the repositories.
- If any part of the system is private, then it will fail... contact me so I can give you access (if it's a product, you can buy it; if you have any questions, don't hesitate to contact me).
Download the latest .exe and .ex5 files from the repo [releases](https://forge.mql5.io/nique_372/FullMt5McpByLeo/releases).
Place the .ex5 files in the MT5 terminal's Experts\ folder, and the .exe file in an easily accessible folder (for example, the MT5 terminal's Common\Files\ folder).
### 2. Download tools.json
Download the [tools.json](https://forge.mql5.io/nique_372/FullMt5McpByLeo/src/branch/main/mt5_mcp_by_leo/tools.json) file and place it in your terminal's Common\Files\ folder.
- JSON_TOOL_PATH: Path to the tools configuration json (you can download the json from the mt5_mcp_by_leo folder and place it in documents for example and put the path to said file here...) Or if you have the repository cloned, you can use the path to tools.json
> Full template in [Templates/claude_desktop_config.json](https://forge.mql5.io/nique_372/FullMt5McpByLeo/src/branch/main/Templates/claude_desktop_config.json)
> You can also use HTTP Remote (McpServer.exe support HTTP with libs httplib + mcp-remote npm package) (see: https://forge.mql5.io/nique_372/McpServer/wiki/Running-HTTP)
2026-05-03 16:02:33 -05:00
2026-04-28 12:41:28 -05:00
---
2026-04-28 12:26:18 -05:00
2026-04-28 12:41:28 -05:00
## License
2026-04-28 12:26:18 -05:00
2026-04-28 12:41:28 -05:00
**[Read Full License](./LICENSE)**
2026-04-28 12:26:18 -05:00
2026-04-28 12:41:28 -05:00
By downloading or using this repository, you accept the license terms.