Skip to main content

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

  1. 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).
  2. 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.

Configuration

1. Prerequisites

  • Python installed
  • uv installed (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:

  1. Rechtsklick auf MetaEditor-Verknüpfung → Eigenschaften → Reiter "Verknüpfung"
  2. Kopieren Sie den vollständigen Pfad aus dem Feld "Ziel"
  3. Fügen Sie ihn in die Config ein (Backslashes verdoppeln: \\)

Häufige Pfade:

  • C:\\Program Files\\MetaTrader 5 IC Markets\\metaeditor64.exe
  • C:\\Program Files\\MetaTrader 5 XM\\metaeditor64.exe
  • C:\\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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_mql5-0.1.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_mql5-0.1.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for mcp_server_mql5-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9bfb7d6c17bc331852abae641c886dbd41c4ce89605b42689d4ecc7306e1563c
MD5 c6bfd19e61151666cf4f6ab6c3716cab
BLAKE2b-256 bea909520095ed9e0457c24a1d4155dcb54bb7d1ada098caf305289c793d4470

See more details on using hashes here.

File details

Details for the file mcp_server_mql5-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_mql5-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9aa04c02bc9c808da5c75a0f72e1e17faf60adcfc3a3c2005a38a7d80291dac
MD5 ed5b420836e86669b0e6e9af49b8557a
BLAKE2b-256 c3dff91d6db8617ccac022c97bdc2ea92951b2f6d4aec2a3f991f332463f69d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page