Skip to content
Cursor

OPC-UA MCP Server for Cursor

io.github.mwieczorkiewicz/opcua-mcp

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

client:Cursor transport:stdio runtime:oci

Install OPC-UA MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "opcua-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "<OPCUA_ENDPOINT>",
        "OPCUA_AUTH_MODE": "<OPCUA_AUTH_MODE>",
        "OPCUA_USERNAME": "<OPCUA_USERNAME>",
        "OPCUA_PASSWORD": "<OPCUA_PASSWORD>",
        "OPCUA_SECURITY_POLICY": "<OPCUA_SECURITY_POLICY>",
        "OPCUA_SECURITY_MODE": "<OPCUA_SECURITY_MODE>",
        "SERVER_TRANSPORT": "<SERVER_TRANSPORT>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

OPC-UA MCP Server in other clients