KO

kukapay/opcua-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

32 stars 13 forks 품질 65 트렌드 0MIT

OPC UA-enabled 산업 시스템에 연결하는 MCP 서버.

개요

OPC UA-enabled 산업 시스템에 연결하는 MCP 서버는 AI 에이전트가 실시간으로 모니터링, 분석 및 제어 작동 데이터를 모니터링 할 수 있도록합니다. 이 프로젝트는 산업용 자동화 시스템과 함께 AI 구동 워크플로우를 찾는 개발자와 엔지니어들에게 이상적입니다. - : 산업용 기기에서 실시간 값을 검색합니다. - : 지정된 노드에 값을 작성하여 제어 장치. - : allopcua 노드 목록 요청 - : 장치에서 다중 실시간 값을 검색합니다. - : 여러 노드에 값을 작성하여 제어 장치. - : 자연적인 언어 상호 작용을 위한 Claude Desktop 같이 MCP 클라이언트와 일. 서버는 5개의 도구를 노출시킵니다: - : - : 특정 OPC UA 노드의 값을 읽습니다. - : - node id (str): OPC UA 노드 ID (예를 들어, ns=2;i=2). - : 노드 ID와 그 값 (예를 들어, "Node ns=2;i=2 값: 42"). - : - : 특정 OPC UA 노드에 값을 작성합니다. - : - node id (str) : OPC UA 노드 ID (예 : ns=2;i=3). - 값 (str) : 노드 유형에 따라 값을 작성합니다.

개요(AI 번역)

OPC UA-enabled 산업 시스템에 연결하는 MCP 서버는 AI 에이전트가 실시간으로 모니터링, 분석 및 제어 작동 데이터를 모니터링 할 수 있도록합니다.

이 프로젝트는 산업용 자동화 시스템과 함께 AI 구동 워크플로우를 찾는 개발자와 엔지니어들에게 이상적입니다.

특징

-Read OPC UA Nodes: 산업용 장치에서 실시간 값을 검색합니다. -Write to OPC UA Nodes: 지정된 노드에 값을 작성하여 제어장치.

  • **버튼 노드 **: allopcua 노드 목록 요청 -Read Multiple OPC UA Nodes: 장치에서 여러 실시간 값을 검색합니다. -Write to multiple OPC UA Nodes: 여러 노드에 값을 쓰기하여 제어 장치.
  • Seamless Integration: 자연적인 언어 상호 작용을 위한 Claude Desktop와 같은 MCP 클라이언트와 일합니다.

도구

서버는 다섯 가지 도구를 노출: -read_opcua_node:

  • Description: 특정 OPC UA 노드의 값을 읽습니다.
  • ** 모수 **:
  • node_id (str): OPC UA 노드 ID (예, ns=2;i=2). -Returns: 노드 ID와 그 값(예: “Node ns=2;i=2 값: 42”).

-write_opcua_node:

  • Description: 특정 OPC UA 노드에 값을 쓰기.
  • ** 모수 **:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

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.

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:

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

MCP Client Configuration

{
 "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.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

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