SuperPLC MCP Server
Provides tools for automating Siemens TIA Portal via Openness, including project/workspace comparison and incremental pull, HMI/VCI/hardware operations, and LAD/FBD/GRAPH analysis and patching.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SuperPLC MCP Server
TIA Portal Openness MCP 工具,供 Cursor 通过 stdio 调用。
目录说明(MCP 运行必需 vs 可选)
路径 | 必需 | 说明 |
| 是 | Python 源码:MCP 协议、Openness 封装、VCI/HMI/硬件工具 |
| 是 | 入口别名,等价 |
| 是 | 依赖清单;重建 venv 时用 |
| 是 | Python 虚拟环境(含 |
| 是 | 博图 PublicAPI XSD;LAD/FBD/GRAPH 分析与 patch 工具依赖 |
| 推荐 | Agent 调用 MCP 时的技能说明(HMI/VCI/工作流) |
| 推荐 | MCP 会话与核心流程规则 |
不必放在本目录(运行时按需生成或属于具体 PLC 项目):
路径 | 原因 |
| 开发/镜像用 PLC 导出,非 MCP 服务本体 |
| 参考文档(体积大),与 MCP 启动无关 |
| 示例 VCI 工作区,应在各 TIA 项目 |
| 构建报告、日志、单元测试 |
| Visual Studio 工程文件 |
Related MCP server: tiacommander-mcp
外部依赖(不在本目录)
已安装 TIA Portal(Openness DLL 由
src/tia_bootstrap.py自动搜索)博图进程:连接/编译/VCI 等工具需 TIA 已打开或可 attach
用户数据:
%LOCALAPPDATA%\SuperPLC\(配置、日志,首次启动自动创建)
VCI 增量 Pull
项目到工作区的批量更新默认使用状态驱动的增量流程:
superplc_vci_compare_workspace比较全部或relative_paths指定的映射,不调用同步。superplc_vci_pull_workspace_changed默认dry_run=true;确认计划后再传dry_run=false。Equal对象跳过;仅 TIA 侧变化或工作区文件缺失的对象执行 Pull。工作区单边变化、双边冲突和未知状态不会自动覆盖;结果写入工作区
reports/。
TIA V20 优先使用 Workspace.MappedObjects、MappedObject.GetStatus() 和
MappedObject.Synchronize();V18/V19 自动回退到旧的
IndividualObjectSynchronizationStatus 服务。force=true 会绕过冲突保护,仅用于明确的强制恢复。
Cursor MCP 配置
全局配置:%USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"superplc": {
"command": "C:\\path\\to\\superplc-mcp\\env\\Scripts\\python.exe",
"args": ["-m", "src.mcp_main", "--stdio"],
"cwd": "C:\\path\\to\\superplc-mcp",
"env": {
"PYTHONPATH": "C:\\path\\to\\superplc-mcp",
"SUPERPLC_APP_ROOT": "C:\\path\\to\\superplc-mcp"
}
}
}
}自检
cd C:\path\to\superplc-mcp
$env:PYTHONPATH = (Get-Location).Path
$env:SUPERPLC_APP_ROOT = (Get-Location).Path
.\env\Scripts\python.exe -m src.mcp_main --inspect应输出 serverName: superplc_mcp、version: 2.0.0。
重建虚拟环境(可选)
cd C:\path\to\superplc-mcp
py -3.14 -m venv env
.\env\Scripts\pip install -r requirements.txt源位置
自 C:\Antigravity_Workspace\SuperPLC 精简复制(2026-06-29)。
未随仓库发布的文件
以下文件受 Siemens 版权保护,未包含在本仓库中,请从自己的 TIA Portal 安装中获取:
schema/PublicAPI/:从<TIA 安装目录>\PublicAPI\复制(LAD/FBD/GRAPH 分析需要)。Openness 系统手册:从 Siemens 官网下载《TIA Portal Openness:用于工程组态工作流自动化的 API》。
需要已授权的 TIA Portal 与 Openness 用户组权限才能运行。
许可证
MIT,见 LICENSE。Siemens、TIA Portal、SIMATIC 是 Siemens AG 的商标;本项目与 Siemens 无关联。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query Allen-Bradley, Siemens and CODESYS V3 PLC projects, live tags and analyses in plain English.
OPC Suite — CRM, sales, inventory, accounting, HRM, payroll, claims, projects from any AI agent.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Your Aurentia workspace — projects, CRM, tasks, deliverables — in Claude, Cursor or any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Siemens TIA Portal projects directly from VS Code or Claude Desktop using GitHub Copilot and the TIA Openness API. It supports connecting to TIA Portal instances, exporting blocks or types, and performing project operations like compilation via natural language.64MIT
- FlicenseNot gradedqualityBmaintenanceMCP server that connects AI assistants to Siemens TIA Portal via the Openness API. AI-assisted PLC programming, project management, hardware configuration, cross-reference analysis, and deployment. 19 tools, 230 actions.70-
- AlicenseNot gradedqualityCmaintenanceEnables agents and scripts to work with an installed Siemens TIA Portal through the Openness API, exposing 65 tools for projects, PLC programs, tags, hardware, networks, HMI and libraries. Includes an object bridge for discovering and invoking supported public API operations via MCP over stdio or a JSON CLI.1-
- AlicenseNot gradedqualityBmaintenanceIt lets any MCP-capable AI agent operate a real Siemens TIA Portal project — configuring hardware and networks, creating blocks, writing SCL, compiling, simulating via PLCSIM Advanced, and reading results back for verification. It runs locally alongside TIA Portal through Openness, so agents work with live projects rather than code snippets.294 npm4MIT