Skip to content
OT AI HubOT AI Hub

General coding agents for PLC work: Copilot, Cursor and Claude Code with Structured Text

GitHub Copilot, Cursor, and Claude Code are general coding agents. Their docs, opened 12 November 2026, describe editing files, running commands, and calling MCP servers. They do not name Structured Text, and they do not publish a PLC score. The project that fits those docs is one whose logic is already text, or an export a vendor documents as text or XML, in a place where Git can show a diff.

The word Copilot is not one product. GitHub Copilot is the editor assistant in the docs above. Siemens Industrial Copilot for TIA Portal is a different catalog entry. A Microsoft page defining a third product named Microsoft Copilot was not retrieved, so this guide does not describe it.

Vendor and product docs opened 12 November 2026. Catalog dates stay on each row.

This index did not install GitHub Copilot, Cursor, Claude Code, CODESYS, TwinCAT, TIA Portal, SIMATIC AX, or Studio 5000, and it did not connect an agent to a controller. A catalog note is not a new test. A vendor sentence is not a score.

CODESYS Development System MCP ServerCODESYS MCP Toolkittwincat-mcpTwinCAT CoAgentSiemens Industrial CopilotTIA PortalIEC 61131-3SIMATIC AX Structured Text

What GitHub, Cursor, and Claude Code document

Each cell restates a page opened on 12 November 2026. It does not add a Structured Text result, a price, or a PLC compatibility claim.

None of these three pages names Structured Text or a controller download.
QuestionGitHub CopilotCursorClaude CodePrimary source
What the opened page calls itAn AI assistant that helps you write, understand, and ship software. It suggests code as you type, answers questions, reviews changes, and works on tasks you assign.Agent is Cursor's assistant that can complete complex coding tasks independently, run terminal commands, and edit code. The overview says to open it with Cmd+I.An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with development tools. Surfaces named on the overview include the terminal, an IDE, a desktop app, and a browser.GitHub, Cursor, and Claude Code overviews
What agent mode is documented to doAgent mode takes a high-level task, decides which files to change, makes the edits, and runs commands until the task is done. You review the changes. By default you approve commands before they run. An administrator may disable agent mode. The page names Visual Studio Code, Visual Studio, JetBrains IDEs, Xcode, and Eclipse.Tools named on the agent page include file search, reading files, editing files, and shell commands. The page says there is no limit on the number of tool calls during a task. Checkpoints are stored locally and are separate from Git. The page says to use Git for permanent version control.The overview says Claude Code plans an approach, writes code across multiple files, and can stage changes, write commit messages, create branches, and open pull requests. The same page lists an install path for the VS Code extension inside Cursor.Agent-mode and overview pages
MCP, as the docs state itAgent mode can be extended with MCP servers for external systems and for GitHub. In Visual Studio Code the how-to uses a servers object in .vscode/mcp.json and says to select Agent in Copilot Chat. Visual Studio Code 1.99 or later is the prerequisite on that tab. The MCP servers in Copilot policy is disabled by default for Copilot Business and Copilot Enterprise seats under an organization that configures it. Copilot Free, Copilot Pro, Copilot Pro+, and Copilot Max are not governed by that policy.MCP connects Cursor to external tools. Documented transports are stdio, SSE, and streamable HTTP. Project config is .cursor/mcp.json. A personal file is ~/.cursor/mcp.json. Cursor asks for approval before using an MCP tool, by default.You add a remote HTTP server or a local stdio process. A project-scoped server is stored in .mcp.json and stays pending until you approve it in a trusted workspace. A url entry with no type is read as stdio and skipped. The overview also says a CLAUDE.md file in the project is read at the start of a session.MCP how-to pages
Structured Text or a PLC, on those pagesNot named on the About, agent-mode, or MCP pages opened for this guide.Not named on the Agent overview or the MCP page opened for this guide.Not named on the overview or the MCP page opened for this guide.Same three doc sets

Project setups whose vendor pages already talk about text

A row is a file format the opened page describes. It is not a ranking, and it is not a test this index ran.

