Codesys-mcp-toolkit
MCP ServerFree** - A Model Context Protocol (MCP) server for CODESYS V3 programming environments.
Capabilities10 decomposed
mcp protocol translation to codesys scripting engine operations
Medium confidenceImplements a Model Context Protocol server that translates standardized MCP requests into CODESYS Scripting Engine operations through a layered architecture. The McpServer class from the MCP SDK handles protocol negotiation and request routing, while a Python script execution layer bridges MCP tool calls to CODESYS automation APIs. This enables AI clients (like Claude Desktop) to programmatically control CODESYS V3 environments without direct API knowledge.
Implements MCP as a bridge to CODESYS Scripting Engine rather than wrapping REST APIs, enabling direct automation environment control. Uses Python script templating to generate and execute CODESYS-specific automation scripts, avoiding the need for compiled CODESYS plugins.
Provides standardized MCP protocol access to CODESYS where no native MCP server existed, enabling AI integration without custom REST API development or CODESYS plugin compilation.
codesys project lifecycle management via mcp tools
Medium confidenceExposes MCP tools for complete project lifecycle operations: open_project, create_project, save_project, and compile_project. Each tool translates MCP parameters into Python scripts that invoke CODESYS Scripting Engine APIs to manipulate project files, manage in-memory project state, and trigger compilation with error reporting. The toolkit maintains awareness of the currently open project context across multiple tool invocations within a single MCP session.
Manages CODESYS project state across multiple MCP tool invocations within a single session, maintaining context of the currently open project. Uses Python script generation to invoke CODESYS Scripting Engine APIs directly, avoiding the need for external build tools or command-line compilers.
Provides programmatic project management without requiring CODESYS GUI interaction or external build system integration, enabling seamless AI-driven automation workflows.
pou (program organization unit) code generation and manipulation
Medium confidenceImplements MCP tools for creating and modifying POUs (Programs, Function Blocks, Functions) with separate declaration and implementation code sections. The create_pou tool generates new POUs with specified type and initial code, while set_pou_code updates existing POU code. The toolkit reads POU code through MCP resources (codesys://project/{path}/pou/{pou_path}/code) that parse CODESYS project XML to extract declaration and implementation sections separately, enabling AI systems to understand and modify POU structure.
Separates POU declaration and implementation code into distinct read/write operations, enabling AI systems to understand and modify POU interfaces independently from implementation logic. Uses CODESYS project XML parsing to extract code sections without requiring CODESYS GUI interaction.
Provides structured POU code access and generation where CODESYS GUI requires manual editing, enabling programmatic code generation and analysis for AI-assisted development.
function block property and method generation
Medium confidenceExposes MCP tools create_property and create_method for adding properties and methods to Function Blocks. These tools generate Python scripts that invoke CODESYS Scripting Engine APIs to add typed properties (with getter/setter code) and methods (with parameters and return types) to existing Function Blocks. The toolkit handles the code generation for property accessors and method stubs, reducing boilerplate for AI-assisted development.
Automates property and method stub generation for Function Blocks through MCP tools, reducing manual boilerplate while maintaining CODESYS Scripting Engine compatibility. Generates getter/setter code patterns automatically rather than requiring manual implementation.
Provides programmatic Function Block interface scaffolding where CODESYS GUI requires manual property/method creation, enabling faster AI-assisted development of complex Function Block hierarchies.
project structure introspection via mcp resources
Medium confidenceImplements MCP resource endpoints (codesys://project/{path}/structure) that parse CODESYS project XML files to expose hierarchical project structure as queryable resources. The toolkit extracts object metadata (POUs, properties, methods, variables) from the project file and returns structured JSON representations without requiring CODESYS GUI interaction. This enables AI clients to understand project topology for code generation, refactoring, or analysis tasks.
Parses CODESYS project XML directly to expose structure as MCP resources without requiring CODESYS GUI or Scripting Engine execution, enabling fast read-only access to project metadata. Returns hierarchical JSON representation suitable for AI context and code generation planning.
Provides fast, read-only project structure access without CODESYS process overhead, enabling AI systems to understand project topology for informed code generation decisions.
codesys scripting engine status monitoring via mcp resources
Medium confidenceImplements MCP resource endpoint (codesys://project/status) that queries CODESYS Scripting Engine state and returns current project status, including whether a project is open, the current project file path, unsaved changes flag, and scripting engine availability. This resource is generated by executing a Python script that invokes CODESYS Scripting Engine APIs to introspect runtime state, enabling MCP clients to determine system readiness before executing project operations.
Provides real-time CODESYS Scripting Engine status through MCP resources by executing Python scripts that query engine APIs, enabling clients to detect system readiness without direct CODESYS process access. Returns structured status object suitable for conditional workflow logic.
Enables MCP clients to verify CODESYS availability and project state before executing operations, preventing failed automation attempts and improving error handling in CI/CD pipelines.
python script template generation and execution for codesys automation
Medium confidenceImplements a Python script templating system that generates CODESYS Scripting Engine automation scripts from MCP tool parameters. The toolkit maintains Python script templates for each operation (project management, POU creation, compilation) that are populated with parameters and executed via subprocess calls. This approach decouples MCP protocol handling from CODESYS-specific logic, enabling easy extension with new operations and version-specific script variants.
Uses Python script templating to generate and execute CODESYS Scripting Engine operations, enabling version-specific automation without modifying core MCP server code. Decouples protocol handling from CODESYS-specific logic through subprocess-based execution.
Provides extensible automation through script templates rather than compiled plugins, enabling rapid addition of new CODESYS capabilities and support for multiple CODESYS versions without recompilation.
multi-installation codesys environment management
Medium confidenceSupports configuration and management of multiple CODESYS installations through environment variables and configuration files. The toolkit can target different CODESYS versions or instances by specifying installation paths, enabling users to work with multiple CODESYS environments through a single MCP server. Configuration is managed via command-line options and environment variables that are passed to Python scripts for installation-specific scripting engine access.
Enables single MCP server to target multiple CODESYS installations through configuration-based installation path management, allowing teams to work with heterogeneous CODESYS environments without separate server instances per version.
Provides flexible multi-installation support through configuration rather than requiring separate MCP server instances, simplifying deployment for teams with multiple CODESYS versions.
cli entry point for standalone mcp server execution
Medium confidenceProvides a command-line interface (codesys-mcp-tool binary) that launches the MCP server with configurable options for CODESYS installation path, logging level, and port binding. The CLI entry point (dist/bin.js) parses command-line arguments and initializes the McpServer with specified configuration, enabling deployment as a standalone service or integration into automation frameworks. Supports both stdio-based MCP communication (for Claude Desktop integration) and network-based communication.
Provides lightweight CLI entry point that launches MCP server with minimal configuration, enabling easy integration with Claude Desktop and containerized deployment without requiring Node.js development knowledge.
Simplifies MCP server deployment through CLI interface rather than requiring programmatic server initialization, enabling non-developers to launch and configure the server.
error handling and reporting with codesys-specific error context
Medium confidenceImplements error handling that captures CODESYS Scripting Engine errors, compilation errors, and script execution failures, returning structured error responses through MCP protocol. Compilation errors include line numbers, column positions, and error messages extracted from CODESYS compiler output. Script execution errors are captured from Python subprocess stderr and mapped to user-friendly MCP error responses with diagnostic context.
Captures and structures CODESYS-specific errors (compilation errors with line/column info, scripting engine failures) into MCP error responses, enabling AI systems to understand and respond to automation failures with diagnostic context.
Provides CODESYS-aware error reporting with line/column information rather than generic error messages, enabling AI systems to understand and fix compilation errors automatically.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with Codesys-mcp-toolkit, ranked by overlap. Discovered automatically through the match graph.
PiAPI
** - PiAPI MCP server makes user able to generate media content with Midjourney/Flux/Kling/Hunyuan/Udio/Trellis directly from Claude or any other MCP-compatible apps.
codebase-memory-mcp
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
phoenix-ai
GenAI library for RAG , MCP and Agentic AI
Sourcerer
** - MCP for semantic code search & navigation that reduces token waste
memory-bank-mcp
A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.
slite-mcp-server
'Slite MCP server'
Best For
- ✓Industrial automation teams integrating AI assistants into CODESYS workflows
- ✓Developers building automation tools that need to control multiple CODESYS installations
- ✓Organizations standardizing on MCP for tool integration across heterogeneous environments
- ✓CI/CD pipeline builders automating CODESYS project compilation and validation
- ✓AI-assisted code generation systems that need to persist changes to CODESYS projects
- ✓Multi-project automation environments where project switching must be automated
- ✓AI code generation systems targeting industrial automation logic
- ✓Developers using Claude or similar AI assistants to write CODESYS automation code
Known Limitations
- ⚠Requires CODESYS V3 with Scripting Engine enabled — not compatible with CODESYS 2.3 or earlier
- ⚠Python script execution adds latency (~500ms-2s per operation) compared to direct API calls
- ⚠Single-threaded request processing — concurrent MCP requests are queued sequentially
- ⚠No built-in authentication beyond CODESYS project file permissions
- ⚠Project creation limited to standard CODESYS templates — custom project structures require manual setup
- ⚠Compilation errors are reported as text strings without structured AST-level error metadata
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
About
** - A Model Context Protocol (MCP) server for CODESYS V3 programming environments.
Categories
Alternatives to Codesys-mcp-toolkit
Are you the builder of Codesys-mcp-toolkit?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →