Sponsored by Deepsite.site

T-IA Connect (Siemens TIA Portal)

Created By
feelautoma month ago
Industrial-grade MCP server for Siemens TIA Portal (V17โ€“V21). 120+ tools for PLC programming: create blocks, manage tags, compile, download, and simulate with PLCSim Advanced. 100% on-premise, sovereign-AI compatible.
Overview

T-IA Copilot : GenAI Bridge for Siemens PLCs

Submission for the GenAI Zรผrich Hackathon 2026 โ€” Siemens Challenge

Tagline: Bridging LLMs and Siemens TIA Portal safely. Generates deterministic PLC logic (SCL/ISA-88) from natural language using Sovereign GenAI models.

๐Ÿš€ Get started in 5 minutes! Download the core engine at t-ia-connect.com and enjoy a 14-day full-featured free trial.

About This Repository

This repository contains the Generative AI bridging components built specifically during the hackathon.

Note: The core proprietary engine (the deterministic SimaticML XML builder and the TIA Portal Openness API connector) remains private. This open-source repository demonstrates how we successfully connected Sovereign LLMs to our deterministic industrial backend.


MCP Integration (Claude Desktop & Cursor)

You can easily connect T-IA Connect to your favorite AI Assistant using the Model Context Protocol (MCP).

Add the following configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "tia-connect": {
      "command": "C:\\Program Files\\T-IA Connect\\TiaPortalApi.App.exe",
      "args": ["--mcp"]
    }
  }
}

Key MCP Tools Available

Once connected, the AI gains access to 120+ TIA Portal capabilities, including:

  • get_project_overview: Understand the entire PLC program structure instantly.
  • list_blocks / get_block_details: Explore specific folders, OBs, FBs, and FCs.
  • create_scl_block / import_scl_source: Inject AI-generated logic directly into your project.
  • compile_device: Trigger TIA compilation directly from the chat.
  • plcsim_start_simulation / plcsim_write_tag: Automate testing using PLCSim Advanced.

Quick Start โ€” Headless API Blueprint

Prerequisites

  • T-IA Connect installed (t-ia-connect.com)
  • Siemens TIA Portal V17, V18, V19, V20 or V21
  • A TIA Portal project file (.ap17 / .ap18 / .ap19 / .ap20)

1. Launch in Headless Mode

# No GUI, no WPF window โ€” just a REST API ready to receive commands
TiaPortalApi.App.exe --headless

# Output:
#   T-IA Connect โ€” Headless Mode
#   API: http://localhost:9000/
#   Swagger: http://localhost:9000/swagger
#   Press Ctrl+C to stop.

2. Open a TIA Portal Project (silently)

curl -X POST http://localhost:9000/api/projects/open `
  -H "X-API-Key: your-key" `
  -H "Content-Type: application/json" `
  -d '{ "projectPath": "C:\\Projects\\WaterPlant.ap20" }'

3. Generate a PLC Block from Natural Language

curl -X POST http://localhost:9000/api/blocks/generate `
  -H "X-API-Key: your-key" `
  -H "Content-Type: application/json" `
  -d '{
    "deviceName": "PLC_1",
    "blockType": "FB",
    "blockName": "FB_WaterPump",
    "description": "Water pump with Start/Stop, thermal fault (TON 5s), Manual/Auto mode",
    "language": "SCL"
  }'

4. Compile โ€” Done

curl -X POST http://localhost:9000/api/blocks/compile `
  -H "X-API-Key: your-key" `
  -H "Content-Type: application/json" `
  -d '{ "deviceName": "PLC_1", "blockName": "FB_WaterPump" }'

No TIA Portal window ever opened. The block is compiled and ready.

Full Automated Script

