DT

damccree/tiaportal-mcp

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

23 stars 5 forks Quality 68 Trend 0MIT

An MCP that can operate TIA PORTAL via AI models. < VSCode compatible> Find it in the VSCODE plugin store. Supports TIA PORTAL V20

Overview

Model Context Protocol (MCP) Server VS Code Extension Implementation Based on TIA Portal. This extension packages TIA Portal MCP Server into a VS Code extension, providing automatic dependency detection, a visual configuration interface, and real-time operational monitoring. - 🔍 - Automatically detects TIA Portal .NET Framework 4.8, user group permissions, etc. - ⚙️ - Sidebar provides a user-friendly parameter settings panel - 📊 - Output panel displays detailed server runtime status and logs - 🚀 - Shortcut command management for MCP server - 🔧 - Provides repair guidance when issues are detected - 📦 - Extends pre-compiled TiaMcpServer.exe 3. : - Click the icon on the left active bar - Click Check all dependencies - If there are issues, follow the prompts to fix - Click Start the server Testing includes: - ✅ Extending file integrity - ✅ package.json Validity - ✅ Server executables and dependencies - ✅ System requirements check - ✅ Packing ready - ✅ Connect to TIA Portal instances - ✅ Open/close/save projects and sessions - ✅ Get project structure tree view - ✅ Device and device item information queries - ✅ PLC software management and compilation - ✅ Obtain Block information and lists - ✅ Export single/batch Blocks to XML - ✅ Import blocks from XML - ✅ Filter blocks by regular expressions - ✅ Preserve the hierarchy of blocks - ✅ Obtain user-defined type (UDT) information - ✅ export single/batch Type to XML - ✅ import Type from XML - ✅ filter Type by regular expression

Overview (machine translated)

Model Context Protocol (MCP) Server VS Code Extension Implementation Based on TIA Portal.

This extension packages TIA Portal MCP Server into a VS Code extension, providing automatic dependency detection, a visual configuration interface, and real-time operational monitoring.

✨ VS Code Extended Features

  • 🔍 Automatic Dependency Detection - Automatically detects TIA Portal .NET Framework 4.8, user group permissions, and more
  • ⚙️ Visual Configuration Interface - The sidebar provides a user-friendly parameter settings panel
  • 📊 Real-Time Operation Monitoring - The output panel displays detailed server operating status and logs
  • 🚀 One-Click Start/Stop - Shortcut command to manage MCP servers
  • 🔧 Automatic Repair Recommendations - Provides repair guidance when issues are detected
  • 📦 Built-in server - Extends the compiled TiaMcpServer.exe

📁 Project Structure

  1. Download or Build Extensions:

  2. Install Extensions:

  3. First Use:

  • Click the TIA Portal MCP icon in the left activity bar
  • Click Check Dependencies to check all dependencies
  • If there are any issues, follow the prompts to fix them
  • Click Start Server to start the server

For detailed instructions on how to use extensions, please refer to vscode-extension/README.md

Method 2: Command Line Method (Traditional Method)

If you don’t use the VS Code extension, you can run the MCP server directly:

🧪 Test Extensions

Run test scripts to verify all components:

The tests include:

  • ✅ Extend file integrity
  • ✅ package.json Effectiveness
  • ✅ Server executables and dependencies
  • ✅ System requirements check
  • ✅ Pack and ready

Functional Features

This MCP server is specifically designed for TIA Portal and offers the following features:

Core Features

  • ✅ Connect to the TIA Portal instance
  • ✅ Open/close/save projects and sessions
  • ✅ Get a project structure tree view
  • ✅ Equipment and equipment item information inquiry
  • ✅ PLC software management and compilation

Block operation

  • ✅ Obtain Block information and lists
  • ✅ Export single/batch blocks to XML
  • ✅ Import Blocks from XML
  • ✅ Filter Blocks by regular expressions
  • ✅ Preserve the hierarchy of Blocks

Type operation

  • ✅ Obtain user-defined type (UDT) information
  • ✅ Export single/batch types to XML
  • ✅ Import Type from XML
  • ✅ Filter Type by regular expression

Document Operations (V19 Limited Support)

This page was translated automatically. Technical details may differ from the original.

Install

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

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "tiaportal-v19": { "command": "C:\\path\\to\\TiaMcpServer.exe", "args": [], "env": {} } } }