Guide · VS Code

Use GitHub Copilot in VS Code with Siemens TIA Portal

Give Copilot agent mode access to your TIA Portal V17–V21 project through the TAIPilot MCP server: PLC code, compile, tests in PLCSIM.

What you get

The agent mode of GitHub Copilot in VS Code can use MCP servers. With TAIPilot added, Copilot works in your TIA Portal project: it reads blocks and tags, imports SCL sources, compiles, reads the compiler messages and tests the result in PLCSIM — through the official Siemens Openness interface.

Setup

  1. Download and install TAIPilot on the PC where TIA Portal runs. An administrator adds your Windows user to the group Siemens TIA Openness once.
  2. In the installer, tick VS Code. Skipped it? Register later:
    "C:\Program Files\TAIPilot\TAIPilot.Setup.exe" register --vscode
  3. Restart VS Code and switch the Copilot chat to agent mode.

By hand: the user mcp.json (command MCP: Open User Configuration) or .vscode\mcp.json in a workspace. Note that the key is servers:

{
  "servers": {
    "tia-v21": { "type": "stdio", "command": "C:\\Program Files\\TAIPilot\\TAIPilot.exe", "args": [] }
  }
}

First prompts to try

  • “Connect to TIA Portal, list the blocks of PLC_1 and compile.”
  • “Export the program of PLC_1 to this workspace.” — then edit the sources in VS Code and ask Copilot to import and compile them.
  • “Show the cross-references of DB_Station.”

You stay in control

Policies the AI cannot change, an approval window for risky steps, change sets with rollback and a tamper-evident audit log work the same with every client. Passwords are typed into a TAIPilot dialog and never reach the AI. Details: Security & trust.

Good to know

  • TAIPilot is tested most with Claude; Copilot uses the same MCP tools.
  • What Copilot reads through the tools is sent to the AI provider behind your Copilot subscription.
  • TAIPilot runs on Windows next to TIA Portal V17–V21. The free edition has 34 core tools; the paid plans add the rest.

Other clients: Claude, Cursor. Full guide: Getting started.