OP

OPC UA MCP Server

Published by IndustriAgents

Connect AI assistants to industrial OPC UA: browse, read, history, subscriptions, events and alarms.

Website
CATEGORY
More to explore
DEPLOYMENT
Local package
LATEST SOURCE VERSION
0.6.0
SOURCE CHECKED
Dec 1, 2026

Quick answers

How do I add OPC UA MCP Server to Claude Code, Cursor or Codex?

Claude CodeCommand

Run this in your terminal:

claude mcp add --env 'OPCUA_SERVER_URL=<your-opcua-server-url>' --env 'OPCUA_CLIENT_KEY=<your-opcua-client-key>' --env 'OPCUA_PASSWORD=<your-opcua-password>' --env 'OPCUA_USER_KEY=<your-opcua-user-key>' --env 'OPCUA_PROFILE=<your-opcua-profile>' --env 'OPCUA_AUDIT_CHAIN_KEY_FILE=<your-opcua-audit-chain-key-file>' --transport stdio opc-ua -- npx -y opcua-mcp-server

Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.

Claude Code setup guide
CursorConfig

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "opc-ua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "<your-opcua-server-url>",
        "OPCUA_CLIENT_KEY": "<your-opcua-client-key>",
        "OPCUA_PASSWORD": "<your-opcua-password>",
        "OPCUA_USER_KEY": "<your-opcua-user-key>",
        "OPCUA_PROFILE": "<your-opcua-profile>",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<your-opcua-audit-chain-key-file>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.

Cursor setup guide
CodexCommand

Run this in your terminal:

codex mcp add opc-ua --env 'OPCUA_SERVER_URL=<your-opcua-server-url>' --env 'OPCUA_CLIENT_KEY=<your-opcua-client-key>' --env 'OPCUA_PASSWORD=<your-opcua-password>' --env 'OPCUA_USER_KEY=<your-opcua-user-key>' --env 'OPCUA_PROFILE=<your-opcua-profile>' --env 'OPCUA_AUDIT_CHAIN_KEY_FILE=<your-opcua-audit-chain-key-file>' -- npx -y opcua-mcp-server

Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.

Codex setup guide
VS CodeConfig

Add this to .mcp.json at the root of your workspace:

{
  "mcpServers": {
    "opc-ua": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "<your-opcua-server-url>",
        "OPCUA_CLIENT_KEY": "<your-opcua-client-key>",
        "OPCUA_PASSWORD": "<your-opcua-password>",
        "OPCUA_USER_KEY": "<your-opcua-user-key>",
        "OPCUA_PROFILE": "<your-opcua-profile>",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<your-opcua-audit-chain-key-file>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.

VS Code setup guide
Claude DesktopConfig

Add this to claude_desktop_config.json, then restart Claude:

{
  "mcpServers": {
    "opc-ua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "<your-opcua-server-url>",
        "OPCUA_CLIENT_KEY": "<your-opcua-client-key>",
        "OPCUA_PASSWORD": "<your-opcua-password>",
        "OPCUA_USER_KEY": "<your-opcua-user-key>",
        "OPCUA_PROFILE": "<your-opcua-profile>",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<your-opcua-audit-chain-key-file>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OPCUA_SERVER_URL and OPCUA_CLIENT_KEY and OPCUA_PASSWORD and OPCUA_USER_KEY and OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE.

Claude Desktop setup guide
ChatGPTNot available

ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.

ChatGPT setup guide

Which apps can use OPC UA MCP Server?

Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.

Does OPC UA MCP Server need an API key?

To run it on your computer, set OPCUA_SERVER_URL, OPCUA_CLIENT_KEY, OPCUA_PASSWORD, OPCUA_USER_KEY, OPCUA_PROFILE and OPCUA_AUDIT_CHAIN_KEY_FILE first, with values from the publisher.

Is OPC UA MCP Server official?

It's published by IndustriAgents. The Official MCP Registry accepts names under io.github.midhunxavier only from the GitHub account or organisation midhunxavier. We last checked its listing on Dec 1, 2026. A listing shows where a server comes from; it isn't a security review.

Published packages

npm · opcua-mcp-server@0.6.0
View source repository