1. Conduid
  2. Developer Tools
  3. OPCUA4MCP
MCP server · Developer Tools

OPCUA4MCP

OPC UA tools for MCP Server. Python based implementation based on asyncua and FastMCP.

Unclaimed last commit 9 months ago devtools
34Low

Scored 7 months ago · breakdown

About OPCUA4MCP

OPCUA4MCP is an MCP server published by mikakaraila in the Developer Tools category: oPC UA tools for MCP Server. Python based implementation based on asyncua and FastMCP.

The repository has 4 stars and 0 forks, with the last commit 9 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/mikakaraila/OPCUA4MCP

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about OPCUA4MCP

Powered by Claude · Grounded in docs

I know everything about OPCUA4MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

OPCUA protocol tools for MCP Server

Python based implementation based on asyncua and FastMCP.

Features

Prerequisites

  • Python 3.10 or higher
  • UV (for UV method - optional but recommended)
  • Git (clone Repository)

Installation & Usage

Virtual environment:

uv venv

Activate it:

.venv\Scripts\activate

Install Python packages:

uv pip install fastmcp uv pip install asyncua

Run server first in test mode

uv run server.py test

NOTE: You need to download Prosys OPC UA Simulation server to run tests! Download it from https://prosysopc.com/products/opc-ua-simulation-server/ Run Simulation server before you start test.

Run basic tests

uv run test.py

Integration with Claude Desktop

Look menu: File -> Settings Developer

Add following JSON snippet into your local MCP servers. OPCUA4MCP server.py into claude_desktop_config.json file, example:

    "opcua4mcp": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "--with",
        "asyncua",
        "fastmcp",
        "run",
        "D:\\YourFilePathToClonedRepo\\server.py:app"      ],
      "env": {
        "USERNAME": "test",
        "PASSWORD": "test"
      },
      "transport": "stdio",
      "type": null,
      "cwd": null,
      "timeout": null,
      "description": null,
      "icon": null,
      "authentication": null
    },

Available Tools

The MCP server provides the following comprehensive tools for using OPC UA Server:

🔧 Implemented tools:

  • connect_opcua_server - Connect to OPC UA Server (Anonymous)
  • connect_opcua_server_username_and_password - NOT WORKING
  • connect_opcua_server_secure - NOT WORKING
  • disconnect_opcua_server
  • discover_opcua_servers - NOT TESTED
  • browse_opcua_nodes
  • read_node_value
  • get_node_info
  • read_multiple_opcua_nodes
  • write_opcua_value
  • copy_opcua_value_from_node_to_node
  • read_history_raw
  • read_history_at_times

Example prompts

connect to opc.tcp://localhost:53530/OPCUA/SimulationServer
read node ns=5;s=Double
write value 2.2 to node ns=5;s=Double data type is Double
Connect to opc.tcp://localhost:53530/OPCUA/SimulationServer
Read history from node ns=3;i=1002 for the last 2 hours
read 1 minute average
visualize data

📬 Contact

Name: Mika Karaila

Email: mika.karaila@valmet.com

License

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

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About OPCUA4MCP

How do I install OPCUA4MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is OPCUA4MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is OPCUA4MCP still maintained?

The last commit was 9 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.