O

Opcua

by midhunxavier · io.github.midhunxavier/opcua

Connect AI assistants to industrial OPC UA systems. Browse nodes, read live data and history, and monitor subscriptions, events and alarms. Runs locally over stdio in read-only mode by default.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_SECURITY_MODE": "<VALUE>",
        "OPCUA_CLIENT_CERT": "/etc/opcua/client.pem",
        "OPCUA_CLIENT_KEY": "<YOUR_VALUE>",
        "OPCUA_APPLICATION_URI": "urn:plant-a:opcua-mcp",
        "OPCUA_SERVER_CERT": "/etc/opcua/server.pem",
        "OPCUA_SERVER_TRUST_STORE": "/etc/opcua/trust",
        "OPCUA_SERVER_APPLICATION_URI": "urn:factory:line1:server",
        "OPCUA_USERNAME": "<VALUE>",
        "OPCUA_PASSWORD": "<YOUR_VALUE>",
        "OPCUA_USER_CERT": "/etc/opcua/user.pem",
        "OPCUA_USER_KEY": "<YOUR_VALUE>",
        "OPCUA_PROFILE": "observe",
        "OPCUA_POLICY_FILE": "/etc/opcua/policy.json",
        "OPCUA_ALLOWED_TOOLS": "read_opcua_nodes,browse_opcua_nodes",
        "OPCUA_ALLOWED_WRITE_NODES": "nsu=urn:plant-a:line-1;s=Mixer.Setpoint",
        "OPCUA_ALLOWED_METHODS": "ns=2;i=20|ns=2;i=31",
        "OPCUA_ALLOW_ACKNOWLEDGE_ALARMS": "false",
        "OPCUA_ALLOW_INSECURE_CONTROL": "false",
        "OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL": "false",
        "OPCUA_ALLOW_OUT_OF_RANGE_WRITES": "false",
        "OPCUA_AUDIT_FILE": "/var/log/opcua-mcp/audit.jsonl",
        "OPCUA_AUDIT_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<YOUR_VALUE>",
        "OPCUA_OPERATOR_ID": "plant-a-line-1",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_SECURITY_MODE": "<VALUE>",
        "OPCUA_CLIENT_CERT": "/etc/opcua/client.pem",
        "OPCUA_CLIENT_KEY": "<YOUR_VALUE>",
        "OPCUA_APPLICATION_URI": "urn:plant-a:opcua-mcp",
        "OPCUA_SERVER_CERT": "/etc/opcua/server.pem",
        "OPCUA_SERVER_TRUST_STORE": "/etc/opcua/trust",
        "OPCUA_SERVER_APPLICATION_URI": "urn:factory:line1:server",
        "OPCUA_USERNAME": "<VALUE>",
        "OPCUA_PASSWORD": "<YOUR_VALUE>",
        "OPCUA_USER_CERT": "/etc/opcua/user.pem",
        "OPCUA_USER_KEY": "<YOUR_VALUE>",
        "OPCUA_PROFILE": "observe",
        "OPCUA_POLICY_FILE": "/etc/opcua/policy.json",
        "OPCUA_ALLOWED_TOOLS": "read_opcua_nodes,browse_opcua_nodes",
        "OPCUA_ALLOWED_WRITE_NODES": "nsu=urn:plant-a:line-1;s=Mixer.Setpoint",
        "OPCUA_ALLOWED_METHODS": "ns=2;i=20|ns=2;i=31",
        "OPCUA_ALLOW_ACKNOWLEDGE_ALARMS": "false",
        "OPCUA_ALLOW_INSECURE_CONTROL": "false",
        "OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL": "false",
        "OPCUA_ALLOW_OUT_OF_RANGE_WRITES": "false",
        "OPCUA_AUDIT_FILE": "/var/log/opcua-mcp/audit.jsonl",
        "OPCUA_AUDIT_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<YOUR_VALUE>",
        "OPCUA_OPERATOR_ID": "plant-a-line-1",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_SECURITY_MODE": "<VALUE>",
        "OPCUA_CLIENT_CERT": "/etc/opcua/client.pem",
        "OPCUA_CLIENT_KEY": "<YOUR_VALUE>",
        "OPCUA_APPLICATION_URI": "urn:plant-a:opcua-mcp",
        "OPCUA_SERVER_CERT": "/etc/opcua/server.pem",
        "OPCUA_SERVER_TRUST_STORE": "/etc/opcua/trust",
        "OPCUA_SERVER_APPLICATION_URI": "urn:factory:line1:server",
        "OPCUA_USERNAME": "<VALUE>",
        "OPCUA_PASSWORD": "<YOUR_VALUE>",
        "OPCUA_USER_CERT": "/etc/opcua/user.pem",
        "OPCUA_USER_KEY": "<YOUR_VALUE>",
        "OPCUA_PROFILE": "observe",
        "OPCUA_POLICY_FILE": "/etc/opcua/policy.json",
        "OPCUA_ALLOWED_TOOLS": "read_opcua_nodes,browse_opcua_nodes",
        "OPCUA_ALLOWED_WRITE_NODES": "nsu=urn:plant-a:line-1;s=Mixer.Setpoint",
        "OPCUA_ALLOWED_METHODS": "ns=2;i=20|ns=2;i=31",
        "OPCUA_ALLOW_ACKNOWLEDGE_ALARMS": "false",
        "OPCUA_ALLOW_INSECURE_CONTROL": "false",
        "OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL": "false",
        "OPCUA_ALLOW_OUT_OF_RANGE_WRITES": "false",
        "OPCUA_AUDIT_FILE": "/var/log/opcua-mcp/audit.jsonl",
        "OPCUA_AUDIT_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<YOUR_VALUE>",
        "OPCUA_OPERATOR_ID": "plant-a-line-1",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_SECURITY_MODE": "<VALUE>",
        "OPCUA_CLIENT_CERT": "/etc/opcua/client.pem",
        "OPCUA_CLIENT_KEY": "<YOUR_VALUE>",
        "OPCUA_APPLICATION_URI": "urn:plant-a:opcua-mcp",
        "OPCUA_SERVER_CERT": "/etc/opcua/server.pem",
        "OPCUA_SERVER_TRUST_STORE": "/etc/opcua/trust",
        "OPCUA_SERVER_APPLICATION_URI": "urn:factory:line1:server",
        "OPCUA_USERNAME": "<VALUE>",
        "OPCUA_PASSWORD": "<YOUR_VALUE>",
        "OPCUA_USER_CERT": "/etc/opcua/user.pem",
        "OPCUA_USER_KEY": "<YOUR_VALUE>",
        "OPCUA_PROFILE": "observe",
        "OPCUA_POLICY_FILE": "/etc/opcua/policy.json",
        "OPCUA_ALLOWED_TOOLS": "read_opcua_nodes,browse_opcua_nodes",
        "OPCUA_ALLOWED_WRITE_NODES": "nsu=urn:plant-a:line-1;s=Mixer.Setpoint",
        "OPCUA_ALLOWED_METHODS": "ns=2;i=20|ns=2;i=31",
        "OPCUA_ALLOW_ACKNOWLEDGE_ALARMS": "false",
        "OPCUA_ALLOW_INSECURE_CONTROL": "false",
        "OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL": "false",
        "OPCUA_ALLOW_OUT_OF_RANGE_WRITES": "false",
        "OPCUA_AUDIT_FILE": "/var/log/opcua-mcp/audit.jsonl",
        "OPCUA_AUDIT_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<YOUR_VALUE>",
        "OPCUA_OPERATOR_ID": "plant-a-line-1",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_SECURITY_MODE": "<VALUE>",
        "OPCUA_CLIENT_CERT": "/etc/opcua/client.pem",
        "OPCUA_CLIENT_KEY": "<YOUR_VALUE>",
        "OPCUA_APPLICATION_URI": "urn:plant-a:opcua-mcp",
        "OPCUA_SERVER_CERT": "/etc/opcua/server.pem",
        "OPCUA_SERVER_TRUST_STORE": "/etc/opcua/trust",
        "OPCUA_SERVER_APPLICATION_URI": "urn:factory:line1:server",
        "OPCUA_USERNAME": "<VALUE>",
        "OPCUA_PASSWORD": "<YOUR_VALUE>",
        "OPCUA_USER_CERT": "/etc/opcua/user.pem",
        "OPCUA_USER_KEY": "<YOUR_VALUE>",
        "OPCUA_PROFILE": "observe",
        "OPCUA_POLICY_FILE": "/etc/opcua/policy.json",
        "OPCUA_ALLOWED_TOOLS": "read_opcua_nodes,browse_opcua_nodes",
        "OPCUA_ALLOWED_WRITE_NODES": "nsu=urn:plant-a:line-1;s=Mixer.Setpoint",
        "OPCUA_ALLOWED_METHODS": "ns=2;i=20|ns=2;i=31",
        "OPCUA_ALLOW_ACKNOWLEDGE_ALARMS": "false",
        "OPCUA_ALLOW_INSECURE_CONTROL": "false",
        "OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL": "false",
        "OPCUA_ALLOW_OUT_OF_RANGE_WRITES": "false",
        "OPCUA_AUDIT_FILE": "/var/log/opcua-mcp/audit.jsonl",
        "OPCUA_AUDIT_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<YOUR_VALUE>",
        "OPCUA_OPERATOR_ID": "plant-a-line-1",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_SECURITY_MODE": "<VALUE>",
        "OPCUA_CLIENT_CERT": "/etc/opcua/client.pem",
        "OPCUA_CLIENT_KEY": "<YOUR_VALUE>",
        "OPCUA_APPLICATION_URI": "urn:plant-a:opcua-mcp",
        "OPCUA_SERVER_CERT": "/etc/opcua/server.pem",
        "OPCUA_SERVER_TRUST_STORE": "/etc/opcua/trust",
        "OPCUA_SERVER_APPLICATION_URI": "urn:factory:line1:server",
        "OPCUA_USERNAME": "<VALUE>",
        "OPCUA_PASSWORD": "<YOUR_VALUE>",
        "OPCUA_USER_CERT": "/etc/opcua/user.pem",
        "OPCUA_USER_KEY": "<YOUR_VALUE>",
        "OPCUA_PROFILE": "observe",
        "OPCUA_POLICY_FILE": "/etc/opcua/policy.json",
        "OPCUA_ALLOWED_TOOLS": "read_opcua_nodes,browse_opcua_nodes",
        "OPCUA_ALLOWED_WRITE_NODES": "nsu=urn:plant-a:line-1;s=Mixer.Setpoint",
        "OPCUA_ALLOWED_METHODS": "ns=2;i=20|ns=2;i=31",
        "OPCUA_ALLOW_ACKNOWLEDGE_ALARMS": "false",
        "OPCUA_ALLOW_INSECURE_CONTROL": "false",
        "OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL": "false",
        "OPCUA_ALLOW_OUT_OF_RANGE_WRITES": "false",
        "OPCUA_AUDIT_FILE": "/var/log/opcua-mcp/audit.jsonl",
        "OPCUA_AUDIT_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "<YOUR_VALUE>",
        "OPCUA_OPERATOR_ID": "plant-a-line-1",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
