
TiaCommander
io.github.a4webdev由 GitHub 帳號 a4webdev 發布v3.42.0更新於 Oct 24, 2026
Siemens TIA Portal MCP server — AI-assisted PLC programming. 19 tools, 230 actions.
概覽
一個本機 MCP 伺服器,透過 Openness API 將 AI 助理連接到西門子 TIA Portal,用於 AI 輔助的 PLC 程式設計與專案管理。
- 可以做什麼
- 讀取、檢查、編譯並匯出 PLC 區塊、介面與網路,建立或匯入 SCL、LAD、FBD、STL 區塊與資料區塊,並進行交叉參照分析與診斷。管理專案工作階段、資料夾、硬體與網路設定、PLC 變數表、使用者自訂型別、函式庫與技術物件。處理警報文字與文字清單,支援 XLSX 匯入匯出。從執行中的控制器讀取即時值與 CPU 診斷,並使用監看表與強制表。執行經編譯檢查的下載到 PLC 與從 PLC 上傳,以及伺服器管理、匯出儲存與裝置目錄查詢。
- 適用情境
- 適合在西门子 TIA Portal 中工作的自動化工程師,希望讓 AI 助理檢查、建立、編譯與偵錯 PLC 專案,並在不離開 AI 用戶端的情況下讀取 S7-1200 或 S7-1500 控制器的即時值。
- 執行需求
- Windows 桌面環境,已安裝西門子 TIA Portal V17 或更新版本並啟用 Openness 元件;僅 V19 經過完整測試。以本機 .NET Framework 4.8 程序執行,可透過 .mcpb 套件或可攜式 ZIP 安裝。即時資料需要存取 CPU 的 TCP 102 連接埠;依保護等級可能需要 CPU 密碼。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 TiaCommander,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
TiaCommander — MCP Server for Siemens TIA Portal
New in this release: a new technology_objects tool — 15 actions for listing and reading technology objects, changing parameters, structural edits, export/import, and connecting an object to its hardware; per-project PLC credentials with a new Credentials tab in the Manager — a project's own password is tried first, a global one is the fallback; transactional block overwrites — the block is exported before the import and restored if the import fails, and overwrites no longer lose attributes, block numbers or folder placement; and compiler results that list only real diagnostics, so totals always match the compiler's own count. Dozens more fixes and improvements since v3.15.2 — see CHANGELOG.md for the full list.
*V17 through V20 are supported for project work. V16 and older are detected and refused with a clear message. Only V19 is fully tested; the others are expected to work as TIA Portal maintains backward-compatible Openness APIs across versions.
Overview
TiaCommander is an MCP server that connects AI assistants to Siemens TIA Portal via the Openness API. It enables AI-assisted PLC programming, project management, library operations, hardware configuration, cross-reference analysis, and deployment — all through natural language.
Tested AI clients: Claude Desktop, Claude Code, VS Code (Copilot), Cursor, Windsurf, Codex CLI, Gemini CLI.
19 tools, 230 actions covering the full TIA Portal project lifecycle.
What's in the download?
No installer, no registry changes, no system modifications. Extract, configure, and run. Download the latest .zip from GitHub Releases.
Claude Desktop users: Download the .mcpb bundle from Releases and install via Settings → Extensions → Advanced Settings → Install Extension. No config file editing needed. See the Quick Start Guide for details.
Prerequisite: Siemens TIA Portal V17 or later must be installed on your machine with the Openness component enabled. TiaCommander loads Siemens Openness libraries directly from your TIA Portal installation at runtime. Without TIA Portal, the server starts in degraded mode with limited functionality and guides you through setup.
Why this tool exists?
First things first — we are software developers and automation engineers who use Siemens products daily — in our own facilities, at client sites, and in every project that needs industrial automation. We love it. With Siemens, it's simple — it just works. Every time. All the time.
During years of hands-on programming, wiring, testing, debugging and making things happen with Siemens PLCs, we have built TiaCommander just for our own internal needs. That's the honest reason why it exists — we built it for ourselves, and we find it awesome. It speeds things up tenfold, sometimes twentyfold, and sometimes more — until you ask yourself: how the hell were we getting things done before?!
You can get full project context through your AI assistant in under a minute. Create any block in seconds — SCL, LAD, FBD, DB — get interface structures, build multi-instance DBs, run cross-references, compile, debug, retrieve errors, and a lot more.
Every tool you see in the tool map below is built from what we actually need or use in our daily operations with Siemens PLCs. Whether you're working with S7-1200 or S7-1500 series — it doesn't matter. If Siemens TIA Portal supports it, you can use TiaCommander to manage it.
Now that we're making this tool public — we're genuinely keen on what features you're missing for your development workflow. Don't be shy — submit a feature request, file a bug report, or just tell us what you think. As an Engineer to Engineer — we read every line of feedback.
Enjoy TiaCommander.
Architecture
Tool Map
Each meta-tool groups related actions behind a single action parameter. get_info and open_manager are standalone utilities that work without a license. Start with session to connect, then use any other tool.
Tested Hardware
TiaCommander should work with any PLC supported by TIA Portal and the Openness API. The following devices have been tested in-house with full tool coverage:
See what the community is actually running — tiacommander.com/stats. The live compatibility list shows every device reported working across all users, with its order number, firmware and the TIA Portal versions it was seen under, alongside community tool usage and AI client adoption. It is built from anonymised, aggregated telemetry and is a far broader picture than the in-house table above.
Block Creation
TiaCommander creates complete PLC blocks from structured JSON descriptions:
- SCL blocks — via External Source API (firmware-agnostic)
- LAD/FBD blocks — via FlgNet XML builder with 69 verified instruction types:
- Bit logic, timers (TON/TOF/TP), counters (CTU/CTD/CTUD)
- Math (Add, Sub, Mul, Div, Mod, Abs, Sqrt, Sin, Cos, etc.)
- Comparators (EQ, NE, GT, GE, LT, LE)
- Move & conversion, word logic, shift & rotate, selection
- Program flow (FB/FC calls with parameter wiring, JMP/JMPN, RET, LABEL)
- Block numbers — auto-assigned if omitted, or explicit
- Custom interfaces — Input, Output, InOut, Static, Temp, Constant sections
Live Data
The live_data tool reads actual values straight from a running CPU — data blocks, tag tables, watch tables and the full CPU diagnostic buffer. It is where TiaCommander earns its keep for debugging and for a tight development feedback loop: change a block, download, and watch the values move without ever leaving your AI client.
- Separate pipe — live reads go through a dedicated helper process (the S7 bridge) that talks to the CPU directly over TCP port 102, independent of the Openness engineering connection, so reading live values never disturbs your TIA Portal session.
- No licence, nothing extra — the live-data path needs no Openness licence and no additional Siemens software; it speaks the S7 protocol itself.
- TLS and plaintext both supported — S7-1200 V4.5+ and S7-1500 V2.9+ connect over TLS; older CPUs connect in plaintext.
connectreports which was actually negotiated for the CPU in front of you. - Optimised and standard blocks —
read_dbreturns symbolic values with quality codes from both optimised and non-optimised (standard) data blocks. - Password-aware — a CPU password is needed only if the CPU's protection level requires one; it can be stored encrypted at rest (per project or global) so
connectuses it automatically, and it is never logged or echoed. Save one in the Credentials tab of the Manager GUI, or just ask your AI assistant to store it — globally for a PLC IP address, or per project.
Safety
The MCP server treats PLC deployment operations as destructive. These actions require explicit confirmation strings before execution:
All other operations work within the TIA Portal project and are reversible before download.
Standalone I/O
TiaCommander works fully standalone — no external file management tools required.
Three input modes for every import: file path, inline content, or export database reference.
Three output modes for every export: inline (default), export database, or file.
Exports auto-expire after 24 hours. Manage via admin tool actions.
However, we strongly recommend pairing TiaCommander with Desktop Commander (GitHub) for your daily AI agent workflow. Desktop Commander gives your AI assistant terminal access, file management, and code editing capabilities across your entire OS. This is not a paid promotion — we use Desktop Commander every day in our own work, and it happens to be created by our fellow Latvian, Eduards Ruzga. It's free, open-source, and it makes everything better.
Data & Privacy
All data stays on your machine. The local SQLite database stores tool call statistics, device profiles, error log, and temporary export cache.
TiaCommander collects limited telemetry to improve the product:
- Error reports — when a tool call fails, the error type and context are sent so we can identify and fix issues.
- Tool usage statistics — which tools and actions are used most often, to understand what is most valuable.
- AI client information — which AI assistant is connected (client name and version), to ensure compatibility.
No PLC program data, project files, or block contents are ever transmitted.
Your personal information (name, surname, email) provided during registration is governed by European Union GDPR rules. We do not share, sell, or disclose your data to third parties. We will never send you marketing materials or anything not directly relevant to your use of TiaCommander — unless you explicitly ask us to.
What's Next
TiaCommander is actively developed. Here's what we're working on:
- HMI integration — access to HMI screens, tags, and alarm views
- Wider live-data coverage — more of what a running PLC exposes, across more CPU families
- Simulation support — drive PLCSIM for offline development and testing
- Broader hardware validation — more device families and firmware verified in-house, guided by real-world usage
Have a feature idea? Submit it on GitHub.
Quick Start
Claude Desktop (one-click): Download TiaCommander.mcpb from Releases, then install via Settings -> Extensions -> Advanced Settings -> Install Extension. Done.
All other AI clients: Download the portable ZIP and see the Quick Start Guide -- everything you need to get up and running in 5 minutes: extract, Openness group setup, AI client configuration for all 7 tested clients, license activation, and first commands.
Ready-to-use config files for each AI client are in the configs/ folder.
License & Feedback
TiaCommander is proprietary software published by SIA A4 Studio. During the beta period, the tool is completely free with unlimited usage and all tools available — no restrictions.
In return, we count on you to help us make TiaCommander better. If you encounter a bug, have an idea for a new feature, or just want to share how you use the tool in your workflow — we want to hear from you:
- Bug reports: github.com/a4webdev/tiacommander-mcp/issues
- Feature requests: github.com/a4webdev/tiacommander-mcp/issues
- Testimonials & feedback: tiacommander.com/wf/github
Every report, every suggestion, every comment helps us build a better tool for the Siemens automation community.
See LICENSE.txt for full terms. Visit tiacommander.com for more information.
Trademarks
TiaCommander™ is a trademark of SIA A4 Studio. Siemens, TIA Portal, SIMATIC, S7-1200, S7-1500 are trademarks of Siemens AG. TiaCommander is not affiliated with, endorsed by, or sponsored by Siemens AG.
Thank You
Thank you to everyone who has opened an issue or sent us feedback — it genuinely helps us make TiaCommander better, and we read every word. And if your experience has been smooth and there is nothing to report, we would be grateful if you left a star on the repository — it is a small thing, and it helps other Siemens engineers find the tool.
來源:README.md,提交 3016289
工具
0版本歷史
1- v3.42.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。