Guide · Cursor

Use Cursor with Siemens TIA Portal

Add the TAIPilot MCP server to Cursor and let its agent work in your TIA Portal V17–V21 project: PLC code, compile, tests in PLCSIM.

What you get

The Cursor agent can use MCP servers. With TAIPilot added, the agent works in your TIA Portal project instead of only in text files: 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 Cursor. Skipped it? Register later:
    "C:\Program Files\TAIPilot\TAIPilot.Setup.exe" register --cursor
  3. Restart Cursor.

By hand: %USERPROFILE%\.cursor\mcp.json, or .cursor\mcp.json in a project:

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

Keep the tool list short

TAIPilot has many tools, and a long tool list costs context. A profile shows the agent only what a task needs — for example plc for programming or review for analysis. Set it with the environment variable TAIPILOT_PROFILE:

{
  "mcpServers": {
    "tia-v21": {
      "command": "C:\\Program Files\\TAIPilot\\TAIPilot.exe",
      "args": [],
      "env": { "TAIPILOT_PROFILE": "plc" }
    }
  }
}

First prompts to try

  • “Connect to TIA Portal, list the blocks of PLC_1 and compile.”
  • “Export the program of PLC_1 to this folder.” — then edit the sources in Cursor and ask the agent to import and compile them.
  • “Run a code check on PLC_1 and summarise the findings.”

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; Cursor uses the same MCP tools.
  • What the agent reads through the tools is sent to the AI provider configured in Cursor.
  • 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, GitHub Copilot in VS Code. Full guide: Getting started.