Back to Home
dgwoOstjfn icon

tia_portal_mcp_server

Verified Safe

by dgwoOstjfn

Overview

Enables AI assistants to programmatically interact with Siemens TIA Portal projects, facilitating tasks such as opening projects, reading/writing PLC blocks, compiling code, and managing PLC tags and User-Defined Types (UDTs).

Installation

Run Command
python MCP_Server/start_server.py

Environment Variables

  • TIA_MCP_ENV
  • PYTHONUNBUFFERED
  • PYTHONPATH
  • TIA_SESSION_TIMEOUT
  • TIA_MAX_SESSIONS
  • TIA_AMI_HOST_PATH

Security Notes

The server explicitly states it runs locally only, eliminating external network attack vectors for the server itself. It includes input sanitization for file paths and block names, and uses secure temporary file creation methods (e.g., `tempfile.mkdtemp`). Logs are correctly routed to `stderr` to avoid interfering with the MCP protocol output. However, the system relies on the Siemens TIA Portal Openness API, which is a Windows COM-based API. This introduces an inherent, external attack surface associated with TIA Portal itself and its necessary permissions (often administrative), which is beyond the direct control of this Python code. No explicit 'eval' or hardcoded sensitive credentials were found in the provided source.

Similar Servers

Stats

Interest Score30
Security Score8
Cost ClassMedium
Avg Tokens5000
Stars1
Forks1
Last Update2025-12-14

Tags

TIA PortalSiemensPLCAutomationAI AssistantIndustrial Control