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
Install TIATool
The installer registers Cursor when its box is ticked, which it is by default.
PowerShell irm https://tiatool.dev/install.ps1 | iexRegister Cursor again if needed
Writes the
tiatoolentry to%USERPROFILE%\and keeps your other servers..cursor\ mcp.json PowerShell tiax-agent setup --client cursorRestart Cursor
Look for tiatool under Settings → MCP.
Let the tools run
If you keep an
mcpAllowlistin~/, setup adds.cursor/ permissions.json 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
Register VS Code
Writes the
tiatoolentry underserversin%APPDATA%\.Code\ User\ mcp.json PowerShell tiax-agent setup --client vscodeRestart and start the server
Open the MCP servers list in the chat view and start tiatool if it is not running.
Approve the tools once
Run Chat: Manage Tool Approval and tick tiatool, so its tools run without a prompt.
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:
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
Write SCL next to it
Keep
*.sclsources,TagTables/and an optional*.xml hardware.jsonin a source folder.scl_lintchecks a source before it goes anywhere near TIA Portal.Tools: scl_lint
Preview, then build
build_from_sourcewithdry_runprints 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
Verify and diff
verify_changechecks that only the intended blocks changed;project_diffshows 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 yourmcpAllowlist, or Cursor Settings > Agents- VS Code
- Chat: Manage Tool Approval, tick tiatool once
| Topic | Cursor | VS Code |
|---|---|---|
| Setup id | cursor | vscode |
| Config file | %USERPROFILE%\ | %APPDATA%\ |
| Check that it is connected | Settings → MCP lists tiatool | The MCP servers list in the chat view |
| Tools run without a prompt | tiatool:* in your mcpAllowlist, or Cursor Settings > Agents | 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
- AI-written SCLCan AI write SCL for S7-1500 safely?
- MCP server for TIA PortalWhat is an MCP server for TIA Portal?
- Claude and TIA PortalHow do I use Claude with Siemens TIA Portal?
- Analyse an inherited projectHow do I analyse an inherited TIA Portal project fast?
- Openness and AIHow does AI automate TIA Portal Openness?
Reference
- Every supported AI client and the file setup writes
- Get started: install, connect your AI app and run a first session
- MCP tool reference: every tool with its arguments, effect and status
- Install in three steps
- Pricing: monthly or yearly, every tool included
- Security and data flow: who sees what, and the threat model
- Capability matrix: what is proven, with evidence and limits
- How TIATool compares with other ways to use AI in TIA Portal
- FAQ: install, licensing, data and TIA Portal versions
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.