连接 AI 的 393 个 MCP 工具
到西门子 TIA Portal
T-IA Connect 实现了一个完整的 Model Context Protocol 服务端,让任何 AI 助手都能直接访问您的 TIA Portal 项目。项目管理、PLC 块、变量、HMI、仿真、版本控制、流水线、测试 —— 全部通过一个 MCP 服务端实现。
什么是 MCP?
Model Context Protocol (MCP) 是由 Anthropic 创建的一个开放标准,它定义了 AI 模型如何与外部工具通信。MCP 让 AI 能够直接与 TIA Portal 交互(读取项目、创建块、管理变量、编译并下载到 PLC),而无需在聊天窗口和工程软件之间进行复制粘贴。
T-IA Connect 将西门子 TIA Portal Openness API 封装为 393 个 MCP 工具。任何兼容 MCP 的 AI 客户端(Claude、GPT、Llama 或通过 Ollama 运行的本地模型)都可以使用它们。它就像一个通用适配器:AI 使用 MCP 协议,T-IA Connect 将其转换为 TIA Openness API 调用。无专有插件,无供应商锁定。
工作原理
AI 与 TIA Portal 之间的三层结构
AI 客户端
您在任何兼容 MCP 的客户端(Cursor、VS Code, Claude Code、Windsurf 或 Claude Desktop)中的 AI 助手(Claude、GPT、Llama)。
T-IA Connect MCP 服务端
运行在您的工程工作站本地。通过 JSON-RPC 接收 MCP 工具调用,并将其转换为 TIA Portal Openness API 操作。
TIA Portal
启用了 Openness API 的西门子 TIA Portal V17-V21。您的 PLC 项目、设备、HMI 画面和配置。
全部 393 个 MCP 工具
搜索并浏览 T-IA Connect MCP 服务端中可用的每个工具
Project Management
(19)Archive the current project to a compressed file
Close the currently open TIA Portal project
Create a new TIA Portal project with specified settings
Create a snapshot of the current project state
Generate a deliverable package from the project
Generate a comprehensive report of the project
Retrieve the change history of the project
Get configured languages for the project
Get a high-level overview of the project structure
Get the current status of the open project
List all files associated with the project
List all running project instances
List all available project snapshots
Load start values for a block from the project
Open an existing TIA Portal project file
Restore the project to a previously saved snapshot
Retrieve a project from an archive file
Save the currently open project to disk
Synchronize the project with external changes
Devices & Hardware
(12)Add a new device to the project hardware configuration
Change the CPU type of an existing device
Remove all devices from the parking lot
Configure CPU properties like IP, clock memory, startup
Remove a device from the project configuration
Get compatible module slots for a device rack
Read the current CPU configuration properties
Get detailed hardware info for a specific device
List devices currently in the parking lot
List all devices configured in the project
Rename an existing device in the project
Search the hardware catalog for modules and devices
Network & Communication
(11)Configure network connections between devices
Create a new communication access point
Create a new subnet in the network configuration
Remove an existing access point
Delete a subnet from the network configuration
Get the physical network topology of a device
Get the complete project network topology
List all configured communication access points
List all IO systems in the project
List all subnets in the project network
Map an access point to a specific network interface
PLC Blocks
(23)Add an input, output, or variable to a block interface
Compile a specific PLC block and report errors
Compile all blocks for a device at once
Create a new folder in the block tree structure
Save a snapshot of a block's current state
Create a new SCL function, FB, or data block
Delete a PLC block from the project
Delete a folder from the block tree
Export a block to XML format for external use
Export the source code of a block
Generate block code from description and import it
Get detailed info: interface, code, and properties of a block
Get guidelines for AI-assisted block generation
Get the hierarchical tree of all PLC blocks
Find all cross-references for a block or tag
List all PLC blocks in a device or folder
Restore a block from a previously saved snapshot
Publish a block to the project library
Remove a variable from a block interface
Rename an existing PLC block
Set the namespace for a block
Update the code content of an existing block
Modify properties of a block interface member
Tags, Constants & UDTs
(33)Create a new constant with name, value, and data type
Create a new PLC tag with address, data type, and comment
Create a new tag table in the PLC program
Create a folder to organize tag tables
Create a new user-defined data type
Create a folder to organize UDTs
Delete an existing constant from the project
Delete a PLC tag from a tag table
Delete a tag table and all its tags
Delete a tag table folder
Delete a user-defined data type
Delete a UDT folder from the project
Export a tag table to CSV format
Export a tag table to Excel format
Export a tag table to XML format
Export a user-defined data type to XML
Get all tags across all tag tables in a device
Get the hierarchical tree of tag tables
Get the structure and details of a UDT
Get the hierarchical tree of all UDTs
Import a tag table from an external file
Import tags into an existing tag table
Import tags from a CSV file into a tag table
Import tags from an Excel file into a tag table
Import a user-defined data type from XML
List all constants defined in the project
List all tag tables in a device
List all tags in a specific tag table
List all user-defined data types in the project
Rename an existing tag table
Update the value or properties of a constant
Update address, data type, or comment of a tag
Update the structure of a user-defined data type
HMI / WinCC
(51)Add a single graphical element to an HMI screen
Add multiple graphical elements to an HMI screen at once
Configure HMI runtime settings and parameters
Configure screen properties like size and background
Modify properties of an existing screen element
Create a new HMI alarm with trigger and text
Create a connection between HMI and a PLC
Create a new HMI acquisition cycle
Create a new HMI screen with layout settings
Create a new VBScript or JavaScript for the HMI
Create a single HMI tag with connection and address
Create a new HMI tag table for organizing tags
Create multiple HMI tags in batch
Delete an existing HMI alarm
Delete an HMI-to-PLC connection
Delete an HMI screen from the project
Delete a single HMI tag
Delete an HMI tag table and its contents
Delete multiple HMI tags in batch
Remove a graphical element from an HMI screen
Get all configured HMI alarm classes
Get all analog alarms configured in the HMI
List all HMI connections to PLCs
Get all HMI acquisition cycles
Get all discrete alarms configured in the HMI
Get available items from the HMI library
Retrieve HMI runtime and diagnostic logs
Get the plant view hierarchy of the HMI
Get current HMI runtime configuration settings
Get detailed properties of a specific HMI screen
Get global screen elements shared across screens
Get an overview of all screen items and layout
Get the hierarchical tree of all HMI screens
Read the source code of an HMI script
Get the hierarchical tree of all HMI scripts
Get the hierarchical tree of HMI tags and tables
Get all properties of a specific screen element
List all available HMI library types
List all project-level graphic resources
List all HMI tags in a tag table
List all text and graphic lists in the HMI
Create a new graphic list for the HMI
Modify the source code of an existing HMI script
Remove an animation from a screen element
Set appearance animation on a screen element
Assign an event handler to a screen element
Configure flashing behavior on a screen element
Set movement animation on a screen element
Set script-based dynamization on a screen property
Bind a screen element property to an HMI tag
Set visibility animation on a screen element
Online & Deployment
(10)Compare online PLC program with offline project
Download the project to the PLC hardware
Get the current run/stop state of the CPU
Get the online connection state of a device
Get PG/PC interface diagnostic information
Disconnect from the online PLC
Establish an online connection to the PLC
Start the CPU to run the PLC program
Stop the CPU and halt PLC program execution
Upload the current program from the PLC to the project
PLCSim Simulation
(35)Read multiple simulation tags in a single operation
Write multiple simulation tags in a single operation
Connect to a PLCSim simulation instance
Create a new PLCSim virtual controller instance
Delete an existing PLCSim instance
Delete a saved PLCSim simulation profile
Disconnect from the PLCSim simulation
Get configuration of a PLCSim instance
Get the current state of a PLCSim instance
Get network settings of the simulation
Get runtime configuration of the simulation
Get the overall simulation state
List all available PLCSim instances
List all saved simulation profiles
List all tags available in the simulation
Load a saved simulation profile
Reset the memory of the simulated PLC
Power off the simulated PLC
Power on the simulated PLC
Read the value of a single simulation tag
Refresh the tag list from the simulation
Set the simulated PLC to RUN mode
Save the current simulation state as a profile
Configure settings of a PLCSim instance
Configure network settings for the simulation
Set runtime configuration for the simulation
Set the runtime communication port
Set a value on a simulation widget element
Start the PLCSim runtime engine
Start the PLCSim simulation
Get the overall status of PLCSim
Set the simulated PLC to STOP mode
Stop the running PLCSim simulation
Update an existing simulation profile
Write a value to a single simulation tag
Libraries
(20)Archive a global library to a compressed file
Close an open global library
Compare two versions of a library type
Create a project element from a library type
Create a project element from a master copy
Create a new global library
Create a new version of an existing library type
Create a master copy from a project element
Create a folder to organize master copies
Delete a library type from the library
Delete a master copy from the library
Get the hierarchical tree of a global library
Get all types in a global or project library
Get all master copies from a library
Get the project library contents
Get the hierarchical tree of the project library
List all open global libraries
Open an existing global library file
Save changes to an open global library
Set the default version for a library type
Safety
(8)Create a new safety runtime group
Delete a safety runtime group
List all safety runtime groups in the project
Get the safety program configuration settings
Get safety program signatures for verification
Get a summary of the safety program status
Log in to the safety program for editing
Log off from the safety program
Security & Users
(24)Assign a role to a project user
Clear the online authentication password
Configure project security settings
Create a custom role with specific permissions
Create a new OPC UA server user
Create a new user in the project
Create a new PLC webserver user
Delete a custom role from the project
Delete an OPC UA server user
Delete a user from the project
Delete a PLC webserver user
Get the online authentication password status
Get OPC UA server configuration
List all roles defined in the project
List all users in the project
Get the access protection level of a block or device
Get an overview of all security settings
Get PLC webserver configuration
Manage the project master secret key
Remove a role from a project user
Reset the PLC access password
Set or change the HMI display password
Set the online authentication password
Set or change the PLC access password
Technological Objects & Drives
(13)Create a new technological object (axis, PID, cam, etc.)
Delete a technological object from the project
Read a specific parameter from a drive
Get all parameters of a configured drive
Get telegram configuration of a drive
List all drives in the project
Get detailed information for all drives
Get detailed config of a technological object
List all technological objects in a device
Read a specific parameter of a technological object
List available parameter sets for drives
Write a parameter value to a drive
Set a parameter value on a technological object
Watch & Force Tables
(11)Add tag entries to a watch table for monitoring
Remove all entries from a watch table
Create a folder to organize watch/force tables
Create a new watch table for online monitoring
Delete a watch/force table folder
Get the contents of a force table
Get the contents and entries of a watch table
Export a watch table to an external file
List all force tables in the project
List all watch tables in the project
Remove specific entries from a watch table
Text Lists & PLC Alarms
(13)Create a PLC alarm text list for alarm messages
Create a new text list for multilingual texts
Delete a PLC alarm text list
Export PLC alarm instance texts to Excel
Export PLC alarm text lists to Excel
Export ProDiag diagnostic information
Export supervision settings to a file
Export supervision configurations to Excel
Get all PLC alarm text lists in the project
Import PLC alarm text lists from Excel
Import supervision settings from a file
Import supervision settings from Excel
Import supervision configurations from Excel
Import / Export
(9)Create a folder for external source files
Delete an external source file from the project
Delete an external source folder
Export hardware configuration to AML or CAx file
Export all project texts for translation
Import hardware configuration from AML or CAx file
Import translated project texts back into the project
Import an SCL source file into the project
List all external source files in the project
Software Architecture
(13)Add a relation between software units
Create a new software unit in the project
Create a new workspace for multi-user development
Create a workspace group to organize workspaces
Delete a software unit from the project
Delete an existing workspace
Get all relations between software units
List all software units in the project
Get all workspace groups
Get the mapping of elements to workspaces
List all workspaces in the project
Set the namespace for a software unit
Synchronize a workspace with the project
Version Control
(17)Check out an existing version control branch
Create a new version control branch
Delete a version control branch
List all version control branches
Commit current changes to version control
View or update version control configuration
Show differences between versions
Initialize version control for the project
View the version control commit history
Merge a branch into the current branch
Pull changes from a remote repository
Push local commits to a remote repository
Add a remote repository to the project
List all configured remote repositories
Remove a remote repository from the configuration
Restore files to a specific version
Show the working tree status of version control
Pipelines
(9)Delete a saved pipeline definition
Get the definition of a specific pipeline
Get a pipeline template definition
View execution history of a pipeline
Create a pipeline instance from a template
List all available pipelines
List all available pipeline templates
Execute a pipeline with specified parameters
Save a pipeline definition
Testing & Reporting
(8)Generate a Factory Acceptance Test report
Generate a visual graph from project data
Create a new PLC test case
Delete an existing PLC test case
Get the results of a PLC test execution
List all PLC test cases in the project
Execute a PLC test case and collect results
Generate a Site Acceptance Test report
Documentation & Search
(13)Get a specific chunk from a custom document
Get the full text of a custom document
Get statistics about custom documentation
Get a specific section from the documentation
Get community LLM tips for TIA Portal usage
List all custom documents in the knowledge base
List all available documentation sections
Search through custom documentation by keyword
Search the built-in documentation library
Search Siemens online documentation
Search TIA Portal help system
Submit a new LLM tip for the community
Upvote a helpful LLM tip
AI Copilot
(6)Send a message to the AI copilot for assistance
Clear the AI copilot conversation history
Retrieve the AI copilot conversation history
Get the last response from the AI copilot
Get current AI copilot configuration settings
Stop an ongoing AI copilot generation
Patterns & Templates
(5)Get detailed information about a specific pattern
Get the usage guide for a specific pattern
Create project elements from a pattern template
List all available automation patterns
Search patterns by keyword or category
CODESYS
(20)Add a device to a CODESYS project
Build and compile the CODESYS project
Close the current CODESYS project
Create a new Ladder Diagram POU in CODESYS
Create a new Program Organization Unit in CODESYS
Create a new CODESYS project
Export a POU from the CODESYS project
Get all blocks in the CODESYS project
List all devices in the CODESYS project
Get the code of a Global Variable List
Get the source code of a CODESYS POU
Get information about the open CODESYS project
Get a high-level overview of the CODESYS project
Get the installed CODESYS version
List available devices in the CODESYS catalog
List all Global Variable Lists in the project
Open an existing CODESYS project file
Save the current CODESYS project
Set or update the source code of a POU
Update an existing Ladder Diagram POU
Server Administration
(10)Attach to a running TIA Portal instance
Detach from the current TIA Portal instance
Get details of a specific help topic
Get statistics about server usage history
List all installed TIA Portal versions
Get diagnostic information from the MCP server
Get general information about the MCP server
Retrieve MCP server log entries
List all available server log files
Enable or disable simulation support
兼容的 MCP 客户端
在您首选的 AI 开发环境中使用 T-IA Connect
Cursor
AI 优先的代码编辑器。将 T-IA Connect 添加为 MCP 服务端,即可直接在 Cursor 中使用 Claude 或 GPT 处理 TIA Portal 项目。
VS Code + Continue
在 VS Code 中使用 Continue 扩展连接到 T-IA Connect 的 MCP 服务端。支持任何 AI 模型提供商。
Claude Code (CLI)
Anthropic 官方的 Claude CLI。原生支持 MCP —— 添加 T-IA Connect 即可从终端与 TIA Portal 交互。
Windsurf
Codeium 带有 MCP 支持的 AI IDE。连接 T-IA Connect,在代码编辑工作流中进行 TIA Portal 操作。
Claude Desktop
Anthropic 的桌面应用。将 T-IA Connect 配置为 MCP 服务端,获得对话式的 TIA Portal 使用体验。
自定义集成
使用开放规范构建您自己的 MCP 客户端。从 CI/CD 流水线、脚本或自定义工具中自动化 TIA Portal 操作。
安全:原生本地部署
除非您选择云端 AI 提供商,否则您的 PLC 代码永远不会离开您的网络
本地 MCP 服务端
T-IA Connect 运行在您的工程工作站上。无云端服务器,无外部依赖。MCP 服务端仅与本地 TIA Portal 实例通信。
您的 AI,您的选择
将 AI 请求路由到 Claude/GPT API(数据传输到其服务器)或通过 Ollama 路由到本地模型(零云端暴露)。您可以根据每个会话进行选择。
无数据收集
T-IA Connect 不收集、存储或传输您的项目数据。它是一个透明的桥梁 —— 数据在您的 AI 客户端和 TIA Portal 之间流动,不保留任何内容。
兼容 NIS2 和 IEC 62443
配合本地模型的本地部署方案符合最严格的工业网络安全要求。无外部数据处理,无云端依赖。
3 分钟快速入门
从下载到生成您的第一个 AI 驱动的 PLC 块
安装 T-IA Connect
下载安装程序,在您的工程工作站上运行。T-IA Connect 会自动检测您的 TIA Portal 安装。
配置您的 MCP 客户端
在您的 AI 客户端(Cursor、VS Code、Claude Code)中将 T-IA Connect 添加为 MCP 服务端。只需一行 JSON 配置即可。
打开 TIA Portal 项目
启动 TIA Portal 并打开您的项目。T-IA Connect 通过 Openness API 进行连接,并将所有 393 个工具开放给您的 AI。
常见问题解答
什么是 Model Context Protocol (MCP)?
MCP 是 Anthropic 发布的一个开放标准,定义了 AI 模型如何与外部工具交互。它规定了用于工具发现、调用和结果处理的 JSON-RPC 协议。可以将其视为 AI 的 USB 接口 —— 任何 AI 模型都可以使用任何兼容 MCP 的工具。T-IA Connect 为 TIA Portal 实现了这一协议。
T-IA Connect 是否支持 TIA Portal Openness?
是的。T-IA Connect 封装了官方的西门子 TIA Portal Openness API (.NET/COM),并将其暴露为 MCP 工具。这意味着您需要 TIA Portal 专业版或更高版本(包含 Openness),并且在您的工作站上安装了 Openness 组件。
我可以不配合 AI 而是用于自动化脚本吗?
是的。虽然 T-IA Connect 是为 AI 交互设计的,但 MCP 协议适用于任何客户端。您可以构建自定义脚本来调用 T-IA Connect 的工具,以实现 TIA Portal 操作的自动化 —— 批量创建块、变量导入、自动编译等。
哪些版本的 TIA Portal 通过 T-IA Connect 支持 MCP?
T-IA Connect 支持 TIA Portal V17、V18、V19、V20 和 V21。所有支持 Openness API 的版本均兼容。各版本的 MCP 工具集相同,但某些功能(如 PLCSim Advanced)需要特定的 TIA Portal 版本。