OPC UA MCP Server

An MCP server that connects to OPC UA-enabled industrial systems, allowing AI agents to monitor, analyze, and control operational data in real time.

Local serverstdio

What is the OPC UA MCP Server?

OPC UA MCP Server is an MCP project maintained in the kukapay/opcua-mcp repository. The maintainer describes its purpose as “An MCP server that connects to OPC UA-enabled industrial systems, allowing AI agents to monitor, analyze, and control operational data in real time”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares OPCUA_SERVER_URL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
Parameters- node_id (str): OPC UA node ID (e.g., ns=2;i=3).
ReturnsA success or error message (e.g., "Successfully wrote 100 to node ns=2;i=3").
valuestr): Value to write (converted based on node type).

How to install the OPC UA MCP Server

{
  "mcpServers": {
    "opcua-mcp": {
      "command": "python",
      "args": [
        "path/to/opcua_mcp/main.py"
      ],
      "env": {
        "OPCUA_SERVER_URL": "your-opc-ua-server-url"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
OPCUA_SERVER_URLDeclared in the maintainer’s client configuration.Check documentation