// readme

TiaMcp

MCP server for Siemens TIA Portal V21+ projects โ€” reads and writes directly to TIA Portal via the Openness API, designed for a fast, LLM- and human-friendly workflow.

Special features that make TiaMcp fast for LLMโ€™s and human-readable friendly:

  • STL is read/written as text AWL
  • PLC tables are converted to/from Excel-compatible CSV
  • HMI tables are converted to/from Excel-compatible CSV
  • HMI alarms are converted to/from Excel-compatible CSV
  • GRAPH is converted to/from compact text DSL (Domain Specific Language)

Format reference

Format / LanguageFile extension(s)ReadWrite
SCL.s7dcl / .s7resYesYes
FBD.s7dcl / .s7resYesYes
LAD.s7dcl / .s7resYesYes
Global DB (DATA_BLOCK).s7dcl / .s7resYesYes
GRAPH (S7-GRAPH/SFC).graph.ilYesPartial
Instance-DB.s7dcl + read-only .interface.txt (resolved member list)YesCreate-only
STL (whole-block).awlYesYes
STL (embedded in mixed FBD/LAD/SCL block).stl-networks.awl (or .stl-networks.xml fallback) + .s7dcl/.s7resYesThrough .xml only
UDT (PLC data type).s7dcl /โ€ฆ