Tia Portal Openness Mcpserver logo

Tia Portal Openness Mcpserver

Community
chewcw

TIA Portal Openness MCP Server

Publisherchewcw
Repositorytia-portal-openness-mcpserver
LanguageC#
Forks
10
Stars
40
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    Tia Portal Openness Mcpserver exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    40 stars and 10 forks from the linked repository.

TIA Portal Openness MCP Server

MCP (Model Context Protocol) server for Siemens TIA Portal Openness, plus a companion CLI for release installation and updates.

What this repository contains

  • TiaPortalMcpServer/: C# MCP server (target framework: net48) exposing TIA Portal engineering operations as MCP tools.
  • TiaPortalMcpServer.Tests/: unit and integration tests for tool contracts and server behavior.
  • cli/: TypeScript CLI for installing server releases and managing companion skills.

Key capabilities

The server provides tool groups for:

  • project lifecycle (projects_create, projects_open, projects_open_with_upgrade, projects_save, projects_close, projects_get_session_info)
  • hardware and device management (devices_list, devices_create, devices_delete, devices_get_attributes, devices_set_attribute, devices_get_app_id, devices_set_app_id, devices_search_catalog)
  • device item management (deviceitems_list, deviceitems_get_attributes, deviceitems_plug_move, deviceitems_copy, deviceitems_delete, catalog_search_device_items)
  • PLC software and block operations (software_add_block, blocks_list, software_get_block_hierarchy)
  • tag and tag-table management (tags_create, tags_list, tags_tagtable_create, tags_tagtable_list, tags_tagtable_get, tags_tagtable_delete, tags_tagtable_export, tags_tagtable_open_editor, tags_group_create, tags_group_list, tags_group_find, tags_group_delete, tags_group_system_get, tags_constants_user_list, tags_constants_system_list)
  • advanced block operations (external sources, ProDiag, UDTs, types, editor helpers — 19 tools in BlocksTools)
  • compilation (compilation_project, compilation_software)
  • file import and validation (files_read_csv, files_read_excel, files_list_sheets, files_validate_format, files_get_info)
  • HMI targets (hmi_targets_list, hmi_targets_get, hmi_targets_validate)
  • sampling/LLM-assisted operations (sampling_generate_code, sampling_summarize_project, sampling_get_suggestions)
  • elicitation and utility helpers (utilities_elicit_user_input, utilities_get_project_info, utilities_list_libraries)

All active tools are declared in TiaPortalMcpServer/Tools/.

Runtime model

  • Transport: MCP over stdio.
  • Host process: .NET console app using Microsoft.Extensions.Hosting.
  • Tool discovery: attribute-based ([McpServerToolType], [McpServerTool]).
  • Logging: Serilog to stderr and rolling file logs (TiaPortalMcpServer/logs/).

Requirements

  • Windows machine.
  • Siemens TIA Portal V20 installed and licensed.
  • User account in the TIA Portal Openness Users group.
  • .NET Framework 4.8 runtime/developer pack (for building/running net48 project).

Build and run

From repository root:

bash
dotnet build tia-portal-openness-mcpserver.sln
dotnet run --project TiaPortalMcpServer/TiaPortalMcpServer.csproj

Test

bash
dotnet test TiaPortalMcpServer.Tests/TiaPortalMcpServer.Tests.csproj

Unit tests only:

bash
dotnet test TiaPortalMcpServer.Tests/TiaPortalMcpServer.Tests.csproj --filter "Category!=Integration"

Integration tests only:

bash
dotnet test TiaPortalMcpServer.Tests/TiaPortalMcpServer.Tests.csproj --filter "Category=Integration"

MCP Inspector

bash
npx @modelcontextprotocol/inspector dotnet run --project TiaPortalMcpServer/TiaPortalMcpServer.csproj

CLI quick start

The companion CLI is in cli/ and is intended for npm/npx workflows.

bash
npx @chewcw/tia-portal-openness-mcpserver install --server-version v1.0.0

Environment variables used by the CLI:

  • GITHUB_TOKEN (optional): token for authenticated GitHub API access.
  • TIA_MCP_INSTALL_DIR (optional): override default install directory.
  • TIA_MCP_AGENT_TYPE (optional): override agent type detection.
  • TIA_MCP_SKILLS_PATH (optional): override skills installation path.

The CLI auto-detects the agent type from OPENCODE_SESSION_ID, OPENCODE_ROOT, CLAUDE_AGENT_METADATA_FILE, or CURSOR_SESSION_ID.

See cli/README.md for full CLI contract and options.

Configuration

Server configuration lives in TiaPortalMcpServer/appsettings.json.

Current keys include:

  • MCP:Host, MCP:Port (general MCP endpoint settings)
  • FileHandling:MaxFileSizeMB, FileHandling:AllowedRootPaths
  • Serilog logging levels and sinks

CI/build constraint

This project depends on Siemens Openness assemblies and cannot be built from public NuGet packages alone on generic hosted runners.

  • Siemens.Engineering.dll must be resolvable via installed TIA Portal V20 or TiaPortalLocation.
  • For CI, use a self-hosted Windows runner with TIA Portal V20 installed (or provide the required private assembly bundle).

Repository layout

text
.
|- TiaPortalMcpServer/          # MCP server
|- TiaPortalMcpServer.Tests/    # tests
|- cli/                         # release/install CLI
|- Taskfile.yml                 # convenience tasks (inspector/tests)
`- tia-portal-openness-mcpserver.sln

Use Tia Portal Openness Mcpserver MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Tia Portal Openness Mcpserver is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Tia Portal Openness Mcpserver as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Tia Portal Openness Mcpserver MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "tia-portal-openness-mcpserver": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Tia Portal Openness Mcpserver MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Tia Portal Openness Mcpserver MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Tia Portal Openness Mcpserver to help me with this task?
Tia Portal Openness Mcpserver
Sure. I read it.
Here is what I found using Tia Portal Openness Mcpserver.

Frequently asked questions

What is the Tia Portal Openness Mcpserver MCP server used for?

Tia Portal Openness Mcpserver is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Tia Portal Openness Mcpserver MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Tia Portal Openness Mcpserver with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Tia Portal Openness Mcpserver MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Tia Portal Openness Mcpserver connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Tia Portal Openness Mcpserver MCP to TypingMind?

Tia Portal Openness Mcpserver runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Tia Portal Openness Mcpserver MCP provide in TypingMind?

Tia Portal Openness Mcpserver exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Tia Portal Openness Mcpserver MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Tia Portal Openness Mcpserver requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