AT

a4webdev/tiacommander-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

53 stars 9 forks 质量 61 趋势 22NOASSERTION

通过Openness API将任何兼容MCP的AI助手连接到西门子TIA门户

概览

实时PLC数据——可实时读取数据块、标签表、监控表和CPU诊断,运行中的控制器;同一台机器同时提供多个AI客户端,本地监听器可选择直接HTTP客户端;多门户支持——选择安装TIA Portal(V17–V20)的设备,以便在已安装多个Portal的机器上运行。 *\V17 至 V20 支持项目工作。V16 及更早版本被检测并以明确提示拒绝。只有 V19 经过全面测试;其他版本预计可正常工作,因为 TIA Portal 维护了跨版本向后兼容的开放性 API。 TiaCommander 是一个 MCP 服务器,通过 Openness API 将 AI 助手连接到西门子的 TIA 门户。它支持人工智能辅助的 PLC 编程、项目管理、库运维、硬件配置、交叉引用分析和部署——全部通过自然语言实现。 Claude Desktop、Claude Code、VS Code (Copilot)、Cursor、Windsurf、Codex CLI、Gemini CLI. 涵盖TIA门户项目全生命周期。

概述(AI 翻译)

版本 3.42.0
协议MCP 2024-11-05(标准)
Runtime .NET Framework 4.8
先谢一下门户 V17 – V20(开放性API,测试于V19)
许可专有(免费测试版)

本版本新增: 新增 technology_objects 工具 — 15 个操作,用于列出和读取技术对象、更改参数、结构编辑、导出/导入以及将对象连接到硬件;每个项目的 PLC 凭证,管理器中新增了 Credentials 标签——先尝试项目自身密码,全局密码作为备选;事务块覆盖——在导入前导出块,导入失败时恢复,覆盖不再丢失属性、块号或文件夹位置;编译器结果仅列出真实诊断,总数始终与编译器自身的计数一致。自 v3.15.2 以来,还有数十个修复和改进——完整列表见 CHANGELOG.md。

*V17 至 V20 支持项目工作。V16 及更早版本被检测并以明确提示拒绝。只有 V19 经过全面测试;其他版本预计能正常运行,因为 TIA Portal 维护了跨版本向后兼容的开放性 API。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

TiaCommander — MCP Server for Siemens TIA Portal

Version 3.42.0
Protocol MCP 2024-11-05 (stdio)
Runtime .NET Framework 4.8
TIA Portal V17 – V20 (Openness API, tested on V19)
License Proprietary (free beta)

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.

Tool What it does
admin Server administration, usage stats, export storage
alarm_text Alarm texts and text lists, XLSX import / export
blocks_read Read, inspect and export FB / FC / OB / DB blocks (XML, SCL)
blocks_write Create and import blocks (SCL, LAD, FBD, STL)
db Global and instance data-block members and values
diagnostics Connection setup, online / offline compare, PLC state
download_upload Compile-checked download to / upload from the PLC
folders Navigate and organise the project-tree groups
get_info Server capabilities and version
hardware Device, rack / slot, network and I/O configuration
library Master copies, library types, versioned instantiation
live_data Live values and CPU diagnostics from the running controller
open_manager Open the TiaCommander Manager window
session Open, save, archive and switch projects; connection lifecycle
tag PLC tag tables: create, edit, search, address assignment
technology_objects Axes and other technology objects: read, tune, connect to hardware
udt User-defined types: create, edit members, import / export
watch Watch and force tables
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →