CODESYS MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODESYS_EXE | Yes | Absolute path to the official CODESYS.exe. Must point to a file named CODESYS.exe; the server derives the profile directory from it. | |
| CODESYS_MODE | No | Must be spawn if set; any other value (e.g. attach) is reported as a configuration error. Attach-related variables are not supported by this package. | |
| CODESYS_NOUI | No | When set to 1, adds --noUI. Do not enable on SP21: scripts may not run. | |
| CODESYS_PROFILE | Yes | Exact profile name installed next to CODESYS (e.g. the name of a <CODESYS_PROFILE>.profile.xml in the Profiles directory). | |
| CODESYS_DATA_DIR | No | Directory for request temp folders and the engineering.lock file. | %LOCALAPPDATA%\CodesysMcp\standalone |
| CODESYS_TIMEOUT_MS | No | Timeout for one request in milliseconds. On timeout the IDE is not killed automatically; the error contains the run directory to inspect. | 660000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codesys_engineeringA | Official CODESYS engineering through the ScriptEngine, spawn-only. Launches a private CODESYS.exe --runscript process, edits the given .project file, and exits. Without save=true nothing is written to disk. No attach mode, no plugin, no online/PLC access. Requires CODESYS_EXE and CODESYS_PROFILE environment variables; run "node tools/check-config.mjs" to validate them. create_empty creates a new empty .project container (no controller). batch runs 1..200 steps and stops on the first failure. Close other CODESYS instances first, or pass isolated=true for a separate user profile. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 1 tool
There is only one tool, so an agent cannot misselect between competing options. The internal sub-operations (create_empty, batch, save) are documented within the single description rather than exposed as separate confusable tools.
With a single tool there is nothing to be inconsistent with, and codesys_engineering is clear and snake_case. It is a noun/domain name rather than the verb_noun convention, which is a minor deviation but not confusing.
A single monolithic tool covering an entire CODESYS engineering domain feels thin, essentially a dispatcher hiding create/batch/save operations behind one entry point. It is defensible as a deliberately minimal spawn-only wrapper, but offers no granular surface.
The offline project-file editing scope is coherent (create empty container, batch edits, optional save), but notable gaps exist: no read/inspect operations, no listing or deleting project objects, and explicitly no online/PLC or attach access. Agents can do write workflows but have limited introspection.