VW

vogler75/winccua-mcp-server

Developer tools

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

16 stars 7 forks 품질 67 트렌드 21GPL-3.0

SIEMENS WinCC Unified SCADA 시스템을 위한 MCP(모델 컨텍스트 프로토콜) 서버.

개요

모델 Context Protocol (MCP) 서버는 GraphQL API를 통해 SIEMENS WinCC Unified SCADA 시스템과 인터페이스하도록 설계되었습니다. 이 서버는 MCP 도구로 다양한 WinCC 통합 기능을 노출하여 AI 조수 및 기타 MCP 호환 클라이언트가 SCADA 시스템과 상호 작용합니다. - WinCC Unified GraphQL 엔드포인트에 연결한다. - MCP 도구 제공 : - 사용자 인증 (login-user). - SCADA 개체 검색 (브로이스-objects). - 현재 태그 값 읽기 (get-tag-values). - Querying 역사/기록 태그 데이터 (get-llogging-tag-values). - 활성 알람 (get-active-alarms). - 로그 알람 (get-llogging-alarms). - 태그 (write-tag-values)에 쓰기 값. - Acknowledging 경보 (경약 팔). - 리셋 알람(reset-alarms) - 선택적 자동 서비스 계정 로그인 및 토큰 새로 고침 메커니즘을 지원합니다. - Node.js (v18.x 이상 권장). - npm (일반적으로 Node.js와 함께 제공됩니다). - WinCC Unified GraphQL 서버 엔드포인트를 실행할 수 있습니다.

개요(AI 번역)

모델 Context Protocol (MCP) 서버는 GraphQL API를 통해 SIEMENS WinCC Unified SCADA 시스템과 인터페이스하도록 설계되었습니다. 이 서버는 MCP 도구로 다양한 WinCC 통합 기능을 노출하여 AI 조수 및 기타 MCP 호환 클라이언트가 SCADA 시스템과 상호 작용합니다.

특징

  • WinCC Unified GraphQL 엔드포인트에 연결한다.
  • MCP 도구 제공:
  • 사용자 인증(login-user).
  • SCADA 개체 검색 (browse-objects).
  • 현재 태그 값 읽기 (get-tag-values).
  • Querying 역사/기록 태그 데이터 (get-logged-tag-values).
  • 활성 알람 (get-active-alarms).
  • 로깅 경보 (get-logged-alarms).
  • 태그 (write-tag-values)에 대한 쓰기 값.
  • Acknowledging 알람 (acknowledge-alarms).
  • 재설정 알람 (reset-alarms).
  • 선택적 자동 서비스 계정 로그인 및 토큰 새로 고침 메커니즘을 지원합니다.

필수품

  • Node.js (v18.x 이상 권장).
  • npm ( Node.js와 함께 제공).
  • WinCC Unified GraphQL 서버 엔드포인트를 실행할 수 있습니다.

구성

서버는 환경 변수를 사용하여 구성된다:

  • GRAPHQL_URL: 필수.

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

README

원문 README의 일부입니다. 원문 보기.

WinCC Unified MCP Server

A Model Context Protocol (MCP) server designed to interface with SIEMENS WinCC Unified SCADA systems via their GraphQL API. This server exposes various WinCC Unified functionalities as MCP tools, allowing AI assistants and other MCP-compatible clients to interact with the SCADA system.

Features

  • Connects to a WinCC Unified GraphQL endpoint.
  • Provides MCP tools for:
    • User authentication (login-user).
    • Browsing SCADA objects (browse-objects).
    • Reading current tag values (get-tag-values).
    • Querying historical/logged tag data (get-logged-tag-values).
    • Fetching active alarms (get-active-alarms).
    • Fetching logged alarms (get-logged-alarms).
    • Writing values to tags (write-tag-values).
    • Acknowledging alarms (acknowledge-alarms).
    • Resetting alarms (reset-alarms).
  • Supports an optional automatic service account login and token refresh mechanism.

Prerequisites

  • Node.js (v18.x or later recommended).
  • npm (which typically comes with Node.js).
  • Access to a running WinCC Unified GraphQL server endpoint.

Configuration

The server is configured using environment variables:

  • GRAPHQL_URL: Required. The full URL of your WinCC Unified GraphQL server. Example: https://your-wincc-server.example.com/graphql
  • GRAPHQL_USR: (Optional) Username for a service account. If provided along with GRAPHQL_PWD, the server will attempt to log in with these credentials on startup and periodically (every minute) to maintain a session. This token is stored globally and used by tools if a user-specific login hasn’t occurred.
  • GRAPHQL_PWD: (Optional) Password for the service account.

Example environment variable setup (Linux/macOS):

export GRAPHQL_URL="http://localhost:4000/graphql"
export GRAPHQL_USR="username1"
export GRAPHQL_PWD="password1"
export NODE_TLS_REJECT_UNAUTHORIZED=0 # Set to 0 to disable TLS certificate validation (development only)

How to Start

  1. Navigate to the project directory.

  2. Install dependencies: If you haven’t already, install the necessary Node.js packages:

    npm install
    
  3. Set Environment Variables: Ensure the GRAPHQL_URL (and optionally GRAPHQL_USR, GRAPHQL_PWD) environment variables are set as described in the “Configuration” section.

  4. Run the server: You can use the provided run.sh script (on Linux/macOS):

    ./run.sh
    

    The run.sh script executes export NODE_TLS_REJECT_UNAUTHORIZED=0 before starting the server with node index.js. The NODE_TLS_REJECT_UNAUTHORIZED=0 setting disables TLS certificate validation, which might be necessary if your WinCC Unified GraphQL server uses HTTPS with a self-signed or internally-issued certificate.

GitHub에서 전체 README 보기

설치

npx mcp-remote http://localhost:3000/mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "WinCC Unified": { "command": "npx", "args": ["mcp-remote", "http://localhost:3000/mcp"] } } }