# OPC UA MCP Server (npm · opcua-mcp-server)

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

- Trust score: 93/100 (high trust)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-30

## Components

- npm · `opcua-mcp-server`: 93/100 (this document), [markdown](https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server.md), [page](https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server)

## Channel facts

- Registry: `npm`
- Package: `opcua-mcp-server`
- Version: `0.6.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-30.

- **Supply Chain Security**: 99/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - 57 of 219 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 100/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to IndustriAgents/OPCUA-MCP).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 46 days ago).
  - Publishes a security disclosure policy (SECURITY.md).
- **Schema Quality & AI Usability**: 77/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 3543 tokens (~295/item across 12 items; 11 tools + 1 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 83/100
  - Stability observed for 25 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 11 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 12 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the OPC UA MCP Server server?

OPC UA MCP Server runs locally as an npm package, launched with npx -y opcua-mcp-server. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add midhunxavier-opcua -- npx -y opcua-mcp-server
```

### Cursor

```json
{
  "mcpServers": {
    "midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add midhunxavier-opcua -- npx -y opcua-mcp-server
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "midhunxavier-opcua": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "opcua-mcp-server"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add midhunxavier-opcua --command npx --arg -y --arg opcua-mcp-server
```

### Hermes

```yaml
mcp_servers:
  midhunxavier-opcua:
    command: "npx"
    args: ["-y", "opcua-mcp-server"]
```

### Netclaw

```json
{
  "McpServers": {
    "midhunxavier-opcua": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "opcua-mcp-server"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add midhunxavier-opcua -t stdio -c npx -a -y opcua-mcp-server
```

### Other