SIMATIC AX is the page that says Structured Text files and Git. The other rows are exports or a different repository format.
SetupWhat the opened page statesPrimary source
SIMATIC AX, text Structured Text in GitThe Structured Text manual for software version 2510, edition 07/2026, says you write the program in Structured Text, organize it into files such as program.st, and that text-based ST files enable version control with Git. The product page says the IDE is based on VS Code, that source control is native Git, and that the source is human-readable plain text. It also describes loading entirely from SIMATIC AX, or configuring hardware in TIA Portal and downloading a delta from SIMATIC AX.SIMATIC AX Structured Text manual
TIA Portal Openness, SCL or STL sourceThe V21 GenerateSource page requires the Openness application to be connected, a project to be open, and the PLC not to be online. It generates UTF-8 sources from STL or SCL blocks, data blocks, and PLC data types. SCL uses a .scl file. The sample comment calls the result ASCII text. Blocks in any other language throw. The page does not say the TIA project is a Git folder of .st files.TIA Portal Openness, Generate source
Claude Code or Cursor with a TIA Openness MCP serverAnyAutomation's comparison, updated 10 November 2026, with third-party statements as of 25 October 2026, has a row named Claude Code or Cursor with a TIA Portal MCP server. The environment cell says TIA Portal via Openness. The approach cell says a coding agent plus a community MCP server, open source. The section says you can connect a coding agent to TIA Openness through an MCP server, that several community servers are on GitHub, and that installation, hardening, compile, tests, and diff review are the user's job. That section does not say the project is text Structured Text in Git, and the comparison does not name GitHub Copilot.AnyAutomation comparison
TwinCAT PLC projectBeckhoff's PLC intro says you can export or import an XML file in the PLCopen format. It says PLCopenXML defines a subset of the elements known in TwinCAT, so 100% compatibility is not ensured. The Automation Interface page for ITcPlcPou says DocumentXml is the entire object file as XML, and that setting it overwrites the POU file. Those pages do not name GitHub Copilot, Cursor, or Claude Code.Beckhoff PLCopen export
CODESYS PLCopen XML and CODESYS GitExport PLCopenXML opens a dialog of objects that can be written to an XML file in PLCopen format. The help says the model does not allow VAR_GLOBAL and VAR_GLOBAL CONSTANT to have blocks in the same variable list. The CODESYS Git best-practices page says CODESYS Git uses the .json file format, in contrast to the binary file format of CODESYS SVN, and that one Git repository manages only one CODESYS project. It does not say those JSON files are plain Structured Text.CODESYS Export PLCopenXML
Studio 5000 L5XLogix Designer help for the 38.01 path says a full project can be exported as an ASCII .L5K file or an XML .L5X file, and that routines and phase state routines of any language can be imported and exported as L5X. The help does not say a Structured Text routine is stored as a .st file inside the ACD project.Studio 5000 import and export

Which project files an editor can actually open

The three agent pages describe edits to files. They do not describe a ladder editor, a TIA Portal canvas, or a download button. The project setups in the table are the ones whose vendor pages, opened on 12 November 2026, already talk about text or XML. SIMATIC AX is the page that uses the phrase directly: Structured Text in files such as program.st, with Git. TIA Portal Openness, on the V21 page opened here, generates SCL or STL source, and SCL is the Siemens dialect this index files under IEC 61131-3. That is a text export while the PLC is not online. It is not the same sentence as SIMATIC AX's Git workflow.

AnyAutomation's row for Claude Code or Cursor is about a community MCP server in front of TIA Openness. Quote the approach cell as they printed it: a coding agent plus a community MCP server, open source. The following sentence on that page says installation and hardening are the user's job, the servers differ in scope and maturity, and compile, tests, and diff review are yours to organise. This index did not install those servers. The TIA Portal hub records two public READMEs opened on 6 November 2026 and does not list either as a catalog entry. This guide did not re-open them.

TwinCAT and CODESYS document a PLCopen XML export, and both warn that the exchange format is a subset. Beckhoff says 100% compatibility is not ensured. CODESYS adds the variable-list restriction above. CODESYS Git is a second path: JSON in the repository, contrasted on that page with the binary format of CODESYS SVN, one project per repository. An editor can open the JSON. The best-practices page does not call it Structured Text. Studio 5000's text file, on the help page opened here, is an L5X or L5K export, including routines of any language. The ACD project itself is not described there as a folder of .st files.

