Skip to content
MCP server

OPC-UA MCP Server

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.0
Listing updated
6 days ago

About OPC-UA MCP Server

OPC-UA MCP Server is an open-source MCP server. It runs locally on your machine and is started by your AI client.

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

Install

Run in a terminal

claude mcp add opcua-mcp --env OPCUA_ENDPOINT='<OPCUA_ENDPOINT>' --env OPCUA_PASSWORD='<OPCUA_PASSWORD>' -- docker run -i --rm -e OPCUA_ENDPOINT -e OPCUA_PASSWORD ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4

Add to claude_desktop_config.json

{
  "mcpServers": {
    "opcua-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "<OPCUA_ENDPOINT>",
        "OPCUA_PASSWORD": "<OPCUA_PASSWORD>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "opcua-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "<OPCUA_ENDPOINT>",
        "OPCUA_PASSWORD": "<OPCUA_PASSWORD>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "opcua-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "<OPCUA_ENDPOINT>",
        "OPCUA_PASSWORD": "<OPCUA_PASSWORD>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "opcua-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "<OPCUA_ENDPOINT>",
        "OPCUA_PASSWORD": "<OPCUA_PASSWORD>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "opcua-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OPCUA_ENDPOINT",
        "-e",
        "OPCUA_PASSWORD",
        "ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4"
      ],
      "env": {
        "OPCUA_ENDPOINT": "<OPCUA_ENDPOINT>",
        "OPCUA_PASSWORD": "<OPCUA_PASSWORD>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OPCUA_ENDPOINTOPC-UA server endpoint to connect to, e.g. opc.tcp://your-plc-host:4840Required
  • OPCUA_AUTH_MODEAuthentication mode against the OPC-UA server
  • OPCUA_USERNAMEUsername, required if OPCUA_AUTH_MODE=username
  • OPCUA_PASSWORDPassword, required if OPCUA_AUTH_MODE=username
  • OPCUA_SECURITY_POLICYOPC-UA transport security policy, e.g. Basic256Sha256
  • OPCUA_SECURITY_MODEOPC-UA transport security mode, e.g. SignAndEncrypt
  • SERVER_TRANSPORTMCP transport: stdio (for local MCP clients) or http (for remote/hosted deployments)

Pricing

Open source

OPC-UA MCP Server FAQ

Is OPC-UA MCP Server free?

Yes. OPC-UA MCP Server is open source, so you can use and self-host it for free.

How do I add OPC-UA MCP Server to Claude Code?

Run this command in your terminal: claude mcp add opcua-mcp --env OPCUA_ENDPOINT='<OPCUA_ENDPOINT>' --env OPCUA_PASSWORD='<OPCUA_PASSWORD>' -- docker run -i --rm -e OPCUA_ENDPOINT -e OPCUA_PASSWORD ghcr.io/mwieczorkiewicz/opcua-mcp:main-29734c4

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers