CODESYS MCP Toolkit — Claude Code MCP server: features and setup
The CODESYS MCP Toolkit MCP server for Claude Code reads and edits Structured Text in CODESYS V3.5 projects. It compiles code and runs checks in the CODESYS simulation.
MIT ★ 142 updated 2026-11-16
claude mcp add codesys-mcp-toolkit -- npx -y @codesys/mcp-toolkitWhat CODESYS MCP Toolkit does
The server gives an agent access to CODESYS project objects. It can inspect project structure, create or edit Structured Text, and compile the result. Code search is available too.
For testing, the server controls the CODESYS simulation: it can start it, step through cycles, and read or change values. It does not connect to real controllers. It requires Windows, CODESYS V3.5 with the Scripting add-on, and Node.js 20 or later.
What it helps with
- inspect objects and structure in a CODESYS project
- create or edit Structured Text code
- compile a project and retrieve errors
- test program behavior in the simulation
Example prompts for the agent
- Inspect the CODESYS project tree and find
PLC_PRG. - Create a Structured Text function block and compile the project.
- Start the CODESYS simulation and check the output value.
How to install CODESYS MCP Toolkit
Platform CLI
claude mcp add codesys-mcp-toolkit -- npx -y @codesys/mcp-toolkitPlatform CLI
codex mcp add codesys-mcp-toolkit -- npx -y @codesys/mcp-toolkitConfig file
{
"mcpServers": {
"codesys-mcp-toolkit": {
"command": "npx",
"args": [
"-y",
"@codesys/mcp-toolkit"
]
}
}
}Config file
{
"servers": {
"codesys-mcp-toolkit": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codesys/mcp-toolkit"
]
}
}
}Platform CLI
gemini mcp add codesys-mcp-toolkit npx -y @codesys/mcp-toolkitStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about CODESYS MCP Toolkit
How do I install CODESYS MCP Toolkit in Claude Code?
Run claude mcp add codesys-mcp-toolkit -- npx -y @codesys/mcp-toolkit. It requires Windows, CODESYS V3.5 with the Scripting add-on, and Node.js 20 or later.
What does CODESYS MCP Toolkit do?
It lets an agent inspect and edit Structured Text in CODESYS projects, compile code, and test it in the CODESYS simulation.
What does CODESYS MCP Toolkit require?
It requires Windows with CODESYS V3.5 and the Scripting add-on, plus Node.js 20 or later.