```json
{
  "mcpServers": {
    "midhunxavier-opcua": {
      "command": "npx",
      "args": [
        "-y",
        "opcua-mcp-server"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-29 (score 93, +1)

No change was recorded against any check on this day. Stability & Change Management went from 77 to 80. That category is still filling its 30-day observation window: 23 days of observed history at the previous scan, 24 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-27 (score 92, +1)

No change was recorded against any check on this day. Stability & Change Management went from 70 to 73. That category is still filling its 30-day observation window: 21 days of observed history at the previous scan, 22 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-25 (score 91, +1)

No change was recorded against any check on this day. Stability & Change Management went from 63 to 67. That category is still filling its 30-day observation window: 19 days of observed history at the previous scan, 20 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-22 (score 90, +1)

No change was recorded against any check on this day. Stability & Change Management went from 53 to 57. That category is still filling its 30-day observation window: 16 days of observed history at the previous scan, 17 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-20 (score 89, +1)

No change was recorded against any check on this day. Stability & Change Management went from 47 to 50. That category is still filling its 30-day observation window: 14 days of observed history at the previous scan, 15 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-18 (score 88, +1)

No change was recorded against any check on this day. Stability & Change Management went from 40 to 43. That category is still filling its 30-day observation window: 12 days of observed history at the previous scan, 13 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-16 (score 87, +1)

No change was recorded against any check on this day. Stability & Change Management went from 33 to 37. That category is still filling its 30-day observation window: 10 days of observed history at the previous scan, 11 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-14 (score 86, +1)

No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

## MCP tools (11)

### `read_opcua_nodes` (~282 tokens)

Read the current value of one or more OPC UA nodes in a single request. Pass every node you need in one call: the OPC UA server answers them together, so reading fifty nodes costs one round trip rather than fifty. Each node comes back as its own record with the value, its data type, the OPC UA status code, and the source and server timestamps — the quality and the age are what decide whether a value can be acted on, and a bare number carries neither. A node the server rejects is one 'Bad…' status among the results, not a failure of the call.

Input parameters:

- `include_write_access` (boolean): Also report, per node, whether it can be written and what a write must look like (write_access): its type, whether it is an array, its enumeration states and labels, and the bounds a value must stay…
- `node_ids` (array, required): The OPC UA node IDs to read, in the format 'ns=<namespace>;i=<identifier>'. Example: ['ns=2;i=2', 'ns=2;i=3']. A single node is a one-element list. At most 500 per call.

Output parameters:

- `result` (array)

### `browse_opcua_nodes` (~644 tokens)

Explore the OPC UA address space: list a node's children, walk a subtree, resolve a human-readable browse path to a node ID, or search for nodes by name. With the defaults it lists the immediate children of `node_id`. Raise `depth` to walk further down, set `node_class` to 'Variable' to find only readable tags, and `include_values` to read each one as it is found. `browse_path` addresses a node by name instead of by ID ('/Objects/Reactor/Temperature'), which is how to start when you do not know the numeric IDs; with `depth` 0 it simply resolves that path and returns the node it names. `name_filter` keeps only nodes whose browse name contains the text. Every node also reports its `type_definition` — what it *is*, as against what class it belongs to: 'AnalogItemType' for a tag that publishes a unit and a range, a subtype of 'AlarmConditionType' for something act_on_alarm applies to, 'FolderType' for structure. Every traversal is bounded by `max_nodes` and says in `truncated` whether it stopped early, so a short list is never mistaken for a complete one.

Input parameters:

- `browse_path` (string|null): Where to start, as a slash-separated browse path resolved through the server ('/Objects/Reactor/Temperature', or 'Reactor/Temperature' relative to `node_id`). Use this when you know what a thing is c…
- `depth` (integer|null): How many levels below the starting node to walk. 1 (the default) lists its immediate children; 0 returns only the starting node itself, which is how to resolve a `browse_path` to a node ID. Clamped t…
- `include_values` (boolean|null): Read each Variable's current value as it is found (default false). Costs one extra read per variable, so leave it off when mapping a large address space and read what you need with read_opcua_nodes a…
- `max_nodes` (integer|null): Stop after inspecting this many nodes (default 500, clamped to 5000). A traversal that stops early sets 'truncated' in the result.
- `name_filter` (string|null): Keep only nodes whose browse name contains this text, case-insensitively. Searching for 'temp' below the Objects folder is how to find a tag whose exact name you do not know.
- `node_class` (string|null): Keep only nodes of this OPC UA NodeClass: 'Variable' for readable tags, 'Object' for structure, 'Method' for callable operations. Every class is returned when unset. Filtering does not prune the walk…
- `node_id` (string|null): Where to start, as a node ID. Defaults to the Objects folder 'ns=0;i=85', the root of the plant's own address space. Ignored when `browse_path` is given.

Output parameters:

- `completeness` (object)
- `result` (object)

### `read_opcua_history` (~629 tokens)

Read what a node's value has been over time. Without `aggregate_function` this returns the raw stored readings, with ReturnBounds=false: no preceding/following boundary values or BadBoundNotFound placeholders. With it, the server computes one summary value per `processing_interval` over the range instead — 'Average' for a trend, 'Maximum'/'Minimum' for excursions, 'Count' for how often something was recorded — which is how to ask about a week of data without transferring a week of data. Needs a server that keeps history (AccessHistoryDataCapability) or offers aggregates, and `aggregate_function` needs the aggregates; a call the connected server cannot serve is refused with capability_not_supported and a suggestion, before anything is sent. get_server_status reports which of the two the server offers, and its aggregate function names. Aggregate reads follow native continuation points within the same call, preserving the original interval anchor; they return the completed range or an explicit error within the 5000-value bound. The structured result's `completeness` says whether the range held more than came back and how to continue; never infer that from the number of records.

Input parameters:

- `aggregate_function` (string|null): Summarise each interval with this OPC UA aggregate instead of returning raw readings, by its OPC UA name: 'Average', 'Minimum', 'Maximum', 'Count', 'Total', 'Interpolative', ... Which ones the connec…
- `end_time` (string|null): End of the time range, ISO-8601 with a timezone. Defaults to now.
- `node_id` (string, required): The OPC UA node ID to read history for. Example: 'ns=2;i=2'.
- `num_values` (integer|null): Maximum number of raw readings to return, capped at 5000. 0 (the default) means as many as that cap allows, not every reading in the range — a raw read of a year of fast data is a request that never…
- `processing_interval` (number|null): Width in milliseconds of each interval the aggregate is computed over. 0 (the default) makes the whole range a single interval, giving one result. Only meaningful with `aggregate_function`.
- `start_time` (string|null): Start of the time range, ISO-8601 with a timezone: '2026-09-09T12:00:00Z' or '2026-09-09T14:00:00+02:00'. A timestamp with no timezone is refused rather than guessed. Required when `aggregate_functio…

Output parameters:

- `completeness` (object)
- `result` (array)

### `read_event_history` (~480 tokens)

Read events the OPC UA server stored, for a time range that has already passed. subscribe_events only sees what arrives after you subscribe, so it cannot answer 'what happened overnight' or 'what fired in the ten minutes before the line stopped' — the events are gone by the time anyone asks. This reads them back out of the server's own event archive instead. Same records as read_events and the same fields, so an alarm looks identical whether it was watched live or recovered afterwards. Needs a server that reports AccessHistoryEventsCapability — storing values and storing events are separate features and many servers do one without the other — and against one that does not, a call is refused with capability_not_supported and what to use instead. Point node_id at the notifier that emits the events — the Server object by default, which is where events are collected on most servers. The structured result's `completeness` says whether the range held more events than came back.

