TIA Portal Docs — Siemens PLC programming docs over MCP

io.github.tia-forge由 GitHub 账号 tia-forge 发布v0.1.0更新于 Nov 1, 2026

Search 2800+ official TIA Portal chapters: blocks, instructions, data types, constants.

发布方自己的服务:Siemens

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

远程 MCP 端点,可检索 2800+ 篇西门子 TIA Portal 官方文档章节,需付费 API 密钥并按次扣减额度。

可以做什么
  • 检索 TIA Portal 官方文档章节,涵盖程序块、指令、数据类型与常量
  • 按查询获取文档内容,每次获取消耗一次额度
  • 向支持 Streamable HTTP 与 Bearer 头的任意 MCP 客户端提供结果
适用场景
适合在协助 PLC 编程时,需要权威的西门子 TIA Portal 参考资料(程序块、指令、数据类型或常量细节),而不想依赖模型自身记忆的场景。
运行要求
通过 Streamable HTTP 连接 tia.hubwiz.com 远程端点;需在产品页通过微信登录获取 API 密钥,并以 Bearer 形式放入 Authorization 头;需要能访问该端点的网络。
安装前请注意
付费服务:免费密钥含 100 次 get_docs 调用,充值需付费(1000 次起价 ¥9.90),每次 get_docs 调用消耗一次额度。API 密钥属于机密,通过 Authorization 头发送。README 另述一个付费的 TIA Portal 网关产品,与本文档端点并非同一服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 TIA Portal Docs — Siemens PLC programming docs over MCP,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.tia-forge%2Ftia-portal-docs/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "tia-portal-docs-siemens-plc-programming": {
      "type": "http",
      "url": "https://tia.hubwiz.com/ai-coding-docs/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

TiaLink — TIA Portal MCP Gateway

TiaLink is a TIA Portal MCP gateway by 汇智网 (hubwiz.com). It lets any MCP-capable AI agent operate Siemens TIA Portal projects directly.

📄 Product page: https://tia.hubwiz.com/tia-link


What it does

TiaLink exposes Siemens TIA Portal capabilities as MCP tools, so an AI agent can:

  • Configure hardware & networks — add devices and modules, assign IP addresses, create subnets and IO systems
  • Work with programs & data — create FB / FC / DB / UDT blocks, write SCL, import SimaticML (including LAD) blocks
  • Build — compile, save, export, and archive projects
  • Simulate & verify — download to S7-PLCSIM Advanced, read/write variables, run test scenarios
  • Read back — project model, block interfaces, and hardware tree for verification

In short: instead of getting a code snippet in a chat window, the agent operates a real TIA Portal project and reads the result back.


How it works

AI agent (MCP client)        │  MCP (Streamable HTTP, endpoint /mcp)        ▼     TiaLink  ──►  Siemens TIA Portal Openness  ──►  TIA Portal project
  • Protocol: MCP (Model Context Protocol), Streamable HTTP, endpoint /mcp
  • Underlying: Siemens TIA Portal Openness
  • Agent-agnostic: TiaLink does not bind to any specific model or vendor. Any MCP client that supports Streamable HTTP and can send a Bearer header can connect.

Getting started

  1. Check the machine — Windows, a licensed TIA Portal V19 or V20 (V21 is not supported yet), and the Windows account in the local Siemens TIA Openness group. Full checklist: install.md.
  2. Buy and download — TiaLink is paid software: ¥99/month (China). Buy on the product page; the download link and the setup steps appear immediately after the WeChat Pay payment. Keep the order number — the licence request needs it.
  3. Point your MCP client at the gateway — ready-made configurations for Claude Code, Cursor, VS Code and Claude Desktop are in examples/.
  4. Verify — list the tools, read a scratch project, then create one block and require the compile result. If step three fails, see the troubleshooting table in install.md.

If your client only speaks stdio

TiaLink serves Streamable HTTP. Most clients handle that directly, but some desktop hosts and one-click bundles can only launch stdio servers. For those there is a small adapter in this repository, server/index.js — it forwards JSON-RPC between stdio and the gateway and adds no functionality of its own.

⚠️ The adapter is not the product. It needs a licensed TiaLink gateway already running. Without one it fails on the first request — by design.

bash
# Run the adapter against a local gatewayTIALINK_URL=http://127.0.0.1:8080/mcp npx tialink-mcp
# Pre-flight: is the gateway reachable, is the token right, which tools exist?TIALINK_URL=http://192.168.1.78:8080/mcp TIALINK_TOKEN=... npx tialink-mcp --check
PathWhat you get
npx tialink-mcpstdio ↔ HTTP adapter (npm, no dependencies, Node ≥ 18)
manifest.json + .mcpbone-click desktop bundle — npx @anthropic-ai/mcpb pack .
Dockerfilethe same adapter in a container, for Linux CI and sandboxed agents

Configuration is by environment variable: TIALINK_URL (default http://127.0.0.1:8080/mcp), TIALINK_TOKEN, TIALINK_TIMEOUT_MS (default 600000 — compile and download calls are slow on purpose).

Deployment

  • TiaLink runs on the same Windows machine as TIA Portal (Openness only runs where TIA Portal is installed).
  • The MCP client can run on another machine and connect over the LAN — for example, http://<gateway-host>:8080/mcp.
  • Project data never leaves the local network. Suitable for offline and on-premises environments.
  • Recommended: configure an API token; the MCP client sends it as a Bearer header.

Supported clients

Any MCP client that supports Streamable HTTP and can send a Bearer header, for example:

  • Claude Code
  • Cursor
  • VS Code

TiaLink is not tied to a specific vendor — the same gateway works with different agents (including Tencent WorkBuddy and other MCP clients).


Example MCP configuration

json
{  "mcpServers": {    "tialink": {      "type": "http",      "url": "http://192.168.1.78:8080/mcp",      "headers": {        "Authorization": "Bearer <YOUR_API_TOKEN>"      }    }  }}

Replace 192.168.1.78 with the IP or hostname of the machine running TiaLink, and <YOUR_API_TOKEN> with your configured token. Configurations for specific clients — including one that reads the token from an environment variable instead of the file — are in examples/.


Related tools in the TIA Forge suite

TiaLink is part of TIA Forge, a TIA Portal engineering agent suite by 汇智网:

  • reverse-docs — reverse engineering documentation for existing PLC projects
  • lad2scl / txt2scl / txt2lad — LAD / SCL / text conversion
  • block-sim — block-level simulation

Where else to find us

  • Awesome PLC AI — a curated list of AI tools, agents and MCP bridges for PLC engineering (Siemens TIA Portal, CODESYS, TwinCAT, Studio 5000, GX Works), maintained by 汇智网. TiaLink is listed there alongside the alternatives, with a disclosure.
  • SkillHub — the gateway packaged as an Agent Skill (skillhub install tialink-tia-portal): prerequisites, connection snippet, first-session verification and safety rules, written for the agent that reads it rather than for a human skimming a README. The same publisher also ships three companion skills: LadDoc → SimaticML, cloud simulation and TIA Portal docs search.

FAQ

What is TiaLink? TiaLink is a TIA Portal MCP gateway by 汇智网 (hubwiz.com). It lets any AI agent operate Siemens TIA Portal projects through the MCP protocol.

Does TiaLink require internet access? No. TiaLink runs on the same machine as TIA Portal, all operations happen locally, and project data stays on-prem.

Does the MCP gateway have to be on the same computer as TIA Portal? The gateway itself must run on the same machine as TIA Portal (Openness requires it). The MCP client, however, can run on a different machine and connect over the LAN.

Is TiaLink tied to one AI vendor? No. TiaLink is agent-agnostic — any MCP client that supports Streamable HTTP with a Bearer header can use it.

Can AI-generated PLC code be used directly? AI handles the verifiable software part, but safety functions must be implemented in hardware (safety relay / safety PLC), hard interlocks must be pneumatic or electrical, and time/sensor tuning must be done on the real machine. TiaLink does not replace safety responsibility.

What does it cost? ¥99/month (China). Multi-seat, floating and air-gapped enterprise deployments are quoted on request — write to [email protected].

Is TiaLink open source? No. TiaLink is commercial, closed-source software — the gateway and its engine are not open source. What is MIT-licensed is the stdio↔HTTP transport bridge in server/, a thin adapter that does nothing without a licensed, running gateway. Documentation in this repository is CC BY 4.0.

How do I buy it and get a licence? Buy on the product page: after the WeChat Pay payment, the page immediately shows the download link and the setup steps — no account or form required. Install TiaLink as a normal user, open http://localhost:8080/, and send the machine code plus the generated .tlreq request file to [email protected]. The machine-bound .lic is issued for that machine and works fully offline.


Links


License

TiaLink is commercial, closed-source software. The gateway and its engine are not open source, and no part of them is distributed in this repository. All rights reserved.

  • This repository (documentation, examples) is licensed under CC BY 4.0 — see LICENSE.
  • The stdio bridge in server/ — plus its package.json, manifest.json and Dockerfile — is MIT licensed — see LICENSE-BRIDGE. It is a thin transport adapter with no gateway logic: fork it, vendor it, ship it in your own agent tooling. A licensed TiaLink gateway is still required at runtime.

来源:README.md,提交 6f8bc7d

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

1
  1. v0.1.0最新Oct 25, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Siemens 集成