Copilot is more than one product

GitHub Copilot, on the About page opened 12 November 2026, is the assistant inside the development workflow: suggestions, questions, review, and tasks you assign. Agent mode edits files and can call MCP servers. Those pages do not mention a PLC. Each agent-mode prompt consumes GitHub AI Credits, which is the unit the agent-mode page names. The page does not print a price.

Siemens Industrial Copilot for TIA Portal is a catalog entry last verified 3 November 2026. The note says it was announced at Hannover Messe 2024, offered from the Siemens Xcelerator marketplace starting summer 2024, and that Siemens said it uses Azure OpenAI. The scope on that note is SCL generation and explanation, a starter WinCC Unified view, and documentation search. Eigen Engineering Agent is a later Siemens agent that acts inside an open TIA Portal project. The catalog note says to treat them as two generations, not two names for one SKU. Neither note describes GitHub Copilot. The pair is set out on Eigen vs Siemens Industrial Copilot, and the wider set of IDE assistants is on Industrial AI assistants.

A Microsoft page that defines a separate assistant named Microsoft Copilot was not retrieved on 12 November 2026. This guide does not describe that product, and it does not guess what it edits. FactoryTalk Design Studio Copilot and Automation Studio CoPilot are further names already in the catalog. They are IDE assistants, not GitHub Copilot. PLC copilots compared is the table for those vendor products.

MCP servers already listed for CODESYS and TwinCAT

These catalog rows sit on an engineering project. CODESYS Development System MCP Server is classified inside the IDE. The CODESYS product page opened 12 November 2026 says the add-on exchanges data between LLM systems and the Development System, for CODESYS V3.5 SP22 or later, licensed through the Professional Developer Edition. It says exchange has succeeded with Claude Desktop and with OpenAI/GPT-5, and that the server talks to cloud AIs and to local LLMs. It does not name GitHub Copilot, Cursor, or Claude Code. Claude Desktop, on that page, is not the Claude Code overview opened for this guide. The catalog note last verified 20 November 2026 says help text reported by LADX describes the server as local stdio. This guide did not open that LADX page, so it does not print a launch command.

CODESYS MCP Toolkit is a separate row, also classified inside the IDE. The README opened 3 December 2026 says the project is independent and is not affiliated with or endorsed by CODESYS GmbH, and that the license is MIT. It says Windows, CODESYS V3.5 with the Scripting add-on, and Node.js 20 or later. It says the toolkit was tested with SP21 and SP22 on Scripting 4.2, and SP21 on 4.1, and that SP16 and later should work. That wording is the README's. The highlights say: "Never touches a real controller. The only online connection is to CODESYS's own simulation, and every online call checks for it first." This guide did not install it.

twincat-mcp is classified writes gated, last verified 3 November 2026. The README opened 12 November 2026 is a different reading from that note, and this page does not rewrite the row. That README says application version 3.1.0, three public tools (twincat_search, twincat_describe, and twincat_execute), and a stdio launch: a python.exe command and an argument pointing at mcp-server/server.py. It requires Windows, Python 3.10 or newer, TwinCAT XAE, Visual Studio MSBuild, the .NET Framework 4.7.2 targeting pack, and Beckhoff's TcXaeMgmt module. It says workflow.deploy builds, activates, and restarts. It says a grant is not proof the user approved the call, that the calling host owns consent, and that the server should not be exposed as an unauthenticated network service. It says it is not affiliated with Beckhoff. This index did not run it. The ADS tag on the catalog row is the field path. It is not a text export.

TwinCAT CoAgent is a Beckhoff product, last verified 4 November 2026. The catalog note says Beckhoff describes it as an MCP client, that customers can attach their own MCP servers, and that the unofficial twincat-mcp project is different software. This guide did not re-open the Beckhoff product page. Pointing Cursor at twincat-mcp is not the same step as opening CoAgent.

The config keys do not match across the three agents. GitHub's Visual Studio Code example uses a servers object. Cursor uses mcpServers in .cursor/mcp.json. Claude Code uses .mcp.json, and a url with no type is an error. This page does not merge the twincat-mcp fragment into those files, because it did not connect the server. No TIA Openness MCP server is a catalog entry. How to choose an industrial MCP server is the page for matching a server to a job and a write gate. Is it safe to connect AI to a PLC? is the page for what a write label means. After a draft exists, how to verify AI-generated PLC code covers the compile, the unit test, the simulation, and the changeset review. This page did not run those checks.

