TIATool

Guide · Updated

Can I use Cursor or VS Code with TIA Portal?

Yes. TIATool registers as an MCP server in Cursor and VS Code, so the AI chat in either editor can call TIA Portal tools on your Windows engineering PC. With your licensed TIA Portal V19 or V21 and Openness on that PC, the assistant exports, analyses, builds, compiles and verifies projects for you.

How it fits together

Cursor and VS Code are the MCP clients: their chat shows TIATool’s tools to the model you pick. TIATool is the MCP server on the same PC, and it drives TIA Portal through Openness. TIA Portal stays your engineering tool; the editor becomes the place where you ask questions, keep SCL sources and read diffs.

The editor never opens a .ap19 or .ap21 project itself. The assistant works through tools: it exports the project to SIMATIC ML, scans it into a local cache, and builds blocks from SCL source folders.

Set up Cursor

  1. Install TIATool

    The installer registers Cursor when its box is ticked, which it is by default.

    PowerShell
    irm https://tiatool.dev/install.ps1 | iex
  2. Register Cursor again if needed

    Writes the tiatool entry to %USERPROFILE%\.cursor\mcp.json and keeps your other servers.

    PowerShell
    tiax-agent setup --client cursor
  3. Restart Cursor

    Look for tiatool under Settings → MCP.

  4. Let the tools run

    If you keep an mcpAllowlist in ~/.cursor/permissions.json, setup adds tiatool:* to it. Otherwise allow TIATool in Cursor Settings > Agents; setup does not create that file, because it would replace Cursor’s own allowlist and switch Auto-review off.

Set up VS Code

  1. Register VS Code

    Writes the tiatool entry under servers in %APPDATA%\Code\User\mcp.json.

    PowerShell
    tiax-agent setup --client vscode
  2. Restart and start the server

    Open the MCP servers list in the chat view and start tiatool if it is not running.

  3. Approve the tools once

    Run Chat: Manage Tool Approval and tick tiatool, so its tools run without a prompt.

  4. Test

    Ask the chat to run tia_status. It answers with the TIATool version and what it can see.

    Tools: tia_status

An editor workflow for SCL

An editor is at its best where code lives in files. TIATool keeps the loop file-based and reversible:

  1. Export to a folder you version

    One SIMATIC ML file per block, tag table and type. Volatile timestamps are blanked by default, so git records semantic changes only, and inside a git work tree the export also removes the files of deleted blocks.

    PowerShell (for a V21 project: tiax-v21 export)
    tiax export "C:\TIA\Line3\Line3.ap19" "C:\TIA\Line3\exports"
    tiax scan "C:\TIA\Line3\exports"

    Tools: export_project · refresh_scan

  2. Write SCL next to it

    Keep *.scl sources, TagTables/*.xml and an optional hardware.json in a source folder. scl_lint checks a source before it goes anywhere near TIA Portal.

    Tools: scl_lint

  3. Preview, then build

    build_from_source with dry_run prints the full plan in seconds and opens nothing. The real run takes a backup, generates the blocks and compiles. The source folder is the truth, so re-running is safe.

    Tools: build_from_source

  4. Verify and diff

    verify_change checks that only the intended blocks changed; project_diff shows interface, network and call changes between two scans.

    Tools: verify_change · project_diff

The project workspace (plan, assumptions, decisions, journal, findings) is plain text too, so it can live in the same repository. More on the build loop: can AI write SCL safely?

Cursor or VS Code: what differs

  • Setup id

    Cursor
    cursor
    VS Code
    vscode
  • Config file

    Cursor
    %USERPROFILE%\.cursor\mcp.json
    VS Code
    %APPDATA%\Code\User\mcp.json
  • Check that it is connected

    Cursor
    Settings → MCP lists tiatool
    VS Code
    The MCP servers list in the chat view
  • Tools run without a prompt

    Cursor
    tiatool:* in your mcpAllowlist, or Cursor Settings > Agents
    VS Code
    Chat: Manage Tool Approval, tick tiatool once

Builds and compiles take minutes; if a call times out, raise the editor’s own tool timeout. Using Windsurf/Devin Desktop or Cline? tiax-agent setup --client windsurf or --client cline registers those too (every client and its file).

Limits

  • Run the editor on the engineering PC itself. TIATool works next to TIA Portal and Openness, and its optional HTTP transport listens on 127.0.0.1 only.
  • Windows 10 or 11 (64-bit), with your own licensed TIA Portal V19 or V21 with Openness.
  • The model is the one you pick in Cursor or VS Code; TIATool includes none.
  • Siemens does not open all of TIA Portal, so some calls depend on the project, the panel and the TIA version, and the assistant says when one cannot be done.

Frequently asked questions

Which AI model does TIATool use in Cursor or VS Code?

The one you pick in the editor. TIATool includes no model and does not resell AI usage; the editor sends tool answers to its provider under that provider’s terms. TIATool itself sends no telemetry.

Do I need TIA Portal open while I work in the editor?

No. Close the project in the TIA Portal window: tools that open a project refuse while the TIA Portal UI has it open, so they never work against your unsaved edits. Questions about a scanned project need no TIA Portal at all.

Can I use the editor on another computer?

Use it on the Windows engineering PC that has TIA Portal. TIATool runs next to TIA Portal and Openness, and its HTTP transport listens on 127.0.0.1 only.

Can I register both editors?

Yes: tiax-agent setup --client cursor,vscode. Both use the same TIATool installation and the same seat on that PC.

Does it work with Cline or Windsurf?

Yes. tiax-agent setup --client cline registers TIATool in the file Cline 4.x reads, and --client windsurf registers it for Windsurf/Devin Desktop. tiax-agent doctor lists every client TIATool is registered in.

More guides

Reference

Try it on your own project.

All 75 tools and every update, running on your engineering PC. After the trial a seat is €99.99 a month or €999.99 a year, one PC per seat.

Every plan starts with a 3-day free trial. A card is required at checkout; cancel in your account before the trial ends and nothing is charged.