原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

OPC-UA MCP Server

作者:mwieczorkiewicz版本 1.0.0i★ 6i在你的电脑上运行代码仓库 ↗
注册名称io.github.mwieczorkiewicz/opcua-mcp

安装方法

What it does

Read, write, browse, search, and subscribe to live data on an OPC-UA industrial automation server.

  • Connects 在你的电脑上运行
  • Account or key Needs OPCUA_AUTH_MODE, OPCUA_PASSWORD · 2 settings to fill in (OPCUA_ENDPOINT, OPCUA_USERNAME)
  • Category 搜索与 AI 记忆

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

作者:google-research★ 35,6381 个 skill

Skill · 操作手册

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

作者:BigBodyCobain★ 11,6051 个 skill

Skill · 操作手册

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

作者:gosom★ 8,2361 个 skill

Skill · 操作手册

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度10/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分22/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 OPC-UA MCP Server。按照 https://mcp.popnx.com/i/mwieczorkiewicz-opcua-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

让 AI 帮你安装

把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude 安装 MCP server OPC-UA MCP Server,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "opcua": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "OPCUA_ENDPOINT", "-e", "OPCUA_AUTH_MODE", "-e", "OPCUA_USERNAME", "-e", "OPCUA_PASSWORD", "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4" ], "env": { "OPCUA_ENDPOINT": "opc.tcp://localhost:4840", "OPCUA_AUTH_MODE": "your-value", "OPCUA_USERNAME": "your-value", "OPCUA_PASSWORD": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) OPCUA_AUTH_MODE, OPCUA_PASSWORD, OPCUA_ENDPOINT, OPCUA_USERNAME 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 OPC-UA MCP Server 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 OPC-UA MCP Server 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 OPC-UA MCP Server 网站 ↗

  3. 填写 2 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • OPCUA_ENDPOINT 要连接的 OPC-UA 服务器端点,例如 opc.tcp://your-plc-host:4840
      查看英文原文OPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840
      · 默认值 opc.tcp://localhost:4840
    • OPCUA_USERNAME 用户名,当 OPCUA_AUTH_MODE=username 时必填
      查看英文原文Username, required if OPCUA_AUTH_MODE=username

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  5. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "opcua": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "OPCUA_ENDPOINT",
            "-e",
            "OPCUA_AUTH_MODE",
            "-e",
            "OPCUA_USERNAME",
            "-e",
            "OPCUA_PASSWORD",
            "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
          ],
          "env": {
            "OPCUA_ENDPOINT": "opc.tcp://localhost:4840",
            "OPCUA_AUTH_MODE": "your-value",
            "OPCUA_USERNAME": "your-value",
            "OPCUA_PASSWORD": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 退出 Claude 再重新打开

  7. 试一试

    用 OPC-UA MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 OPC-UA MCP Server,或回答中出现 OPC-UA MCP Server 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • OPCUA_SECURITY_POLICY OPC-UA 传输安全策略,例如 Basic256Sha256
    查看英文原文OPC-UA transport security policy, e.g. Basic256Sha256
    · 默认值 None
  • OPCUA_SECURITY_MODE OPC-UA 传输安全模式,例如 SignAndEncrypt
    查看英文原文OPC-UA transport security mode, e.g. SignAndEncrypt
    · 默认值 None
  • SERVER_TRANSPORT MCP 传输方式:stdio(适用于本地 MCP 客户端)或 http(适用于远程/托管部署)
    查看英文原文MCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)
    · 默认值 stdio

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 OPC-UA MCP Server

OPC-UA MCP Server 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 OPC-UA MCP Server 的应用

  • 需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次)
  • 需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次)
  • 需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次)

