PLC Agentics
Provides tools for Mitsubishi MELSEC PLC programming, including brand configuration for GX Works 3, supported languages (LD, ST, FBD, SFC), and code templates for automation patterns.
Provides tools for Schneider Electric PLC programming, including brand configuration for EcoStruxure Control Expert, supported languages (ST, LD, FBD, SFC, IL), and code templates for automation patterns.
Provides tools for Siemens S7 PLC programming, including brand configuration for TIA Portal V17+, supported languages (SCL, LAD, FBD, STL, GRAPH), and code templates for automation patterns.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PLC Agentics Write a motor start/stop with fault latch in SCL for a Siemens S7-1500"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PLC Agentics
An MCP server that gives any AI expert-level knowledge of PLC programming (IEC 61131-3).
What it does
PLC Agentics is a Model Context Protocol server. It gives AI assistants such as Claude Desktop, ChatGPT or Gemini structured knowledge about PLC brands, IEC 61131-3 languages and proven code templates.
Describe what you need in plain language ("a motor start/stop with fault latch for a Siemens S7-1500") and the model uses these tools to generate code that matches the target IDE, language and conventions.
It runs over stdio for MCP clients. An optional HTTP mode exposes the same tools as a REST API for assistants without MCP support.
Related MCP server: THE_Studio5000_AI_Assistant_V35
Supported brands
Brand | IDE | Languages |
Siemens S7 | TIA Portal V17+ | SCL, LAD, FBD, STL, GRAPH |
Allen-Bradley / Rockwell | Studio 5000 Logix Designer | LD, ST, FBD, SFC |
CODESYS 3.5 | CODESYS Development System | ST, LD, FBD, SFC, IL, CFC |
Schneider Electric | EcoStruxure Control Expert | ST, LD, FBD, SFC, IL |
Mitsubishi MELSEC | GX Works 3 | LD, ST, FBD, SFC |
Omron NJ/NX | Sysmac Studio | ST, LD, FBD, SFC |
Beckhoff TwinCAT 3 | TwinCAT 3 XAE | ST, LD, FBD, SFC, IL, CFC |
Installation
Claude Desktop (recommended)
Add this to your Claude Desktop config (~/.config/Claude/claude_desktop_config.json on Linux):
{
"mcpServers": {
"plc-agentics": {
"command": "npx",
"args": ["-y", "plc-agentics"]
}
}
}From source
git clone https://github.com/lucasavilanoriega-ux/plc-agentics.git
cd plc-agentics
npm install
node src/cli.js --helpHTTP mode (ChatGPT / Gemini / DeepSeek)
HTTP_PORT=3000 node src/cli.js serveEndpoints: GET /openapi.json, GET /tools, POST /tool/<name>.
Available MCP tools
Tool | Description |
| Lists the supported PLC brands |
| Returns IDE, languages, naming and export conventions for a brand |
| Returns a code template for an automation pattern in a chosen language |
| Lists all available code templates |
| Returns IEC 61131-3 language and topic reference |
Code templates
motor_control: start/stop/fault with manual/auto modepid_loop: closed-loop PID with output scalingconveyor_sequence: multi-zone sequencer with jam detectionsafety_estop: dual-channel E-stop monitoring and restartalarm_management: priority, acknowledge, reset and historybatch_recipe: ISA-88 inspired step sequencermodbus_read: cyclic Modbus TCP holding-register read
Run list_templates for the full, current list.
Usage examples
"Write a motor control block in SCL for a Siemens S7-1500 with fault latch."
"Give me a PID loop in Structured Text for CODESYS with anti-windup."
"Create an alarm manager for Allen-Bradley with acknowledge and history."
"Build a 3-zone conveyor sequence for Beckhoff TwinCAT."
Generated code must be reviewed and tested by a qualified engineer before it runs on real equipment. This applies especially to safety functions.
Deploying the landing page
The landing page is a static index.html and deploys to Vercel with no build step.
See vercel.json for headers and caching.
Contributing
See CONTRIBUTING.md. Fork, branch, open a PR.
License
MIT
Available Tools
5 toolsget_brand_configA
Returns brand-specific configuration for a PLC: memory areas, data types, naming conventions, ST syntax quirks, supported IEC 61131-3 languages, and project structure. Always call this before generating code for a specific brand.
Inputs: brand (required).
get_code_templateA
Returns a ready-to-adapt IEC 61131-3 code template for a common automation pattern. Use this as the structural starting point, then fill in the user-specific logic.
Inputs: pattern (required), language.
get_iec61131_referenceA
Returns IEC 61131-3 language reference: keywords, standard function blocks, data types, and syntax rules for the requested language. Use this to ensure generated code is spec-compliant.
Inputs: language (required), topic.
list_brandsA
Returns all PLC brands and IDEs supported by PLC Agentics, with their common programming languages.
Inputs: no named parameters.
list_templatesA
Lists all available code templates with a short description of each.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose within the PLC knowledge lookup domain: listing brands vs. getting brand config, listing templates vs. retrieving a template, and fetching IEC 61131-3 reference. The descriptions explicitly clarify when to use each, so an agent should not confuse them.
All names follow a consistent snake_case verb_noun pattern: list_brands, list_templates, get_brand_config, get_code_template, get_iec61131_reference. The convention is predictable throughout the set.
Five tools is well-scoped for a reference/lookup server focused on PLC brands, templates, and language references. Each tool earns its place and there is no redundant or trivial tool.
The surface covers the core lookup lifecycle: discover brands, retrieve brand configuration, list and retrieve code templates, and access IEC 61131-3 syntax rules. Minor gaps remain, such as a dedicated validation tool or template search by pattern, but agents can work around these using existing tools.
Maintenance
Related MCP Connectors
Query Allen-Bradley, Siemens and CODESYS V3 PLC projects, live tags and analyses in plain English.
Connect assistants to your workspace knowledge, skills, and work tools.
Bring your organization's expert knowledge, and the work of capturing it, into your AI assistant.
Company and industrial data for AI assistants: datasets, SQL, dashboards, alarms, with approvals.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered PLC programming with natural language to ladder logic conversion, L5X and .ACD project generation, and semantic search through L5X files and documentation.44-
- FlicenseNot gradedqualityBmaintenanceConverts natural language specifications into working ladder logic and complete Studio 5000 projects, enabling AI-powered PLC programming with L5X and .ACD file generation, semantic search, and documentation access.-
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to connect to Allen-Bradley, Siemens, and CODESYS PLC projects for discovering, asking questions about, analyzing, and proposing code changes, with access to live tag values and version exports under permission-scoped controls.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to automate CODESYS V3 PLC development, including project editing, builds, library and alarm management, online variable read/write/force operations, and CODESYS documentation search via MCP.4MIT