Skip to main content
Any Framework

MCP Server exposing OPC UA Part 4 services as tools for LLM integration (Claude, Copilot, VS Code, etc.)

Published
Sep 2, 2026
1mo ago
Total Downloads
292
292

Install

dotnet add package OPCFoundation.NetStandard.Opc.Ua.Mcp --version 2.0.0-preview.4

No framework information available.

README

OPC UA MCP Server

A Model Context Protocol (MCP) server that exposes OPC UA Part 4 service calls as MCP tools, enabling AI assistants (Claude, GitHub Copilot, VS Code, etc.) to interact with OPC UA servers.

Run without installing (.NET 10 SDK)

dotnet tool exec "[email protected].*"

# Short form
dnx "[email protected].*"

Install globally

dotnet tool install --global OPCFoundation.NetStandard.Opc.Ua.Mcp --prerelease

Profile availability in 2.0.0-preview.3: the public tool package includes core, services, administration, pubsub, diagnostics, robotics, and full, but not vision. Run the current source when you need vision or a composed vision,robotics profile until a later preview includes Opc.Ua.Mcp.Vision.

Usage

The examples below assume a global installation. For run-on-demand use, replace opcua-mcp with dnx "[email protected].*" --.

# stdio transport (default) — for Claude Desktop, VS Code, Copilot
opcua-mcp

# Streamable HTTP transport (exposed only at /mcp) — for remote clients
opcua-mcp --transport http --port 5100

# --transport sse is a deprecated alias for --transport http

Tools

The server exposes tools through a tool profile — a bounded, named catalog selected with --profile core|services|administration|pubsub|diagnostics|robotics|vision|full. Profiles can be composed, for example --profile vision,robotics. full is the default; the other profiles expose smaller focused subsets. See the full documentation for the profile-to-tool mapping.

Tools in the full profile cover all OPC UA Part 4 service sets:

  • Connection: Connect, Disconnect, GetConnectionStatus
  • Attribute: Read, Write, HistoryRead, HistoryUpdate
  • View: Browse, BrowseNext, TranslateBrowsePaths, RegisterNodes, UnregisterNodes, QueryFirst, QueryNext
  • Node Management: AddNodes, AddReferences, DeleteNodes, DeleteReferences
  • Method: Call
  • Subscription: CreateSubscription, ModifySubscription, SetPublishingMode, Publish, Republish, DeleteSubscriptions, TransferSubscriptions
  • MonitoredItem: CreateMonitoredItems, ModifyMonitoredItems, SetMonitoringMode, SetTriggering, DeleteMonitoredItems
  • Discovery: FindServers, FindServersOnNetwork, GetEndpoints, RegisterServer, RegisterServer2
  • Convenience: ReadValue, ReadValues, WriteValue, BrowseAll, CallMethod, ReadNode, Cancel
  • Robotics: typed Robot Intent control and missions, paged monitoring, bounded operation/mission waits, and same-session robotics_vision_pick
  • Vision: image capture, structured one-shot inference, result monitoring, feedback and frame-graph composition

Embedding

The tools also ship as libraries, so an application can offer OPC UA tools to an LLM alongside its own without forking this server:

builder.Services.AddOpcUaMcpCore();

builder.Services.AddMcpServer()
    .WithStdioServerTransport()
    .WithOpcUaMcpFilters()
    .WithOpcUaCoreTools(McpToolProfile.Services)
    .WithTools<MyApplicationTools>();
Package Tools
OPCFoundation.NetStandard.Opc.Ua.Mcp.Core Part 4 services, connection, configuration, PKI, NodeSet export
OPCFoundation.NetStandard.Opc.Ua.Mcp.PubSub PubSub runtime, actions, discovery
OPCFoundation.NetStandard.Opc.Ua.Mcp.Diagnostics UA-TCP capture, decode, replay
OPCFoundation.NetStandard.Opc.Ua.Mcp.PubSub.Diagnostics PubSub capture, decode
OPCFoundation.NetStandard.Opc.Ua.Mcp.Robotics Robot Intent control, missions, waits and Vision-guided Pick
OPCFoundation.NetStandard.Opc.Ua.Mcp.Vision Vision discovery, seeing, inference, feedback and geometry

Documentation

See the full documentation.

Changes from Previous Version

No structural changes between v2.0.0-preview.3 and v2.0.0-preview.4.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.