matlab-discover-opcua-servers

Discover OPC UA servers and connection details via opcuaserverinfo and LDS.

883|109|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-discover-opcua-servers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-discover-opcua-servers
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/test-and-measurement/matlab-discover-opcua-servers
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-discover-opcua-servers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of discovering available OPC UA servers and obtaining the correct discovery URLs, endpoints, and security-policy information when you need to connect from MATLAB without wasting time on incorrect assumptions.

Core Features & Use Cases

  • LDS-based server discovery: Uses opcuaserverinfo(hostname) to query the OPC UA Local Discovery Service and return all servers registered with that LDS host.
  • Endpoint discovery via discovery URL: Uses opcuaserverinfo(discoveryUrl) to discover a specific server when you know its opc.tcp://host:port/... discovery endpoint.
  • Security and troubleshooting support: Helps inspect best message/channel security, supported authentication types, and diagnose empty discovery results by referencing LDS prerequisites and certificate trust issues.
  • Use case: If your industrial network has multiple OPC UA servers and you need to quickly list them, filter by authentication type, and connect to the best candidate using opcua(ServerInfo).

Quick Start

Ask the agent to discover and list available OPC UA servers on the local machine by calling opcuaserverinfo('localhost') and then show the Hostname, Port, best security settings, and endpoint counts.

Frequently Asked Questions about matlab-discover-opcua-servers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover available OPC UA servers in MATLAB?

To discover OPC UA servers in MATLAB, use the opcuaserverinfo function with a hostname to query the Local Discovery Service, returning all registered servers and their connection details.

How do I find OPC UA endpoint security and authentication details using MATLAB?

Finding OPC UA endpoint security details in MATLAB involves inspecting the ServerInfo and EndpointDescription properties returned by opcuaserverinfo, which reveal supported security policies and authentication types.

Why does opcuaserverinfo return empty results when discovering OPC UA servers?

Empty OPC UA server discovery results often indicate missing Local Discovery Service prerequisites on the host or certificate trust issues preventing MATLAB from querying the registered endpoints.

Can I discover a specific OPC UA server using its discovery URL in MATLAB?

Yes, you can discover a specific OPC UA server in MATLAB by passing its direct discovery URL, such as opc.tcp://host:port/..., to the opcuaserverinfo function instead of querying the LDS.

How do I connect to an OPC UA server after finding it with opcuaserverinfo?

To connect to a discovered OPC UA server, pass the ServerInfo object returned by opcuaserverinfo directly to the opcua() function, establishing the downstream client connection in MATLAB.