OPC UA MCP Server

OPC UA MCP Server

Bridge AI agents with OPC UA industrial systems in real time.

20
Stars
8
Forks
20
Watchers
3
Issues
OPC UA MCP Server enables seamless integration of AI agents with OPC UA-enabled industrial automation systems. It provides real-time monitoring, analysis, and control of operational data through a set of standardized tool APIs. Supporting both reading and writing of OPC UA nodes, the server facilitates natural language interaction by exposing tools for AI-driven automation and control workflows.

Key Features

Read real-time values from OPC UA nodes
Write control values to OPC UA nodes
Browse all available OPC UA nodes
Read and write values for multiple nodes simultaneously
Seamless MCP integration for AI agents
Tool APIs for natural language interaction
Configurable via JSON for client setup
Support for modern Python versions
Installation via Python pip
Detailed error and success feedback

Use Cases

Remote monitoring of industrial device data
Real-time data collection for AI model analysis
Automated control of industrial PLCs and sensors
Integration of natural language AI interfaces with factory equipment
Batch reading and updating of operational parameters
Edge computing for smart manufacturing
Rapid prototyping for AI-driven industrial automation
Predictive maintenance data acquisition
Testing AI agents with simulated industrial environments
Enabling closed-loop AI optimization in production lines

README

OPC UA MCP Server

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.

GitHub License Python Version Status

Features

  • Read OPC UA Nodes: Retrieve real-time values from industrial devices.
  • Write to OPC UA Nodes: Control devices by writing values to specified nodes.
  • Browse nodes: Request to list allopcua nodes
  • Read multiple OPC UA Nodes: Retrieve multiple real-time values from devices.
  • Write to multiple OPC UA Nodes: Control devices by writing values to multiple nodes.
  • Seamless Integration: Works with MCP clients like Claude Desktop for natural language interaction.

Tools

The server exposes five tools:

  • read_opcua_node:

    • Description: Read the value of a specific OPC UA node.
    • Parameters:
      • node_id (str): OPC UA node ID (e.g., ns=2;i=2).
    • Returns: A string with the node ID and its value (e.g., "Node ns=2;i=2 value: 42").
  • write_opcua_node:

    • Description: Write a value to a specific OPC UA node.
    • Parameters:
      • node_id (str): OPC UA node ID (e.g., ns=2;i=3).
      • value (str): Value to write (converted based on node type).
    • Returns: A success or error message (e.g., "Successfully wrote 100 to node ns=2;i=3").
  • Browse nodes:

    • Description: Read the value of a specific OPC UA node.
  • Read multiple OPC UA Nodes:

    • Description: Read the value of a specific OPC UA node.
  • Write to multiple OPC UA Nodes:

    • Description: Read the value of a specific OPC UA node.

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.

Installation

Prerequisites

  • Python 3.13 or higher
  • An OPC UA server (e.g., a simulator or real industrial device)

Install Dependencies

Clone the repository and install the required Python packages:

bash
git clone https://github.com/kukapay/opcua-mcp.git
cd opcua-mcp
pip install mcp[cli] opcua cryptography

MCP Client Configuration

json
{
 "mcpServers": {
   "opcua-mcp": {
     "command": "python",
     "args": ["path/to/opcua_mcp/main.py"],
     "env": {
        "OPCUA_SERVER_URL": "your-opc-ua-server-url"
     }
   }
 }
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Star History

Star History Chart

Repository Owner

kukapay
kukapay

User

Repository Details

Language Python
Default Branch main
Size 38 KB
Contributors 3
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • OpenAI MCP Server

    OpenAI MCP Server

    Bridge between Claude and OpenAI models using the MCP protocol.

    OpenAI MCP Server enables direct querying of OpenAI language models from Claude via the Model Context Protocol (MCP). It provides a configurable Python server that exposes OpenAI APIs as MCP endpoints. The server is designed for seamless integration, requiring simple configuration updates and environment variable setup. Automated testing is supported to verify connectivity and response from the OpenAI API.

    • 77
    • MCP
    • pierrebrunelle/mcp-server-openai
  • Taskade MCP

    Taskade MCP

    Tools and server for Model Context Protocol workflows and agent integration

    Taskade MCP provides an official server and tools to implement and interact with the Model Context Protocol (MCP), enabling seamless connectivity between Taskade’s API and MCP-compatible clients such as Claude or Cursor. It includes utilities for generating MCP tools from any OpenAPI schema and supports the deployment of autonomous agents, workflow automation, and real-time collaboration. The platform promotes extensibility by supporting integration via API, OpenAPI, and MCP, making it easier to build and connect agentic systems.

    • 90
    • MCP
    • taskade/mcp
  • Last9 MCP Server

    Last9 MCP Server

    Enables AI agents to access real-time production observability data for automated code fixes.

    Last9 MCP Server is an implementation of the Model Context Protocol (MCP) designed to provide seamless integration between AI agents and production observability data. It allows tools and agents to fetch live logs, metrics, traces, events, and alerts from Last9 systems, supporting a range of development environments and IDEs. This enables faster debugging, automated code fixes, and insightful context directly within local development workflows.

    • 46
    • MCP
    • last9/last9-mcp-server
  • Signoz MCP Server

    Signoz MCP Server

    Connect SigNoz observability data to AI assistants via the Model Context Protocol.

    Signoz MCP Server acts as a bridge between SigNoz observability platforms and AI assistants by implementing the Model Context Protocol (MCP). It exposes a suite of tools for querying dashboard information, fetching panel and metrics data, executing custom queries, and retrieving traces or logs from SigNoz. The tool supports integration with popular AI assistants, flexible deployment options (Docker, local virtual environments), and secure configuration via environment variables or YAML files. The server is designed to enable standardized programmatic context retrieval for enhancing AI/LLM workflows.

    • 11
    • MCP
    • DrDroidLab/signoz-mcp-server
  • Dune Analytics MCP Server

    Dune Analytics MCP Server

    Bridge Dune Analytics data seamlessly to AI agents via a Model Context Protocol server.

    Dune Analytics MCP Server provides a Model Context Protocol-compliant server that allows AI agents to access and interact with Dune Analytics data. It exposes tools to fetch the latest results of Dune queries and execute arbitrary queries, returning results in CSV format. The server is easily deployable, supports integration with platforms like Claude Desktop, and requires a Dune Analytics API key for operation.

    • 31
    • MCP
    • kukapay/dune-analytics-mcp
  • Agentset MCP

    Agentset MCP

    Open-source MCP server for Retrieval-Augmented Generation (RAG) document applications.

    Agentset MCP provides a Model Context Protocol (MCP) server designed to power context-aware, document-based applications using Retrieval-Augmented Generation. It enables developers to rapidly integrate intelligent context retrieval into their workflows and supports integration with AI platforms such as Claude. The server is easily installable via major JavaScript package managers and supports environment configuration for namespaces, tenant IDs, and tool descriptions.

    • 22
    • MCP
    • agentset-ai/mcp-server
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results