B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server OPC-UA MCP Server,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user opcua --env OPCUA_ENDPOINT=opc.tcp://localhost:4840 --env OPCUA_AUTH_MODE=your-value --env OPCUA_USERNAME=your-value --env OPCUA_PASSWORD=your-value -- docker run -i --rm -e OPCUA_ENDPOINT -e OPCUA_AUTH_MODE -e OPCUA_USERNAME -e OPCUA_PASSWORD ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) OPCUA_AUTH_MODE, OPCUA_PASSWORD, OPCUA_ENDPOINT, OPCUA_USERNAME 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 OPC-UA MCP Server 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 OPC-UA MCP Server 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 OPC-UA MCP Server 网站 ↗

  3. 填写 2 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • OPCUA_ENDPOINT 要连接的 OPC-UA 服务器端点,例如 opc.tcp://your-plc-host:4840
      查看英文原文OPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840
      · 默认值 opc.tcp://localhost:4840
    • OPCUA_USERNAME 用户名,当 OPCUA_AUTH_MODE=username 时必填
      查看英文原文Username, required if OPCUA_AUTH_MODE=username

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  5. 粘贴这条命令并按 Enter

    claude mcp add --scope user opcua --env OPCUA_ENDPOINT=opc.tcp://localhost:4840 --env OPCUA_AUTH_MODE=your-value --env OPCUA_USERNAME=your-value --env OPCUA_PASSWORD=your-value -- docker run -i --rm -e OPCUA_ENDPOINT -e OPCUA_AUTH_MODE -e OPCUA_USERNAME -e OPCUA_PASSWORD ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Claude Code 中输入 /mcp

    应能看到 OPC-UA MCP Server 在列表中并显示已连接

  7. 试一试

    用 OPC-UA MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 OPC-UA MCP Server,或回答中出现 OPC-UA MCP Server 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • OPCUA_SECURITY_POLICY OPC-UA 传输安全策略,例如 Basic256Sha256
    查看英文原文OPC-UA transport security policy, e.g. Basic256Sha256
    · 默认值 None
  • OPCUA_SECURITY_MODE OPC-UA 传输安全模式,例如 SignAndEncrypt
    查看英文原文OPC-UA transport security mode, e.g. SignAndEncrypt
    · 默认值 None
  • SERVER_TRANSPORT MCP 传输方式:stdio(适用于本地 MCP 客户端)或 http(适用于远程/托管部署)
    查看英文原文MCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)
    · 默认值 stdio

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server OPC-UA MCP Server,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "opcua": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "OPCUA_ENDPOINT", "-e", "OPCUA_AUTH_MODE", "-e", "OPCUA_USERNAME", "-e", "OPCUA_PASSWORD", "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4" ], "env": { "OPCUA_ENDPOINT": "opc.tcp://localhost:4840", "OPCUA_AUTH_MODE": "your-value", "OPCUA_USERNAME": "your-value", "OPCUA_PASSWORD": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) OPCUA_AUTH_MODE, OPCUA_PASSWORD, OPCUA_ENDPOINT, OPCUA_USERNAME 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 OPC-UA MCP Server 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 OPC-UA MCP Server 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 OPC-UA MCP Server 网站 ↗

  3. 填写 2 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • OPCUA_ENDPOINT 要连接的 OPC-UA 服务器端点,例如 opc.tcp://your-plc-host:4840
      查看英文原文OPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840
      · 默认值 opc.tcp://localhost:4840
    • OPCUA_USERNAME 用户名,当 OPCUA_AUTH_MODE=username 时必填
      查看英文原文Username, required if OPCUA_AUTH_MODE=username

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 OPC-UA MCP Server 的设置中,OPCUA_AUTH_MODE, OPCUA_PASSWORD, OPCUA_ENDPOINT, OPCUA_USERNAME 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Cursor 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 OPC-UA MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 OPC-UA MCP Server,或回答中出现 OPC-UA MCP Server 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • OPCUA_SECURITY_POLICY OPC-UA 传输安全策略,例如 Basic256Sha256
    查看英文原文OPC-UA transport security policy, e.g. Basic256Sha256
    · 默认值 None
  • OPCUA_SECURITY_MODE OPC-UA 传输安全模式,例如 SignAndEncrypt
    查看英文原文OPC-UA transport security mode, e.g. SignAndEncrypt
    · 默认值 None
  • SERVER_TRANSPORT MCP 传输方式:stdio(适用于本地 MCP 客户端)或 http(适用于远程/托管部署)
    查看英文原文MCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)
    · 默认值 stdio

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 OPC-UA MCP Server 的密钥(在开发者网站创建) · 需要填写 2 项设置(OPCUA_ENDPOINT, OPCUA_USERNAME) · 需要先在电脑上安装 Docker(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server OPC-UA MCP Server,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "opcua": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "OPCUA_ENDPOINT", "-e", "OPCUA_AUTH_MODE", "-e", "OPCUA_USERNAME", "-e", "OPCUA_PASSWORD", "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4" ], "env": { "OPCUA_ENDPOINT": "opc.tcp://localhost:4840", "OPCUA_AUTH_MODE": "your-value", "OPCUA_USERNAME": "your-value", "OPCUA_PASSWORD": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) OPCUA_AUTH_MODE, OPCUA_PASSWORD, OPCUA_ENDPOINT, OPCUA_USERNAME 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 OPC-UA MCP Server 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 OPC-UA MCP Server 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 OPC-UA MCP Server 网站 ↗

  3. 填写 2 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • OPCUA_ENDPOINT 要连接的 OPC-UA 服务器端点,例如 opc.tcp://your-plc-host:4840
      查看英文原文OPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840
      · 默认值 opc.tcp://localhost:4840
    • OPCUA_USERNAME 用户名,当 OPCUA_AUTH_MODE=username 时必填
      查看英文原文Username, required if OPCUA_AUTH_MODE=username

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 OPC-UA MCP Server 的设置中,OPCUA_AUTH_MODE, OPCUA_PASSWORD, OPCUA_ENDPOINT, OPCUA_USERNAME 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 VS Code 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 OPC-UA MCP Server 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 OPC-UA MCP Server,或回答中出现 OPC-UA MCP Server 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • OPCUA_SECURITY_POLICY OPC-UA 传输安全策略,例如 Basic256Sha256
    查看英文原文OPC-UA transport security policy, e.g. Basic256Sha256
    · 默认值 None
  • OPCUA_SECURITY_MODE OPC-UA 传输安全模式,例如 SignAndEncrypt
    查看英文原文OPC-UA transport security mode, e.g. SignAndEncrypt
    · 默认值 None
  • SERVER_TRANSPORT MCP 传输方式:stdio(适用于本地 MCP 客户端)或 http(适用于远程/托管部署)
    查看英文原文MCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)
    · 默认值 stdio

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 OPC-UA MCP Server 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user opcua --env OPCUA_ENDPOINT=opc.tcp://localhost:4840 --env OPCUA_AUTH_MODE=your-value --env OPCUA_USERNAME=your-value --env OPCUA_PASSWORD=your-value -- docker run -i --rm -e OPCUA_ENDPOINT -e OPCUA_AUTH_MODE -e OPCUA_USERNAME -e OPCUA_PASSWORD ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "opcua": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_AUTH_MODE",
        "-e",
        "OPCUA_USERNAME",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "opc.tcp://localhost:4840",
        "OPCUA_AUTH_MODE": "your-value",
        "OPCUA_USERNAME": "your-value",
        "OPCUA_PASSWORD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "opcua": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_AUTH_MODE",
        "-e",
        "OPCUA_USERNAME",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "opc.tcp://localhost:4840",
        "OPCUA_AUTH_MODE": "your-value",
        "OPCUA_USERNAME": "your-value",
        "OPCUA_PASSWORD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "opcua": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_AUTH_MODE",
        "-e",
        "OPCUA_USERNAME",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "opc.tcp://localhost:4840",
        "OPCUA_AUTH_MODE": "your-value",
        "OPCUA_USERNAME": "your-value",
        "OPCUA_PASSWORD": "your-value"
      }
    }
  }
}

