TIA Portal MCP Server (V20 + V21 · S7DCL · CLI · read-only online monitoring · one-click config · Doctor)
Current version: see the Release badge below and CHANGELOG.md (this README no longer hardcodes a version).
English · 中文
v2.0 — the same exe is also a declarative CLI (tia). Any AI emits a
YAML/JSON spec, any engineer runs one command (tia gen spec.yaml) — no MCP
client required. Verbs: gen / patch / compile / describe / export /
import / prewarm / schema / version. Exit code 0/1/2. See
docs/CLI_quickstart.md. The MCP server behaviour is unchanged.

Free & open (MIT). The server runs with no license key — there is no
license-enforcement code at all.
🖥️ Don't want to wire up an MCP client yourself? Try TIA 助手 (TIA Assist) —
the desktop edition built on this engine: unzip and run, built-in AI assistant, and every write to your
project waits for your approval first.
👉 aeenhance.com · 1-minute demo · Trial: [email protected] · Comparison ↓

Drive Siemens TIA Portal V20 or V21 from any MCP client (stdio or HTTP):
create projects, add hardware, generate PLC objects (Tag / UDT / DB / SCL / LAD),
build WinCC Unified screens and events, compile-and-diagnose, and save —
all through natural-language tool calls. The bundle ships prebuilt runtimes,
a Skill spec, a static tool list, a capability matrix, PLC/HMI templates,
one-shot project blueprints, and a manual. No separate source clone required
to run.
Works with any MCP-capable client — Cursor, VS Code, Claude Desktop, or your
own HTTP client — using the same TiaMcpServer.exe.
🆕 v2.5.0 — put a TIA Portal project under Git (Version Control Interface)
TIA Portal projects are binary, so Git cannot diff them — which is why "version
control" in this field has long meant a pile of dated Save As folders.
The V21 Version Control Interface maps a project onto an ordinary folder,
one text file per block, so it can be diffed, committed and reviewed.
This release wraps the whole round-trip into a few commands — you never have to
click anything inside the TIA Portal UI.
One sentence to your AI client is enough:
Put the current project under Git, use D:\repos\my-plc as the workspace
It creates the workspace → maps the whole project automatically (hundreds of
blocks in one command, no manual ticking) → exports the text, and you git commit.
Later, to see what changed:
GetVersionControlStatus(changedOnly=true)
→ A3_4_Hoist | Unequal ← per block, not per file
- Covered: FC / FB / OB / DB, PLC tag tables, UDTs — the whole software side.
Hardware configuration and know-how-protected blocks are not covered by the
VCI; the tool reports them explicitly instead of skipping them silently.
- A block must compile before it can be exported (a TIA limitation); change
detection is unaffected and works even on unsaved edits.
- Companion
tools/vci-watch/: after each successful compile it auto-exports,
writes the CHANGELOG and runs git commit — the engineer does nothing.
📖 Full usage and the three behaviours you must know →
docs/version-control-git.md
⚡ Fastest start (3 steps, no coding — CLI path)
First time? No MCP client, no code. Once TIA is installed, these 3 steps
generate your first project in minutes.
(Wiring an AI client like Cursor / Claude Desktop over MCP instead? See
Quick Start below.)