tiaportal-mcp

tiaportal-mcp is a skill for Claude Code from bulaofen0036-coder/TIA_Portal_Openness_MCP. It costs 103 tokens per session (17,956 once invoked), scanned A, original, MIT.

A skill for controlling Siemens TIA Portal, the engineering software used to configure Siemens PLCs and HMIs. It works through an MCP server, a tool connection that lets an agent inspect and change projects.

In plain words
What is it for?
Use it to inspect, create, modify, compile, save, and download TIA Portal projects, including PLC and HMI work.
Why use it?
It provides a defined read-before-write process and helps avoid guessing project paths or inventing PLC code files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tia-portal-openness-mcp plugin — 1 skill shipped together

Good fit Use it to inspect, create, modify, compile, save, and download TIA Portal projects, including PLC and HMI work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bulaofen0036-coder/tia_portal_openness_mcp/skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bulaofen0036-coder/TIA_Portal_Openness_MCP --skill skill
Clone the repo
git clone --depth 1 https://github.com/bulaofen0036-coder/TIA_Portal_Openness_MCP

Made for: Claude Code.

Or install tia-portal-openness-mcp, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tiaportal-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/bulaofen0036-coder/tia_portal_openness_mcp/skill/github.svg)](https://agentmods.dev/skills/bulaofen0036-coder/tia_portal_openness_mcp/skill)
Your own site
<a href="https://agentmods.dev/skills/bulaofen0036-coder/tia_portal_openness_mcp/skill"><img src="https://agentmods.dev/badge/skills/bulaofen0036-coder/tia_portal_openness_mcp/skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tiaportal-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/bulaofen0036-coder/tia_portal_openness_mcp/skill"><img src="https://agentmods.dev/badge/skills/bulaofen0036-coder/tia_portal_openness_mcp/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 17,956 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 152
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.17956
Opus 5.5 $0.00041 $0.07182
Sonnet 5.5 $0.00021 $0.03591
Haiku 4.5 $0.00010 $0.01796

Measured 5d ago against content hash 096236bfb53f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tiaportal-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/tiaportal-mcp/skill/SKILL.md · 1,153 lines

How it starts

The opening of the file, as written. The whole thing — 1,153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TIA Portal MCP — Single Skill

This is the operating skill for TIA Portal MCP automation. The companion plugin lives at tools/tiaportal-mcp/. It exposes on the order of 235 MCP tools (default lite profile lists 65; exact runtime set: call tools/list on the running server) covering project, hardware, PLC, HMI, and online operations.

0. Always start here

1. Call Bootstrap                        ← returns env, project state, next step
2. Follow RecommendedNextTool            ← e.g. Connect, AttachToOpenProject
3. Call GetProjectTree                   ← resolve real paths (PLC_1, HMI_RT_1)
4. Read-before-write loop                ← inspect, smallest change, compile, save

交付包内最短路径(仅读包内文件时)
根目录 README.md(三步上手)→ scripts/Validate-Bundle.ps1(脱机校验)→ 用 cursor-mcp.example.json 把 command 指到包内 TiaMcpServer.exe → 执行顺序见 docs/full-project-generation-runbook.md 与 templates/project-blueprints/full_plc_hmi_project.json。

Never guess paths. Never invent SCL/LAD XML. If a tool exists for the task, use it; otherwise inspect with DescribeObject/DescribeService first, then call InvokeObject/InvokeService.

0.1 弱模型 / 新手:你一辈子只需要这 15 个工具(其余的先忽略)

This server exposes ~190 tools. You do NOT need most of them. A small or non-expert model should pick only from this whitelist and ignore everything else unless one of these tools' output explicitly tells you to call another:

想做的事 用这个,别的别碰
开局/看环境 Bootstrap → 然后照它返回的 recommendedNextTool 做
连接 TIA Connect(新工程)或 AttachToOpenProject(已打开的工程)
看工程里有什么 GetProjectTree(拿真实 softwarePath,如 PLC_1),细看用 GetSoftwareTree / GetBlocks
做一个完整项目 ScaffoldProject(一次调用搞定 PLC+HMI,见 §0.5)
加一段 PLC 逻辑/变量/DB/UDT PlcBuildAndImport(先 dryRun=true,见 §6.2/§10)
复杂 SCL(带 FOR/CASE/表达式) ImportPlcExternalSource → GenerateBlocksFromExternalSource(§14)
编译验证 CompileAndDiagnosePlc(必须 errorCount=0)
存盘/收尾 SaveProject → Disconnect
环境报错/装不上 Doctor — 一次性体检(TIA装没装/Openness组/连接状态),每项给出修复办法;fix=true(默认)会自动把你加进 Openness 组(可能弹 UAC)

Read the full file on GitHub · 1,153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines 096236bfb53f
  2. 13d ago Changed · +3 lines 6c0a17dbcb6e
  3. 20d ago Changed · +7 lines f1d8c5894631
  4. 1mo ago First seen · 1,142 lines · 103 tokens per session scan A 37939ce7d752

Subscribe to this mod's changes

tiaportal-mcp is a skill published in the GitHub repository bulaofen0036-coder/TIA_Portal_Openness_MCP (358 stars, last pushed 2d ago), licensed MIT. It adds 103 tokens to every session and 17,956 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gx3-existing-project-audit

Analyze an existing Mitsubishi GX Works3 .gx3 project with gx3-cli when the user asks what a ladder does, why a device turns on, or whether a project has risks.

purinzan/gx3-cli-mcp · 44 tokens

tia-review

Audit an EXISTING / open TIA project against the engineering baseline (optimized access, symbolic addressing, FB + instance-DB, UDT typing, per-task language, versioned library TYPEs, PLCopen naming) and the verification-ladder posture. USE when the user asks to "review / audit / lint my TIA project", check…

renanlido/tia-harness · 190 tokens

tia-verify

Run the offline VERIFICATION LADDER on an open TIA project (rung 1 compile, only Error blocks; rung 2 consistency + export/COMPARE roundtrip + VCI workspace diff; rung 3 simulation, future) and generate the FAT/SAT I/O list (rung 6, read-only). USE WHEN the user asks to "verify / compile / check the project builds"…

renanlido/tia-harness · 242 tokens

tia-handoff

Prepare a human-approval envelope for a GATED operation — download / CPU-STOP (G3), go-online (G4), network scan (G7), credentials (G6: master secret, UMAC, upload / block / certificate passwords, password policy), safety/F (G5). USE WHEN the user wants to "download / deploy / go online / commission", or after…

renanlido/tia-harness · 189 tokens

spec-plan

Turn a VALIDATED TIA project-spec into the ordered, named sequence of offline build operations WITHOUT mutating anything (a dry plan). USE after spec-validate passes and before tia-scaffold — when the user asks to "plan / preview / dry-run the build", or wants to see exactly what scaffolding a spec would do and in…

renanlido/tia-harness · 186 tokens

spec-validate

Validate a TIA project-spec against the JSON Schema AND the deterministic cross-field engineering rules (same-subnet, unique names, OrderNumber:{MLFB}/V{fw} format, module limits, language-by-family, and the G5 safety rule). USE when the user provides or edits a project-spec, asks to "validate / check / lint my spec"…

renanlido/tia-harness · 172 tokens