需要你填写的值

  • OPCUA_ENDPOINT 必填 env
    要连接的 OPC-UA 服务器端点,例如 opc.tcp://your-plc-host:4840
    查看英文原文OPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840
  • OPCUA_AUTH_MODE 机密 必填 env
    OPC-UA 服务器的认证模式
    查看英文原文Authentication mode against the OPC-UA server
  • OPCUA_USERNAME 必填 env
    用户名,当 OPCUA_AUTH_MODE=username 时必填
    查看英文原文Username, required if OPCUA_AUTH_MODE=username
  • OPCUA_PASSWORD 机密 必填 env
    密码,当 OPCUA_AUTH_MODE=username 时必填
    查看英文原文Password, required if OPCUA_AUTH_MODE=username
  • OPCUA_SECURITY_POLICY env
    OPC-UA 传输安全策略,例如 Basic256Sha256
    查看英文原文OPC-UA transport security policy, e.g. Basic256Sha256
  • OPCUA_SECURITY_MODE env
    OPC-UA 传输安全模式,例如 SignAndEncrypt
    查看英文原文OPC-UA transport security mode, e.g. SignAndEncrypt
  • SERVER_TRANSPORT env
    MCP 传输方式:stdio(适用于本地 MCP 客户端)或 http(适用于远程/托管部署)
    查看英文原文MCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
