Codesys ToolkitSAFE
Model Context Protocol server for CODESYS automation platform
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server for CODESYS V3 programming environments. This toolkit enables seamless interaction between MCP clients (like Claude Desktop) and CODESYS, allowing automation of project management, POU creation, code editing, and compilation tasks via the CODESYS Scripting Engine.
🌟 Features
- Project Management
- Open existing CODESYS projects (
open_project) - Create new projects from standard templates (
create_project) - Save project changes (
save_project)
- POU Management
- Create Programs, Function Blocks, and Functions (
create_pou) - Set declaration and implementation code (
set_pou_code) - Create properties for Function Blocks (
create_property) - Create methods for Function Blocks (
create_method) - Compile projects (
compile_project)
- MCP Resources
codesys://project/status: Check scripting status and currently open project state.codesys://project/{+project_path}/structure: Retrieve the object structure of a specified project.codesys://project/{+project_path}/pou/{+pou_path}/code: Read the declaration and implementation code for a specified POU, Method, or Property accessor.
📋 Prerequisites
- CODESYS V3: A working CODESYS V3 installation (tested with 3.5 SP21) with the Scripting Engine component enabled during installation.
- Node.js: Version 18.0.0 or later is recommended.
- MCP Client: An MCP-enabled application (e.g., Claude Desktop).
(Note: CODESYS uses Python 2.7 internally for its scripting engine, but this toolkit handles the interaction; you do not need to manage Python separately.)
🚀 Installation
The recommended way to install is globally using npm:
npm install -g @codesys/mcp-toolkit
3e3574a4c38dOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-toolkit -- npx -y @codesys/[email protected]
{
"mcpServers": {
"mcp-toolkit": {
"command": "npx",
"args": [
"-y",
"@codesys/[email protected]"
]
}
}
}Exposed tools (8)
2 read · 6 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
compile_project | read | |
create_method | write | |
create_pou | write | |
create_project | write | |
create_property | write | |
open_project | read | |
save_project | write | |
set_pou_code | write |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, axios, commander, yargs, zod, @types/node, @types/yargs, typescript
open(path, password=None, primary=True, encryption_password=None, session_user=None, session_password=None, update_flags=VersionUpdateFlags.NoUpdates, allow_readonly=False)
Gates applied: no_behavioural_pass.
3e3574a4c38dfull audit observations/trust-audit/mcp-server/johannespettersson80__codesys-toolkit.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 3e3574a4c38d | SAFE | B | 89 | first audit |
Questions
What is the Codesys Toolkit MCP server?
Model Context Protocol server for CODESYS automation platform
What tools does Codesys Toolkit expose?
8 in total: 2 read-only, 6 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Codesys Toolkit safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Codesys Toolkit need?
No credential environment variables were found in its source, so it appears to need none.
How does Codesys Toolkit run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @codesys/mcp-toolkit at 1.1.16.
How current is this page?
The grade is for one exact copy of the source (3e3574a4c38d), read on 2026-10-07. The repository is watched and re-audited when it changes.