ai
3 мин
20 ноября 2026 г.
Источник: Dev.to AI Feed

Three TIA Portal MCP servers, and the one thing none of them can do

tia-forge
tia-forge
RSS AI Ingest
Three TIA Portal MCP servers, and the one thing none of them can do

Search GitHub for tia portal mcp today and you get a dozen-plus repositories. Three of them carry almost all the weight: 439, 143 and 139 stars as of 2026-11-20, all MIT, all C#, all wrapping the same Siemens API — and they disagree on the ...

Search GitHub for tia portal mcp today and you get a dozen-plus repositories. Three of them carry almost all the weight: 439, 143 and 139 stars as of 2026-11-20, all MIT, all C#, all wrapping the same Siemens API — and they disagree on the three things that decide whether the thing survives contact with a real factory. None of the three can touch a running PLC. That is not a defect: they operate the project, and the project is a different object from the machine. But it is the expectation mismatch that shows up first, so it is worth stating before the comparison. What the three actually are bulaofen0036-coder/TIA_Portal_Openness_MCP Czarnak/tia-portal-mcp heilingbrunner/tiaportal-mcp Stars (2026-11-20) 439 139 143 Licence MIT MIT MIT TIA Portal versions V20 and V21, as two separate executables V21 V20 / V21 Transport stdio or HTTP stdio / SSE / HTTP stdio, plus a VS Code extension Tool surface wide (project, blocks, VCI, online monitoring, doctor self-check) 9 read-only, 21 read-write block import/export, compile, V20 document format Last push 2026-11-14 2026-11-17 2026-11-16 The commercial options are a different shape: T-IA Connect advertises 393 tools across project, blocks, tags, HMI, online operations and PLCSIM, V17–V21, on its own comparison page. We build one too — TiaLink, ¥99/month, V17–V21, Streamable HTTP with a stdio adapter — and I will say plainly at the end what that changes about how you should read this post. The first thing to check is not the tool count. It is the version story. TIA Portal's Openness assemblies ship per version, and they are not interchangeable. Until V20 the API was one monolithic Siemens.Engineering.dll; from V21 it is split into Siemens.Engineering.Base, Step7 and friends. That is why the most-starred project in the list ships two separate executables (tia.cmd for V21, tia-v20.cmd for V20) instead of one binary with a flag: a single build cannot bind both layouts. The same split causes the error engineers hit when they move a generated block between versions: engineering version 'V21' is not supported The XML was fine; the portal that received it was V20. bulaofen0036's README describes normalising the exported Openness XML to the connected portal version on import, which is what makes "generate on one machine, import on another" work at all. Any gateway that does not do this will silently pin your team to one TIA Portal release — fine for a one-machine experiment, a support burden the moment a second engineer runs V20. So the question to ask is not "how many tools", it is: which portal versions does it actually run against, and did the author test more than one? A repository whose badge says V20 is telling you something honest. "Headless" means three different things here The word gets used for three designs with very different operational consequences: Attach to the GUI. Czarnak's server inspects "a running TIA Portal project" — you open the project, then the agent works on it. Simple, and it means a human has already chosen the project. Keep one resident instance. bulaofen0036 keeps a headless TIA resident so later calls connect immediately, with a doctor command that checks install/version/openness-group before you blame the model for a connection problem. A gateway process. TiaLink runs as a service process next to the portal and speaks MCP over HTTP, so the client can be on another machine — the adapter in its repo only exists for clients that can't do HTTP. None of these is a CI/CD story in the usual sense: Openness only runs where a licensed TIA Portal is installed, on Windows, with the Windows account inside the local Siemens TIA Openness group, and login/off-on once after adding it. Anyone promising containerised TIA Portal is selling you a screenshot. Where the write path differs, and why it matters All three can create blocks and compile. The difference is what happens when two writers collide, and it is the cheapest thing to check in the source. Czarnak's content writes take the document together with expectedContentHash — the hash from a previous read of the same object, in the same format. If the block changed since that read, the write is rejected with state_changed instead of overwriting someone else's fix. It also documents that a batch stops at the first failure and does not roll back, so you re-read before retrying. That is the right shape for an agent: optimistic concurrency plus an explicit "re-read" instruction, rather than a transaction that pretends to be atomic. Read that twice before you connect an agent to a shared project: a read-modify-write race on a control block produces output that is valid SCL, compiles cleanly, and quietly deletes a colleague's change. The one thing none of them can do Read a live tag. Stop a CPU. Acknowledge an alarm. All three servers above work on the offline project through Openness, which by design cannot talk to a machine that has no project. If what you actually need is "what is the pressure right now", the engineering layer is the wrong layer, and so is its trust model: a runtime agent that can write a tag or change the operating mode is one hallucination away from stopping a line. That layer exists, and it looks completely different. cadugrillo/s7-mcp-bridge (28 stars, MIT, TypeScript) talks to the S7-1200/1500 built-in Web API over HTTPS with 21 tools — no Siemens software, no project, no Openness: Engineering layer (Openness) Runtime layer (PLC Web API / OPC UA) Object the project the running machine Needs TIA Portal yes, licensed, on Windows no Typical tools create block, write SCL, compile, download read tag, write tag, alarms, operating mode Failure mode bad code shipped after a review bad code acted on immediately Blast radius tomorrow's download this second The bridge's tool list includes Plc-RequestChangeOperatingMode and PlcProgram-Write — which is exactly the capability you want in a commissioning tool and exactly the one you do not want on a production line without a human in the loop. If you need both layers, run two servers and give them two different policies. Do not let the one with tag-write access also edit logic. How to choose, in order Which TIA Portal version(s)? If anything other than the newest, filter first — one wrong answer here saves you weeks. Who opens the project? Human opens it (attach), or the agent asks a resident instance. Pick the one your team will actually keep running. Headless or not — meaning: does anyone need the client on a different machine than the portal? That decides stdio-only versus an HTTP gateway. Does it reject stale writes? Look for a hash/version check on content. No check, no shared project. Do you also need runtime values? Then it is a second server, not a bigger one. Disclosure, and what it changes We build TiaLink, one of the commercial options mentioned above. That is why this post compares only the things you can check yourself: versions, transports, tool counts, hash-checked writes, and where the engineering/runtime boundary sits. If you are evaluating, the fastest test is not our comparison — it is opening the two most-starred repositories and reading what their README claims about versions. Both are MIT; both are more instructive than any list post, including this one. Stars, licences and push dates read from the GitHub API on 2026-11-20. The comparison page that ranks highest for this category in most search engines was written in September 2025 and lists four projects — three of today's largest repositories are not on it, and it describes one project as inactive that has been pushed within the last week. Useful for the architecture critique, stale for the shortlist.

Хотите внедрить ИИ в ваш бренд?

Спроектируем и развернем автономных агентов и современный цифровой стек под ваши задачи.

Рассчитать проект