Guidance from this index, not a test it ran

Review the diff before you treat an edit as the project. GitHub's agent-mode page says you review the changes. Cursor's agent page says checkpoints are separate from Git and that Git is what you use for permanent version control. Claude Code's overview says it can create commits and pull requests, which is a reason to read the diff before accepting the commit. None of those sentences was checked here against a PLC project.

Compile in the vendor tool, and keep a download off the agent. The TIA Portal V21 GenerateSource page requires the PLC not to be online for that call. The twincat-mcp README describes workflow.deploy as build, activate, and restart, and says a grant does not prove the user approved it. AnyAutomation says compile, tests, and diff review are yours to organise when the agent is a community TIA Openness server. A suggestion that looks like Structured Text is not a simulation, and this index did not run one. Do not let an agent download to a live controller.

FAQ

Can GitHub Copilot write Structured Text?

The GitHub pages opened on 12 November 2026 say Copilot suggests code, edits files in agent mode, and can call MCP servers. They do not name Structured Text or a PLC. A .st file or a text export is a file an editor can open. This index did not run Copilot on one.

Does Cursor work for PLC programming?

Cursor's agent page, opened 12 November 2026, says Agent edits files, searches the project, and runs terminal commands. The MCP page lists stdio, SSE, and streamable HTTP. Neither page names a PLC. A text export in Git is a folder those tools can open. This index did not install Cursor.

Can Claude Code connect to a PLC?

Claude Code's overview, opened 12 November 2026, calls it an agentic coding tool that reads a codebase, edits files, and runs commands. The MCP page says you add an HTTP server or a local stdio process. It does not name a PLC download. CODESYS names Claude Desktop, not Claude Code. This index did not connect one.

What is the best AI for Structured Text?

No page opened on 12 November 2026 ranks a model for Structured Text. Siemens documents program.st files and Git in SIMATIC AX, software version 2510. Other opened pages describe exports: TIA Openness SCL source, TwinCAT or CODESYS PLCopen XML, CODESYS Git JSON, or a Studio 5000 L5X file. This index did not score them.

Is GitHub Copilot the same as Siemens Industrial Copilot?

No. GitHub's 2026 docs describe an assistant that writes software, with agent mode and MCP servers. The catalog note for Siemens Industrial Copilot for TIA Portal, last verified 3 November 2026, describes SCL help inside TIA Portal and says Siemens named Azure OpenAI. Eigen is a later Siemens agent. They are not one product.

Is Microsoft Copilot a PLC programming tool?

This guide did not retrieve a Microsoft page that defines a product named Microsoft Copilot, so it does not describe one. On 12 November 2026 the pages that did open use Copilot for GitHub's editor assistant or for Siemens Industrial Copilot for TIA Portal. Those are different products.

Which MCP servers in this index reach CODESYS or TwinCAT?

As of 3 December 2026 the catalog lists the CODESYS Development System MCP Server, CODESYS MCP Toolkit, and unofficial twincat-mcp. CODESYS says the add-on talks to cloud and local models and names Claude Desktop and GPT-5. The toolkit README says the only online connection is to CODESYS's own simulation. The twincat-mcp README says workflow.deploy builds, activates, and restarts. No TIA Openness MCP server is listed. This index did not run them.

Should a coding agent download to a live PLC?

Guidance from this index, not a download it ran: review the diff, compile in the vendor tool, and do not let an agent activate a live controller. The TIA Portal V21 GenerateSource page requires the PLC not be online. The twincat-mcp README opened on 12 November 2026 says a grant is not proof the user approved the call.

Sources

The GitHub, Cursor, Claude Code, Siemens, Beckhoff, CODESYS, Rockwell, and AnyAutomation pages linked here were opened on 12 November 2026. A Microsoft page for a product named Microsoft Copilot was requested and was not retrieved. Catalog rows were not re-fetched. The twincat-mcp README was opened the same day and was not copied back into the catalog note.