Browse an OPC UA server's address space and subscribe to data changes from a client

domain: reference.opcfoundation.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Establish a Session with the OPC UA server
  2. Call the Browse service starting from the well-known ObjectsFolder node, following references like HasComponent and Organizes; use BrowseNext if a ContinuationPoint indicates truncated results
  3. Call CreateSubscription with a requested publishing interval to create a subscription on the server
  4. Call CreateMonitoredItems on that subscription for each NodeId/attribute (typically the Value attribute), specifying a sampling interval and queue size
  5. Read back the revisedSamplingInterval and revisedQueueSize the server actually applied, since it may adjust your request
  6. Issue Publish requests to receive DataChange notifications, and use ModifyMonitoredItems/DeleteMonitoredItems to adjust or tear down monitoring

Known gotchas

Related routes

Read and subscribe to OPC UA server nodes from a Node-RED flow using node-red-contrib-opcua
npmjs.com · 6 steps · unrated
Connect, browse, read, and subscribe to nodes on an OPC UA server using Eclipse Milo (Java SDK)
github.com · 6 steps · unrated
Read a node value from an OPC UA server using the open62541 C client
open62541.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans