MCP Server exposing OPC UA Part 4 services as tools for LLM integration (Claude, Copilot, VS Code, etc.)
Install
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.
Install
dotnet tool install --global OPCFoundation.NetStandard.Opc.Ua.Mcp
Usage
# 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|full. full is the default and currently registers every tool listed below; core and the other profiles expose a smaller, focused subset. 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
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 |
Documentation
See the full documentation.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.