Input parameters:

- `end_time` (string|null): End of the time range, ISO-8601 with a timezone. Defaults to now.
- `node_id` (string|null): The notifier node whose stored events to read. Defaults to the Server object 'ns=0;i=2253', which is where most servers collect events. This is the same node subscribe_events takes.
- `num_values` (integer|null): Maximum number of events to return, capped at 5000. 0 (the default) means as many as that cap allows, not every event in the range — an alarm burst can be tens of thousands of events, and asking for…
- `severity_min` (integer|null): Keep only events of at least this OPC UA severity (1-1000). Default 0, which keeps every event. Filtered here rather than by the server, exactly as subscribe_events does, so a server that mishandles…
- `start_time` (string|null): Start of the time range, ISO-8601 with a timezone: '2026-09-09T12:00:00Z' or '2026-09-09T14:00:00+02:00'. A timestamp with no timezone is refused rather than guessed. Defaults to one hour before `end…

Output parameters:

- `completeness` (object)
- `result` (array)

### `get_server_status` (~244 tokens)

Report whether this MCP server is connected to the OPC UA server and what that server says about itself: its endpoint and connection security, its ServerStatus (state, current time, start time, build info) and its NamespaceArray as index -> URI. The one tool that answers while the connection is down — it reports 'connected': false and why, rather than failing — so it is both the health check and the first thing to call when another tool cannot reach the server. The namespace array is also how to tell which 'ns=' index belongs to which namespace URI on this server. 'diagnostics' is the server's own ServerDiagnosticsSummary when it publishes one — session and subscription counts, and how many sessions and requests it has rejected — which is what separates 'the server is slow' from 'the server is refusing us'. OPC UA leaves diagnostics optional, so null there means this server does not say, not zero. 'capabilities' says which optional features — value history, event history, aggregates and their names — the server was found to offer, on which session and when: the answer to why read_opcua_history or read_event_history was refused.

Output parameters:

- `result` (object)

### `list_subscriptions` (~62 tokens)

List the active OPC UA data-change subscriptions, each with the value changes buffered for it since it was created. This is how to collect what subscribe_opcua_nodes has been watching; the same document is also readable as the 'opcua://subscriptions' resource.

Output parameters:

- `completeness` (object)
- `result` (array)

### `list_active_alarms` (~174 tokens)

List the alarm and condition instances the server is currently retaining — those that are active, unacknowledged, or both. Asks the server for them directly (the ConditionRefresh method), so the answer is the current state of the plant rather than whatever this MCP server happened to be listening for. Use this to answer 'what is wrong right now'; use read_events to see what has happened since you last looked.

Input parameters:

- `node_id` (string|null): The notifier node whose conditions to list. Defaults to the Server object 'ns=0;i=2253'.
- `timeout_seconds` (number|null): How long to wait for the server to finish sending its retained conditions (default 5). Running out is an error, not an empty list: a partial answer cannot be told apart from 'no alarms'.

Output parameters:

- `result` (array)

### `subscribe_opcua_nodes` (~561 tokens)

Watch one or more OPC UA nodes for value changes instead of polling them. The OPC UA server pushes each new value into a buffer this MCP server keeps; collect them with list_subscriptions or the 'opcua://subscriptions' resource. This is the right way to answer 'tell me when this changes' or 'what has this been doing' over a short window — repeatedly calling read_opcua_nodes both misses changes between calls and costs a round trip each time. Each node gets its own subscription record and its own ID; cancel them with unsubscribe_opcua_nodes. Subscriptions are re-established automatically if the connection drops.

Input parameters:

- `buffer_size` (integer|null): How many of the most recent changes to retain per subscription; older ones are discarded. Default 20, clamped to 1..1000.
- `data_change_trigger` (string|null): What counts as a change. 'statusValue' (the default) reports a change of value or of OPC UA status. 'status' reports only status transitions — useful for watching a tag go bad without caring what it…
- `deadband_type` (string|null): Filter out changes too small to be worth reporting (OPC UA Part 4 §7.22). 'none' (the default) reports every change the server samples, which on a noisy analogue tag fills the buffer with sensor jitt…
- `deadband_value` (number|null): How far the value must move to be reported, in engineering units for 'absolute' and in percent of EURange for 'percent'. Ignored when `deadband_type` is 'none' or unset; required when it is not.
- `node_ids` (array, required): The OPC UA node IDs to monitor. Example: ['ns=2;i=3']. A single node is a one-element list. Each gets its own OPC UA subscription, and this server holds at most 200 at a time.
- `publishing_interval` (number|null): How often (ms) the OPC UA server publishes queued changes. Default 1000. Clamped to at least 50.
- `sampling_interval` (number|null): How often (ms) the OPC UA server samples each node. 0 (the default) means sample at `publishing_interval`; a shorter interval queues several readings per publish.

Output parameters:

- `completeness` (object)
- `result` (array)

### `unsubscribe_opcua_nodes` (~101 tokens)

Cancel one or more active data-change subscriptions and discard what they had buffered. Returns the subscriptions as they were at the moment they were cancelled, so anything still buffered can be read one last time. An ID that is not active is an error naming it, and no subscription is cancelled.

Input parameters:

- `subscription_ids` (array, required): The subscription IDs returned by subscribe_opcua_nodes, as listed by list_subscriptions. Example: ['sub-1'].

Output parameters:

- `completeness` (object)
- `result` (array)

### `subscribe_events` (~196 tokens)

Start buffering OPC UA events (alarms, condition changes, plain events) from a notifier node. Returns at once; the events themselves are collected in the background and read with read_events. Calling it again for the same node replaces the subscription and discards what it had buffered. Use this to watch for things happening; use list_active_alarms for what is wrong right now.

Input parameters:

- `buffer_size` (integer|null): How many events to hold before the oldest are dropped (default 100, clamped to 10000). read_events reports how many were dropped.
- `node_id` (string|null): The notifier node to subscribe to. Defaults to the Server object 'ns=0;i=2253', which is where most servers publish every event they raise.
- `severity_min` (integer|null): Buffer only events of at least this OPC UA severity (1-1000). Default 0, which keeps every event.

Output parameters:

- `result` (object)

### `read_events` (~134 tokens)

Read the events buffered by subscribe_events, oldest first. The events returned are removed from the buffer, so a second call returns only what has arrived since. If the buffer overflowed in the meantime, the result says how many were dropped rather than quietly skipping them — in the structured result's `completeness`, which also says whether more are still buffered.

Input parameters:

- `limit` (integer|null): Maximum number of events to return (default 50).
- `node_id` (string|null): The subscribed notifier node to read from, as passed to subscribe_events. Defaults to the Server object 'ns=0;i=2253'.

Output parameters:

- `completeness` (object)
- `result` (array)

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server#diagnostics

## Score history

- 2026-11-30: 93
- 2026-11-29: 93
- 2026-11-28: 92
- 2026-11-27: 92
- 2026-11-26: 91
- 2026-11-25: 91
- 2026-11-24: 90
- 2026-11-23: 90
- 2026-11-22: 90
- 2026-11-21: 89
- 2026-11-20: 89
- 2026-11-19: 88
- 2026-11-18: 88
- 2026-11-17: 87
- 2026-11-16: 87
- 2026-11-15: 86
- 2026-11-14: 86
- 2026-11-13: 85
- 2026-11-12: 85
- 2026-11-11: 84
- 2026-11-10: 84
- 2026-11-09: 83
- 2026-11-08: 83
- 2026-11-07: 83
- 2026-11-06: 82
- 2026-11-05: 67

## Common questions

### What is the OPC UA MCP Server server?

OPC UA MCP Server is listed in the public MCP registry as io.github.midhunxavier/opcua. Connect AI assistants to industrial OPC UA: browse, read, history, subscriptions, events and alarms. This page covers its npm package (opcua-mcp-server).

### Is the OPC UA MCP Server server safe to use?

OPC UA MCP Server scores 93 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 30 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the OPC UA MCP Server server expose?

OPC UA MCP Server exposes 11 tools: read_opcua_nodes, browse_opcua_nodes, read_opcua_history, read_event_history, get_server_status, and 6 more. Their descriptions and schemas cost roughly 3,507 tokens of context every time the server is loaded.

### Is the OPC UA MCP Server server still maintained?

OPC UA MCP Server is still listed as active in the MCP registry. We last reached this channel on 30 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the OPC UA MCP Server server under?

OPC UA MCP Server declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

### What did VerifyMCP test on the OPC UA MCP Server server?

VerifyMCP ran 16 checks on OPC UA MCP Server, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to an npm package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.

## Links

- npm package: https://www.npmjs.com/package/opcua-mcp-server
- Socket report: https://socket.dev/npm/package/opcua-mcp-server
- Repository: https://github.com/IndustriAgents/OPCUA-MCP
- Website: https://industriagents.com/connect/opcua
- Changelog RSS feed: https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server.xml
- Changelog JSON feed: https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server/changelog.json
- Trust report (JSON): https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server.json
- HTML version of this page: https://verifymcp.io/servers/midhunxavier-opcua/opcua-mcp-server