OPCUA_SERVER_URL Yes Endpoint URL of the OPC UA server, including any path (for example opc.tcp://192.168.0.10:4840 or opc.tcp://localhost:4840/freeopcua/server/). Defaults to opc.tcp://localhost:4840. Default: opc.tcp://localhost:4840
OPCUA_PYTHON_BACKEND No Select the Python client implementation. The maintained asyncua client is the default; legacy provides the one-release rollback path for uncovered vendor incompatibilities. This setting affects the Python server only. Default: asyncua
OPCUA_SECURITY_POLICY No Security policy for the OPC UA channel, for example Basic256Sha256 (which implies SignAndEncrypt). The default connection is unencrypted (None). Default: None
OPCUA_SECURITY_MODE No Message security mode for the secure channel. Sign authenticates messages without encrypting them. A policy with mode None, or a mode without a policy, stops the server at startup; leaving it blank never downgrades a policy to signing only. Leave blank for SignAndEncrypt once a security policy is set, otherwise None.
OPCUA_CLIENT_CERT No Path to this client's certificate file, used as the client identity when securing the channel (for example /etc/opcua/client.pem).
OPCUA_CLIENT_KEY secret No Path to this client's private key file for the secured channel (for example /etc/opcua/client_key.pem).
OPCUA_APPLICATION_URI No Application URI announced to the server. Set it only for a certificate that carries no URI of its own. A configured URI that conflicts with the certificate is refused before connecting. Leave blank for the subjectAltName URI of the client certificate.
OPCUA_SERVER_CERT No Path to the server certificate to pin the server you meant to reach (for example /etc/opcua/server.pem). Alternative to OPCUA_SERVER_TRUST_STORE.
OPCUA_SERVER_TRUST_STORE No Path to a CA trust store used with OPCUA_SERVER_APPLICATION_URI to verify the server certificate; alternative to pinning with OPCUA_SERVER_CERT.
OPCUA_SERVER_APPLICATION_URI No Server application URI used together with OPCUA_SERVER_TRUST_STORE for CA trust-store verification.
OPCUA_USERNAME No Username for OPC UA username/password user authentication. Must be provided together with OPCUA_PASSWORD.
OPCUA_PASSWORD secret No Password for OPC UA username/password user authentication, supplied through the client's secret storage or environment. Must be provided together with OPCUA_USERNAME.
OPCUA_USER_CERT No Path to the X.509 user certificate for user authentication (for example /etc/opcua/user.pem). Used instead of OPCUA_USERNAME/OPCUA_PASSWORD, together with OPCUA_USER_KEY, and requires a security policy other than None.
OPCUA_USER_KEY secret No Path to the private key for the X.509 user certificate (for example /etc/opcua/user_key.pem). Used together with OPCUA_USER_CERT.
OPCUA_PROFILE Yes Access profile deciding what the agent may do: observe (default, read-only), operator (plus allowlisted writes and method calls, and alarm actions with OPCUA_ALLOW_ACKNOWLEDGE_ALARMS), or full (every tool). Default: observe
OPCUA_POLICY_FILE No Path to a version-1 JSON policy file, the only place per-node value bounds, writable_subtrees, preconditions, the alarm scope and deny_read can be set. Every policy variable that is set overrides what the file says. An unreadable or invalid file stops the server at startup.
OPCUA_ALLOWED_TOOLS No Comma-separated tool allowlist. It can only narrow the selected profile, never widen it. An unknown tool name stops the server at startup.
OPCUA_ALLOWED_WRITE_NODES No Allowlist of node ids the operator profile may write to.
OPCUA_ALLOWED_METHODS No Allowlist of methods the operator profile may call.
OPCUA_ALLOW_ACKNOWLEDGE_ALARMS No Enables the alarm-action tools (acknowledge_alarm, act_on_alarm) under the operator profile. Default: false
OPCUA_ALLOW_INSECURE_CONTROL No Permit control tools on an OPC UA channel with no security policy (None). Does not cover a secured channel to an unverified server; that is OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL. Fail-open override: writes, method calls and alarm actions then travel unauthenticated and unencrypted. Reported as control=INSECURE-OVERRIDE in the startup line, get_server_status and every audit record. Never enable it against production equipment. Default: false
OPCUA_ALLOW_UNVERIFIED_SERVER_CONTROL No Permit control tools on a secured OPC UA channel whose server is not authenticated: neither pinned with OPCUA_SERVER_CERT nor validated by OPCUA_SERVER_TRUST_STORE. Does not cover a channel with no security policy; that is OPCUA_ALLOW_INSECURE_CONTROL. Fail-open override: writes, method calls and alarm actions are then encrypted to whichever server answered the endpoint, which may be an impostor. Reported as control=UNVERIFIED-OVERRIDE in the startup line, get_server_status and every audit record. Never enable it against production equipment. Default: false
OPCUA_ALLOW_OUT_OF_RANGE_WRITES No Allow a write outside the EURange the OPC UA server itself published for the node. A published InstrumentRange still applies. Fail-open override: it discards the only value bound a deployment with no policy file has. Default: false
OPCUA_AUDIT_FILE No Path to an append-only audit log recording every control call.
OPCUA_AUDIT_FSYNC No When an audit-file record counts as written. always fsyncs each record before the control call proceeds, so it survives a power loss; none leaves it to the operating system, so it survives only a crash of this process. none can lose the records of control calls that already reached the plant if the machine loses power. Default: always
OPCUA_AUDIT_CHAIN No Adds seq, prev_hash and hash to every audit record so edits, deletions and reordering can be detected with --verify-audit. sha256 catches accidental or naive edits; hmac-sha256 also resists anyone without the key. Requires the audit file. Set without an audit file, or hmac-sha256 without a key file, stops the server. No chain detects a truncated tail. Default: none
OPCUA_AUDIT_CHAIN_KEY_FILE secret No Path to the HMAC key for the hmac-sha256 audit chain: at least 32 bytes, for example from openssl rand -hex 32. Surrounding whitespace is ignored. Whoever can read the key can forge the chain: a key readable or writable by group or others stops the server. Refused unless the chain is hmac-sha256.
OPCUA_OPERATOR_ID No Label stamped on every audit record as operator_label, so a shipped log says which deployment a control call came from. Configured, never verified: it is not an identity, and mcp_principal stays null.
OPCUA_RECONNECT_INITIAL_DELAY_MS No Wait before the first attempt to repair a dropped or refused connection, in milliseconds. It doubles with each further attempt. Default: 1000
OPCUA_RECONNECT_MAX_DELAY_MS No Ceiling for the doubling retry delay, in milliseconds. Default: 8000
OPCUA_RECONNECT_MAX_RETRY No Retries after the first attempt, per connection round, before a tool call gives up: a whole number from -1 to 1000. 0 never retries; -1 never stops trying, in bounded rounds of four retries so no single call waits forever. Default: 3
OPCUA_SESSION_TIMEOUT_MS No Session lifetime asked of the OPC UA server, in milliseconds. It also sets the keep-alive period, so it decides how quickly an idle connection notices the server has gone. Default: 60000

Similar servers