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
Establish a Session with the OPC UA server
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
Call CreateSubscription with a requested publishing interval to create a subscription on the server
Call CreateMonitoredItems on that subscription for each NodeId/attribute (typically the Value attribute), specifying a sampling interval and queue size
Read back the revisedSamplingInterval and revisedQueueSize the server actually applied, since it may adjust your request
Issue Publish requests to receive DataChange notifications, and use ModifyMonitoredItems/DeleteMonitoredItems to adjust or tear down monitoring
Known gotchas
Sampling interval and publishing interval are independent - sampling faster than you publish just fills the monitored item's queue
The server can silently revise your requested sampling interval or queue size - always use the revised values, not your original request
Browse results can be paginated via a ContinuationPoint requiring an explicit BrowseNext call
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?