HT

hadefuwa/tia-portal-mcp

开发工具

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

11 stars 10 forks 质量 64 趋势 26

A desktop app that lets you read and edit your TIA Portal V20 project through a built-in browser window — no extra software or cloud connection needed.

概览

A desktop app that lets you read and edit your TIA Portal V20 project through a built-in browser window — no extra software or cloud connection needed. It connects to TIA Portal while it's running on your PC and opens a native Windows window at startup. Anyone working with Siemens S7 PLCs who wants a faster way to browse blocks, view/edit SCL code, inspect tag tables, and manage their project — without clicking through TIA Portal menus. It also exposes all tools to Claude AI via MCP so you can describe changes in plain English and have Claude implement them. See What is TIA Portal Openness? for a plain-English explanation of the API this project is built on. See the User Manual for a full walkthrough of both operating modes. Both modes talk to the same REST server and the same TIA Portal connection.

README

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

TIA Portal Dashboard

A desktop app that lets you read and edit your TIA Portal V20 project through a built-in browser window — no extra software or cloud connection needed. It connects to TIA Portal while it’s running on your PC and opens a native Windows window at startup.

Who is this for? Anyone working with Siemens S7 PLCs who wants a faster way to browse blocks, view/edit SCL code, inspect tag tables, and manage their project — without clicking through TIA Portal menus. It also exposes all tools to Claude AI via MCP so you can describe changes in plain English and have Claude implement them.

New to TIA Portal Openness? See What is TIA Portal Openness? for a plain-English explanation of the API this project is built on.

Ready to use? See the User Manual for a full walkthrough of both operating modes.


Two modes

Mode Tab How to use it
User Control Left tab Fill in fields and click Run — fully manual, no AI
Agent Control Right tab Claude calls tools automatically via MCP — describe what you want in plain English

Both modes talk to the same REST server and the same TIA Portal connection.


What it can do

Feature Description
Browse blocks See all OBs, FBs, FCs, and DBs in the sidebar
Read & edit SCL code View and save SCL source directly in the window
Raw XML editor View and import block XML for any language (LAD, FBD, STL, GRAPH)
Compile blocks Trigger compilation and see the result inline
Analyse SCL Scan SCL code for issues (unbalanced blocks, nested IFs, etc.)
Create blocks Generate new FB, FC, OB, or GlobalDB from SCL source
Create LAD blocks Build an FB, FC or OB from a structured rung description (contacts, coils, set/reset, compares, edge detection, timers, counters, Sr/Rs, arithmetic, scaling, parallel branches, move, FB/FC calls, system functions); imported and compiled for you, compiler output returned. Verified on TIA V20 / S7-1200
Create instance DBs Create a new Instance DB linked to any FB
Patch block texts Update a block’s title, comment, and per-network titles without touching logic
Block attribute inspector List all readable/writable attributes and compositions on any block
Browse tag tables See every tag, its data type, address, and comment
Import tag tables Import a complete tag table from SimaticML XML
Batch rename tags Rename many tags at once in a single atomic operation
Create tags Create a tag table, or add individual tags with type, address, and comment
Export blocks & tags Export any block or tag table to SimaticML XML on disk
I/O mapping List a device’s I/O points — module, channel, address, direction
在 GitHub 查看完整 README

安装

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

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

配置

{ "mcpServers": { "tia-portal": { "command": "C:\\path\\to\\tia-portal-mcp\\src\\TiaOpennessMcpServer\\bin\\Release\\net48\\TiaPortalDashboard.exe", "args": ["--mcp-stdio"] } } }