不在 npm/PyPI 上
连接方式
在你的电脑上运行
最新版本i
1.0.0
发布到注册中心i
2026年8月5日
代码最后更新i
2026年10月28日
作者
mwieczorkiewicz
软件包
oci: ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mwieczorkiewicz 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于22天前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

未检查:只能检查标明版本的 npm 和 PyPI 包

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/mwieczorkiewicz-opcua-mcp.svg)](https://mcp.popnx.com/en/servers/mwieczorkiewicz-opcua-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 6430 个服务器的 90%
  • 发布到注册中心的时间比此分类中其他 6430 个服务器的 24% 更新
  • 基础检查结果等于或优于此分类中其他 6430 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

OPC-UA MCP Server 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:OPCUA_AUTH_MODE, OPCUA_PASSWORD

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于22天前,最新版本(1.0.0)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。

有什么可以替代它?

同一分类中有:OpenSEO, Exa, Microsoft Learn MCP, Docs, COTAL actions (cotal.ai)

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

作者:every-app广泛使用★ 2.8万5天前更新

在云端运行✓ everyapp.com

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs广泛使用★ 52442个月前更新

在云端运行✓ 服务方 · exa.aiPopNx 团队已实际试用

Microsoft Learn MCP

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

作者:MicrosoftDocs广泛使用★ 199712个月前更新

在云端运行✓ 服务方 · microsoft.comPopNx 团队已实际试用

Docs

Search and read Empryo's documentation. Read-only, no auth, no local access.

作者:proxysoul正在增长★ 16262个月前更新

在云端运行✓ empryo.com
与相似项目对比
本项
OPC-UA MCP Server
OpenSEOExaMicrosoft Learn MCPDocsCOTAL actions (cotal.ai)
运行位置需要安装在电脑上在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装
需要密钥是否否否否否
可在 Claude 中按 + 添加否是是是否否
基础检查3/35/52/44/44/44/4
许可证MITMITMITCC-BY-4.0NOASSERTIONApache-2.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

OPC-UA MCP Server

An MCP server that lets an LLM read, write, browse, search, and subscribe to live data on an OPC-UA industrial automation server - over stdio or HTTP, with a persistent cache and a searchable index of the address space built in.

https://github.com/user-attachments/assets/0b676e6e-17ce-42f5-918f-9a615e939008

Quick start

The fastest way to see it working end-to-end, using the bundled Microsoft OPC-UA test server and a public tunnel Claude can reach:

git clone https://github.com/mwieczorkiewicz/opcua-mcp.git

cd opcua-mcp make compose-up # starts a test OPC-UA server, opcua-mcp, and a public HTTPS tunnel make connector-url # prints a URL like https://xyz.trycloudflare.com/mcp

Paste that URL into Claude at Settings → Connectors → Add custom connector, then ask it to browse the server or read a value. Stop with make compose-down when you're done - see docs/deployment.md for what that tunnel exposes and how to run against your own OPC-UA server instead.

Building and running locally
go build -o opcua-mcp ./cmd/opcua-mcp.go

stdio (default) - no OPC-UA connection until the client calls opcua_connect

./opcua-mcp

HTTP - connects eagerly at startup

SERVER_TRANSPORT=http OPCUA_ENDPOINT=opc.tcp://localhost:4840 ./opcua-mcp

Requires Go 1.26+ and, optionally, Docker for the test server / containerized deployment.

What it does

  • Read / write node values, with type validation on writes so a mismatched value is rejected before it reaches the device.
  • Browse the address space one level at a time or recursively, and look nodes up by name instead of by node ID.
  • Subscribe to push-based live updates - subscriptions persist across restarts and are automatically re-established on reconnect.
  • Cache reads, browse results, and type info on disk (bbolt), so repeat lookups don't round-trip to the device; writes invalidate the relevant entry automatically.
  • Discover and search the address space in the background, indexed with Bleve for fuzzy/partial browse-name lookups.
  • Anonymous, username/password, or certificate auth, with configurable OPC-UA security policy and mode.

See docs/architecture.md for how the caching layer, subscription manager, and discovery index fit together.

MCP tools

ToolDescription
opcua_readRead one or more node values. Subscribed nodes are served from the live cache; others go live unless max_age_ms allows a cached value.
opcua_writeWrite a value to a node. Validates the value's type against the node before writing.
opcua_get_valueRead a single node's value - a convenience wrapper over opcua_read.
opcua_get_value_by_nameRead a value by browse name instead of node ID, via the discovery index.
opcua_browseList a node's immediate children.
opcua_browse_nodesRecursively browse from a node up to a depth limit, nesting children under their parent.
opcua_node_infoGet a node's metadata (data type, access level, etc.).
opcua_find_similar_nodesFuzzy-match browse names against the discovery index.
opcua_subscribeStart push-based updates for one or more nodes at a given interval.
opcua_unsubscribeCancel a subscription, by ID or by naming one of its nodes.
opcua_list_subscriptionsList active subscriptions.
opcua_connect / opcua_disconnectManage the connection explicitly (mainly relevant in stdio mode).
opcua_server_infoGet OPC-UA server metadata.
opcua_discovery_statsStats on the background discovery cache (node count, depth distribution, enabled flags).
opcua_force_discoveryTrigger an immediate discovery refresh instead of waiting for the next cycle.
opcua_debug_search / opcua_ensure_server_nodesDiagnostics for troubleshooting why a node isn't showing up in search.
Read-only mode

Set MCP_READ_ONLY=true to expose only tools that don't change anything on the OPC-UA server or the connection: opcua_write, opcua_disconnect, opcua_subscribe and opcua_unsubscribe are hidden from tools/list, and a client that calls one of them by name gets an error instead of running it. opcua_connect and the discovery tools stay available.

To approve specific tools on top of the read-only set, list them in MCP_ALLOWED_TOOLS, for example MCP_ALLOWED_TOOLS=opcua_subscribe,opcua_unsubscribe. An unknown tool name stops the server at startup, so a typo can't silently leave a tool disabled. Any tool added in a future release is excluded from read-only mode until it is classified as read-only.

MCP resources

ResourceDescription
opcua://node/{node_id}Node data, e.g. opcua://node/ns=2;i=1. Accepts a comma-separated list for multiple nodes.
opcua://serverOPC-UA server information.

Configuration

Configuration is loaded (via viper) from three sources, in ascending order of precedence:

  1. Built-in defaults (shown in the tables below).
  2. An optional config file - TOML, YAML, JSON, or any other format viper supports. By default ./config.{yaml,yml,toml,json,...} is read if present; point at an explicit path with CONFIG_FILE=/path/to/config.toml. A config file is entirely optional - env vars alone are still enough.
  3. Environment variables (SERVER_*, OPCUA_*, MCP_*, SEARCH_*, STORE_*) - always win over the config file, so existing env-var-only deployments keep working unchanged.

A config file mirrors the env var names, lowercased and nested under each prefix, e.g. SERVER_HTTP_PORT becomes:

server:

http_port: "8080"

Server
VariableDefaultDescription
SERVER_TRANSPORTstdiostdio or http
SERVER_HTTP_PORT8080Port for HTTP transport
SERVER_LOG_LEVELinfodebug, info, warn, error
SERVER_LOG_FORMATjsonjson or text
SERVER_LOG_OUTPUTstdoutstdout, stderr, or file (forced to stderr in stdio mode, since stdout carries the MCP stream)
SERVER_LOG_FILE-Log file path, required if SERVER_LOG_OUTPUT=file
SERVER_LOG_ADD_SOURCEfalseAdd source file/line to log entries
OPC-UA connection
VariableDefaultDescription
OPCUA_ENDPOINTopc.tcp://localhost:4840Server endpoint
OPCUA_AUTH_MODEanonymousanonymous, username, or certificate
OPCUA_USERNAME / OPCUA_PASSWORD-Required if AUTH_MODE=username
OPCUA_CERT_FILE / OPCUA_KEY_FILE-PEM client certificate/RSA key. Required if AUTH_MODE=certificate or security policy/mode is not None (secures the channel for any auth mode)
OPCUA_SERVER_CERT-Optional pinned server certificate (PEM or DER); the connection is refused if the endpoint's certificate differs. Without it the certificate is taken from GetEndpoints
OPCUA_SECURITY_POLICYNoneNone, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep
OPCUA_SECURITY_MODENoneNone, Sign, SignAndEncrypt
OPCUA_REQUEST_TIMEOUT30sPer-request timeout
OPCUA_SESSION_TIMEOUT60sSession timeout
OPCUA_MAX_RETRIES3Connection retry attempts
OPCUA_RETRY_DELAY1sDelay between retries
MCP
VariableDefaultDescription
MCP_NAMEOPC-UA MCP ServerServer name reported to clients
MCP_VERSION1.0.0Server version reported to clients
MCP_ENABLE_TOOLStrueEnable tools
MCP_ENABLE_RESOURCEStrueEnable resources
MCP_ENABLE_PROMPTSfalseEnable prompts
MCP_HTTP_PATH/mcpHTTP endpoint path
MCP_READ_ONLYfalseExpose only read-only tools (see Read-only mode)
MCP_ALLOWED_TOOLS_(empty)_Comma-separated tools to expose in addition to the read-only set; ignored unless MCP_READ_ONLY=true
Discovery and search
VariableDefaultDescription
SEARCH_ENABLE_DISCOVERYtrueEnable background node discovery
SEARCH_DISCOVERY_INTERVAL30sHow often to re-crawl the address space
SEARCH_DISCOVERY_ROOT_NODEi=85Root node to crawl from (Objects folder)
SEARCH_MAX_DISCOVERY_DEPTH10Maximum crawl depth
SEARCH_MAX_NODES_PER_BROWSE10000Cap on nodes returned per browse call
SEARCH_ENABLE_SEARCHtrueEnable the Bleve search index
SEARCH_INDEX_PATH./search_indexSearch index directory
SEARCH_MAX_RESULTS100Max results per search
SEARCH_MIN_SCORE0.1Minimum match score
SEARCH_ENABLE_CACHEtrueMaster switch for read-through caching. false makes every opcua_read/opcua_write/opcua_browse_nodes call go live, matching pre-cache behavior exactly
Persistent store

Backs read-through caching and subscription persistence with an on-disk bbolt database.

VariableDefaultDescription
STORE_DB_PATHmcp_opcua_store.dbDatabase file path
STORE_OPEN_TIMEOUT5sHow long to wait for the file lock on open
STORE_TYPEINFO_TTL24hFreshness window for cached type info
STORE_BROWSE_TTL5mFreshness window for cached browse results
STORE_BATCH_WINDOW25msHow often subscription notifications flush to the store
STORE_BATCH_MAX_ITEMS250Max notifications flushed per batch
STORE_NOTIFY_CHAN_BUFFER1024Buffer size for incoming subscription notifications

If the store fails to open (e.g. a stale lock from a prior ungraceful shutdown, or a read-only filesystem), the server logs a warning and keeps running with caching forced off and subscription tools returning an error - every other tool is unaffected.

Telemetry

opcua-mcp collects anonymous, aggregate usage telemetry (which tools get used, cache hit rate, error categories - never node IDs, endpoint URLs, node values, or credentials) to help prioritize maintenance of this open-source project. It's on by default; see docs/telemetry.md for exactly what is and isn't collected.

Opt out with either:

VariableEffect
DO_NOT_TRACK=1The cross-project community convention (consoledonottrack.com)
OPCUA_MCP_TELEMETRY=falseThis project's own switch

Docker

docker build -t opcua-mcp .

docker run -p 8080:8080 -e SERVER_TRANSPORT=http -e OPCUA_ENDPOINT=opc.tcp://your-server:4840 opcua-mcp

Multi-stage build on Chainguard's minimal Go image, running from scratch - no shell, small attack surface. Mount ./search_index and ./mcp_opcua_store.db as volumes to persist discovery/cache/subscription state across restarts. Full auth-mode examples, the Compose dev stack, and the Claude-connector tunnel setup are in docs/deployment.md.

Development

make start-opcua-server      # Microsoft OPC-UA test server in Docker

make run-with-test-server # run the app against it (auto start/stop)

go test ./... # unit tests go test -race ./... make test-integration # real Subscribe/reconnect/cache behavior via testcontainers-go (needs Docker)

VS Code launch configs are in .vscode/launch.example.json - copy to .vscode/launch.json to get stdio/HTTP/auth debug targets that start and stop the test server automatically. make help lists every available target.

Tests are table-driven and mock the OPC-UA client at the opcuaClient interface seam (internal/opcua/mock_client_test.go) rather than against a live/simulated server - see docs/architecture.md for how the pieces being tested fit together, and docs/COMMIT_CONVENTION.md for this repo's commit messag

只显示了开头部分;其余内容请在仓库中阅读