codesys-mcp-toolkit
codesys-mcp-toolkit is an MCP server for CODESYS V3.5 projects that lets Claude or other MCP clients directly read, write, compile, and simulate Structured Text. It maintains a CODESYS session in the background and uses the real CODESYS compiler to work with real projects, supporting editing of POUs, methods, properties, interfaces, DUTs, and GVLs; compile errors return the object, line number, and error code. It can also run in CODESYS's built-in simulation, step by cycle, read, write, and force variables, and provides a live panel with the project tree, code, compile results, and per-item accept/revert. In addition, it can generate browser HMIs and native CODESYS visualizations, export P&ID drawings, generate project reports, and export plain-text source code for git management. The runtime environment is Windows, CODESYS V3.5 with the Scripting plugin, and Node.js 20 or later; it connects only to CODESYS simulation and does not touch real controllers.