MCP directory
OM

OPC-UA MCP Server

by github.com/mwieczorkiewicz · v1.0.0 · updated Aug 5, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4

Environment variables

  • OPCUA_ENDPOINTrequired

    OPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840

  • OPCUA_AUTH_MODE

    Authentication mode against the OPC-UA server

  • OPCUA_USERNAME

    Username, required if OPCUA_AUTH_MODE=username

  • OPCUA_PASSWORDsecret

    Password, required if OPCUA_AUTH_MODE=username

  • OPCUA_SECURITY_POLICY

    OPC-UA transport security policy, e.g. Basic256Sha256

  • OPCUA_SECURITY_MODE

    OPC-UA transport security mode, e.g. SignAndEncrypt

  • SERVER_TRANSPORT

    MCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)

More MCP servers