Purpose: opcua-mcp is an MCP (Model Context Protocol) server used to connect to OPC UA-enabled industrial systems, enabling AI agents to monitor, analyze, and control operational data in real time. It is suitable for developers and engineers who want to connect AI-driven workflows with industrial automation systems.
Main capabilities: The server exposes five tools. Read OPC UA node: retrieve real-time values from industrial devices; Write OPC UA node: control devices by writing values to specified nodes; Browse nodes: request a list of all OPC UA nodes; Batch read multiple OPC UA nodes: retrieve multiple real-time values from devices; Batch write multiple OPC UA nodes: control devices by writing values to multiple nodes. It can work with MCP clients such as Claude Desktop to enable natural language interaction.
Tool parameter examples: read_opcua_node takes node_id (string, such as ns=2;i=2) and returns a string with the node ID and value, such as "Node ns=2;i=2 value: 42"; write_opcua_node takes node_id and value (converted according to the node type) and returns a success or error message, such as "Successfully wrote 100 to node ns=2;i=3". Detailed information on the specific parameters and return values of the browse nodes and batch read/write tools is not fully provided.
Example prompts: "What’s the value of node ns=2;i=2?" returns the current value; "Set node ns=2;i=3 to 100." writes 100 to the node.
Usage requirements: Python 3.13 or later; an OPC UA server (simulator or real industrial device). Installation is by cloning the repository and installing the required Python packages, and an MCP client must be configured. The project uses the MIT license.
Limitations: Detailed information on the specific installation commands, MCP client configuration details, the complete parameters and return values of the batch tools, and supported platforms and pricing is not yet fully provided.