A MCP server for MQL5 development: Compiles code locally via MetaEditor and searches official docs.
Project description
MQL5 Developer MCP Server
A specialized Model Context Protocol (MCP) server for MetaTrader 5 (MQL5) developers. It bridges the gap between AI Assistants (Claude, Cursor, Antigravity) and your local MetaEditor.
Maintained by [Elliott Waves 2.0] – Advanced Algorithmic Trading Solutions.
Features
-
Local Compilation (
compile_mql5):- Compiles MQL5 code locally using your installed
metaeditor64.exe. - Returns exact error logs and warnings to the AI, enabling auto-fixing loops.
- No trading account connection required (safe & fast).
- Compiles MQL5 code locally using your installed
-
Documentation Search (
search_mql5_docs):- Smart search via DuckDuckGo restricted to
mql5.com/docs. - Fetches clean documentation without requiring API keys or Firecrawl credits.
- Helps the AI understand parameters and syntax correctly.
- Smart search via DuckDuckGo restricted to
Configuration
1. Prerequisites
- Python installed
uvinstalled (Recommended)- MetaTrader 5 installed on Windows
2. Setup (Claude Desktop / Antigravity)
Add this to your configuration file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"mql5-dev": {
"command": "uvx",
"args": ["--from", "git+https://github.com/elliottwaves-20/mcp-server-mql5.git", "mcp-server-mql5"],
"env": {
"MQL5_EDITOR_PATH": ""
}
}
}
}
⚠️ WICHTIG - MetaEditor Pfad konfigurieren:
Der Server versucht automatisch, Ihre MetaEditor-Installation zu finden. Falls dies fehlschlägt, setzen Sie den Pfad manuell:
So finden Sie Ihren Pfad:
- Rechtsklick auf MetaEditor-Verknüpfung → Eigenschaften → Reiter "Verknüpfung"
- Kopieren Sie den vollständigen Pfad aus dem Feld "Ziel"
- Fügen Sie ihn in die Config ein (Backslashes verdoppeln:
\\)
Häufige Pfade:
C:\\Program Files\\MetaTrader 5 IC Markets\\metaeditor64.exeC:\\Program Files\\MetaTrader 5 XM\\metaeditor64.exeC:\\Program Files (x86)\\MetaTrader 5\\metaeditor64.exe
Beispiel mit manuellem Pfad:
"env": {
"MQL5_EDITOR_PATH": "C:\\Program Files\\MetaTrader 5 IC Markets\\metaeditor64.exe"
}
Testen der Installation: Starte Claude Desktop neu und frage:
"Compile this MQL5 code:
void OnStart() { Print("Test"); }"
Bei Erfolg solltest du Compiler-Output sehen.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_mql5-0.1.2.tar.gz.
File metadata
- Download URL: mcp_server_mql5-0.1.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bfb7d6c17bc331852abae641c886dbd41c4ce89605b42689d4ecc7306e1563c
|
|
| MD5 |
c6bfd19e61151666cf4f6ab6c3716cab
|
|
| BLAKE2b-256 |
bea909520095ed9e0457c24a1d4155dcb54bb7d1ada098caf305289c793d4470
|
File details
Details for the file mcp_server_mql5-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_server_mql5-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9aa04c02bc9c808da5c75a0f72e1e17faf60adcfc3a3c2005a38a7d80291dac
|
|
| MD5 |
ed5b420836e86669b0e6e9af49b8557a
|
|
| BLAKE2b-256 |
c3dff91d6db8617ccac022c97bdc2ea92951b2f6d4aec2a3f991f332463f69d5
|