See examples/Run-Headless-Demo.ps1 for a complete end-to-end script.


Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   AI Agent      โ”‚     โ”‚  T-IA Connect    โ”‚     โ”‚  TIA Portal   โ”‚
โ”‚  (Claude, etc.) โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  REST API        โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  Openness API โ”‚
โ”‚                 โ”‚ MCP โ”‚  + Deterministic โ”‚     โ”‚  (headless)   โ”‚
โ”‚  "Create a pump โ”‚ or  โ”‚    XML Engine    โ”‚     โ”‚               โ”‚
โ”‚   sequence..."  โ”‚ HTTPโ”‚                  โ”‚     โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚  โ”‚ FB_Pump โ”‚  โ”‚        
                                                 โ”‚  โ”‚ compiledโ”‚  โ”‚    
                                                 โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
                                                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Hackathon Components

1. Sovereign AI Integration (src/OpenAiProvider.cs)

  • Custom C# provider connecting to European-hosted AI models (OVHcloud AI Endpoints)
  • Ensures sensitive PLC logic never leaves the EU
  • Tested with Qwen3-Coder-30B-Instruct for precise SCL generation

2. MCP Bridge E2E Tests (tests/)

  • Demonstrates headless WPF boot โ†’ TIA Portal silent open โ†’ MCP tools/call execution
  • Full lifecycle orchestration without any user interaction

How It Works (The T-IA Copilot Workflow)

StepWhat happensWho does it
1. Prompt"Generate a pump sequence with a thermal fault"Engineer or AI Agent
2. AI ReasoningLLM designs the state machine logic (SCL/JSON)Sovereign LLM (Qwen)
3. Deterministic CompileC# engine builds strict SimaticML XML (no AI hallucination)T-IA Connect
4. DeployBlock imported + compiled headlessly in TIA PortalOpenness API

Result: Chat prompt โ†’ Compiled PLC block in under 30 seconds.



Skills, Prompts, and Resources

To maximize your efficiency with T-IA Connect, we have included the following:

  • Skills (MCP Tools): 120+ specialized tools to interact with TIA Portal (Blocks, Tags, HMI, PLC Simulation, etc.).
  • Prompts: A guide to the best natural language prompts to generate industrial-grade PLC code.
  • Resources: T-IA Connect provides read-only access to your project structure via specialized resources, allowing the AI to "browse" your project tree without manual intervention.

Tech Stack

ComponentTechnology
BackendC# / .NET Framework 4.8
TargetSiemens TIA Portal V17-V21 (Openness API)
AI ModelsQwen3-Coder-30B via OVHcloud AI Endpoints
ProtocolMCP (Model Context Protocol) by Anthropic
APIREST + SignalR (real-time job notifications)
Tools126 MCP tools for full TIA Portal orchestration

Server Config

{
  "mcpServers": {
    "siemens-tia-portal": {
      "command": "C:\\Program Files\\T-IA Connect\\TiaPortalApi.App.exe",
      "args": [
        "--mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook McpๅŸบไบŽAnduin2017 / HowToCook ๏ผˆ็จ‹ๅบๅ‘˜ๅœจๅฎถๅš้ฅญๆŒ‡ๅ—๏ผ‰็š„mcp server๏ผŒๅธฎไฝ ๆŽจ่่œ่ฐฑใ€่ง„ๅˆ’่†ณ้ฃŸ๏ผŒ่งฃๅ†ณโ€œไปŠๅคฉๅƒไป€ไนˆโ€œ็š„ไธ–็บช้šพ้ข˜๏ผ› Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps้ซ˜ๅพทๅœฐๅ›พๅฎ˜ๆ–น MCP Server
Tavily Mcp
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map็™พๅบฆๅœฐๅ›พๆ ธๅฟƒAPI็Žฐๅทฒๅ…จ้ขๅ…ผๅฎนMCPๅ่ฎฎ๏ผŒๆ˜ฏๅ›ฝๅ†…้ฆ–ๅฎถๅ…ผๅฎนMCPๅ่ฎฎ็š„ๅœฐๅ›พๆœๅŠกๅ•†ใ€‚
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbotโ„ข
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.