An MCP server that connects to OPC UA-enabled industrial systems, allowing AI agents to monitor, analyze, and control operational data in real time. This project is ideal for developers and engineers looking to bridge AI-driven workflows with industrial automation systems. - Read OPC UA Nodes: Retrieve real-time values from industrial devices. - Write to OPC UA Nodes: Control devices by writing va
Add this skill
npx mdskills install kukapay/opcua-mcpBridges AI agents with industrial OPC UA systems for monitoring and control operations
1# OPC UA MCP Server23An MCP server that connects to OPC UA-enabled industrial systems, allowing AI agents to monitor, analyze, and control operational data in real time.45This project is ideal for developers and engineers looking to bridge AI-driven workflows with industrial automation systems.67891011## Features1213- **Read OPC UA Nodes**: Retrieve real-time values from industrial devices.14- **Write to OPC UA Nodes**: Control devices by writing values to specified nodes.15- **Browse nodes**: Request to list allopcua nodes16- **Read multiple OPC UA Nodes**: Retrieve multiple real-time values from devices.17- **Write to multiple OPC UA Nodes**: Control devices by writing values to multiple nodes.18- **Seamless Integration**: Works with MCP clients like Claude Desktop for natural language interaction.192021### Tools22The server exposes five tools:23- **`read_opcua_node`**:24 - **Description**: Read the value of a specific OPC UA node.25 - **Parameters**:26 - `node_id` (str): OPC UA node ID (e.g., `ns=2;i=2`).27 - **Returns**: A string with the node ID and its value (e.g., "Node ns=2;i=2 value: 42").2829- **`write_opcua_node`**:30 - **Description**: Write a value to a specific OPC UA node.31 - **Parameters**:32 - `node_id` (str): OPC UA node ID (e.g., `ns=2;i=3`).33 - `value` (str): Value to write (converted based on node type).34 - **Returns**: A success or error message (e.g., "Successfully wrote 100 to node ns=2;i=3").3536- **`Browse nodes`**:37 - **Description**: Read the value of a specific OPC UA node.3839- **`Read multiple OPC UA Nodes`**:40 - **Description**: Read the value of a specific OPC UA node.4142- **`Write to multiple OPC UA Nodes`**:43 - **Description**: Read the value of a specific OPC UA node.444546### Example Prompts4748- "What’s the value of node ns=2;i=2?" → Returns the current value.49- "Set node ns=2;i=3 to 100." → Writes 100 to the node.5051## Installation5253### Prerequisites54- Python 3.13 or higher55- An OPC UA server (e.g., a simulator or real industrial device)5657### Install Dependencies58Clone the repository and install the required Python packages:5960```bash61git clone https://github.com/kukapay/opcua-mcp.git62cd opcua-mcp63pip install mcp[cli] opcua cryptography64```6566### MCP Client Configuration6768```json69{70 "mcpServers": {71 "opcua-mcp": {72 "command": "python",73 "args": ["path/to/opcua_mcp/main.py"],74 "env": {75 "OPCUA_SERVER_URL": "your-opc-ua-server-url"76 }77 }78 }79}80```818283## License84This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.85
Full transparency — inspect the skill content before installing.