Standalone MQL5 checks
Submit one complete script, indicator, or Expert Advisor through the code field for a focused MetaEditor compile check.
Pineify's mql5-syntax-checker is a read-only MCP tool that checks either one complete MQL5 source file or a supplied multi-file project with MetaEditor. It returns normalized error locations without editing the code or running a trading strategy.
mql5-syntax-checkerExample prompt
Use Pineify to check this standalone MQL5 Expert Advisor with MetaEditor and explain each returned error.
Direct answer
Use the standalone mode when the entire program is in one source string. Send only code. The gateway checks it as Scripts/Main.mq5, so code cannot be combined with entry or files in the same request.
Use project mode when the entry file depends on local includes or other source files. Send entry as a relative .mq5 path and include that exact path, plus every required project file, in files. The tool does not read a local workspace or discover missing dependencies for you.
The result separates compile findings from service failures. hasError reports whether MetaEditor returned errors, while isTimeout and isSystemError show that no conclusive check was completed.
Contract
Capabilities
Submit one complete script, indicator, or Expert Advisor through the code field for a focused MetaEditor compile check.
Submit an entry path with the project files needed by that entry, including relative .mq5 and .mqh paths used by the build.
Receive each compiler error with its message, row, column, and a source file path when the reported path can be matched safely.
Let an MCP client call the checker without changing source files, placing trades, or modifying a MetaTrader account.
Agent workflow
Use code for one self-contained source file. Use entry with files when the entry depends on other project files.
For a project, include the entry path in files and add every required include or source file with a unique relative path.
The MCP tool sends the bounded source set to the MetaEditor validation service and returns structured status fields.
Fix diagnostics by file, row, and column. Retry after changes, but treat timeouts and system errors as inconclusive results.
Prompt examples
"Use Pineify to check this standalone MQL5 Expert Advisor with MetaEditor and explain each returned error."
"Use Pineify to compile-check this multi-file MQL5 project. Experts/Main.mq5 is the entry, and I will provide every .mq5 and .mqh file it needs."
"Run the MQL5 syntax checker on these project files, then group the diagnostics by file and suggest the smallest source fixes."
Operator notes
I send only code for a quick check of one self-contained MQL5 file. Mixing code with entry or files is rejected before MetaEditor runs.
I use project mode when the entry imports local files. I make entry match one file path exactly and include every required .mq5 and .mqh source in files.
I treat isTimeout or isSystemError as an inconclusive check, never as a successful compile. When hasError is true, I fix the earliest useful diagnostic and run the checker again because later errors may be consequences of the first one.
Pineify MCP is an information and code-validation tool, not investment advice. It does not promise returns, place trades, or modify a portfolio. Review timestamps, source fields, code diagnostics, and risk assumptions before acting.
MCP tool family
Check TradingView Pine Script and receive normalized diagnostics without changing the source.
Check a cTrader cBot or indicator for C# compiler and cTrader API errors.
Read the latest available technical fields for a supported ticker before translating an idea into MQL5 rules.
FAQ
Connect one remote Pineify MCP endpoint, then let your compatible AI client discover this tool with the rest of the read-only catalog.
Open MCP setup