# OPC UA MCP Server

> Connect AI assistants to industrial OPC UA: browse, read, history, subscriptions, events and alarms.

- name: io.github.midhunxavier/opcua
- version: 0.6.0
- connection class: L0 (run_local_package)
- trust: 89/100
- quality: –/100 (not scored)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.midhunxavier%2Fopcua
- tools: https://api.protogrid.dev/v1/servers/io.github.midhunxavier%2Fopcua/tools

**Runs on your machine: something must execute the package.** Only local packages are published (npm, PyPI, OCI, …). The registry never executes them, so tools are unknown until you run it.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server@0.6.0"
      ],
      "env": {
        "OPCUA_SERVER_URL": "opc.tcp://localhost:4840",
        "OPCUA_PYTHON_BACKEND": "asyncua",
        "OPCUA_SECURITY_POLICY": "None",
        "OPCUA_CLIENT_KEY": "${OPCUA_CLIENT_KEY}",
        "OPCUA_PASSWORD": "${OPCUA_PASSWORD}",
        "OPCUA_USER_KEY": "${OPCUA_USER_KEY}",
        "OPCUA_PROFILE": "observe",
        "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_FSYNC": "always",
        "OPCUA_AUDIT_CHAIN": "none",
        "OPCUA_AUDIT_CHAIN_KEY_FILE": "${OPCUA_AUDIT_CHAIN_KEY_FILE}",
        "OPCUA_RECONNECT_INITIAL_DELAY_MS": "1000",
        "OPCUA_RECONNECT_MAX_DELAY_MS": "8000",
        "OPCUA_RECONNECT_MAX_RETRY": "3",
        "OPCUA_SESSION_TIMEOUT_MS": "60000"
      }
    }
  }
}
```

Placeholders to fill: `${OPCUA_CLIENT_KEY}`, `${OPCUA_PASSWORD}`, `${OPCUA_USER_KEY}`, `${OPCUA_AUDIT_CHAIN_KEY_FILE}`.

## Trust

- hygiene: 100
- liveness: n/a
- freshness: 100
- provenance: 75
- drivers: +repository +website ~liveness-unmeasured +updated-24d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality –/100 (not scored)

Not scored: fewer than three checks apply, usually because no remote answered a credential-free probe or the server is a local package.

### protocol: n/a (weight 25)

- n/a `protocol.modern`, `protocol.stateless`, `protocol.transport`, `protocol.list_ttl`: no remote answered a protocol handshake (not probed yet, unreachable, or local-only)

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: n/a (weight 30)

- n/a `tools.descriptions`, `tools.description_length`, `tools.schemas`, `tools.annotations`, `tools.directory_hints`, `tools.token_cost`, `tools.api_dump`, `tools.hidden_text`, `tools.poisoning`: tool list unknown (behind auth, not probed, or empty)

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool list unknown

### dependencies: 100 (weight 15)

- pass `deps.known_vulns`: no known advisory in 226 resolved packages
- pass `deps.mcp_sdk_version`: @modelcontextprotocol/sdk 1.32.2, no known advisory
- pass `deps.resolvable`: opcua-mcp-server@0.6.0 resolved: 226 packages

- tools: unknown
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.midhunxavier/opcua.svg)](https://protogrid.dev/servers/io.github.midhunxavier/opcua)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Dependencies

- npm opcua-mcp-server@0.6.0: resolved, 225 dependencies, MCP SDK @modelcontextprotocol/sdk 1.32.2

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0.

## Remotes

_none_

## Packages

- npm opcua-mcp-server@0.6.0 secrets: OPCUA_CLIENT_KEY, OPCUA_PASSWORD, OPCUA_USER_KEY, OPCUA_AUDIT_CHAIN_KEY_FILE

## Tools (0)

_none observed_
