Logo vun WinCC OA MCP Server

WinCC OA MCP Server

Organisatioun
winccoa

WinCC OA MCP Server

Editeurwinccoa
Repositorywinccoa-ae-js-mcpserver
Forks
10
Stären
24
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    WinCC OA MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    24 Stären an 10 Forks aus dem verlinkte Repository.

WinCC OA MCP Server

AI Integration for Industrial Automation

This Model Context Protocol (MCP) server connects AI assistants to WinCC OA SCADA systems, enabling intelligent automation and monitoring for industrial environments.

Quick Start

Ask your AI:

  • "Show me all temperature values in the plant"
  • "Which pumps are currently running?"
  • "Set the setpoint for pump P-101 to 50%"
  • "Create a production report for today"

⚠️ Warning

This tool can modify your WinCC OA system configuration and runtime data. Changes made through this MCP server directly affect your SCADA system and connected industrial processes. Use at your own risk and ensure proper testing in a safe environment before deploying to production systems.

To prevent write operations to SCADA configuration and runtime data, exclude these tool categories from your configuration:

  • Datapoints: datapoints/dp_set, datapoints/dp_create, datapoints/dp_type_create
  • Alarms: alarms/alarm_set, alarms/alarm_delete
  • Archives: archive/archive_set, archive/archive_delete
  • Common Config: common/common_set, common/common_delete
  • PV Ranges: pv_range/pv_range_set, pv_range/pv_range_delete
  • Managers: manager/manager_control, manager/manager_add, manager/manager_remove, manager/manager_properties
  • Dashboards: dashboards/dashboard, dashboards/widget
  • OPC UA: opcua/opcua_connection, opcua/opcua_address
  • MQTT: mqtt/mqtt_connection

Note: Icon tools (icons/icon) create/delete SVG files but don't modify SCADA data.

Example read-only configuration:

env
# Only include read operations
TOOLS=datapoints/dp_basic,datapoints/dp_types,archive/archive_query,common/common_query,pv_range/pv_range_query,manager/manager_list,opcua/opcua_connection

🔐 Cybersecurity information

In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial cybersecurity concept. Siemens' products and solutions constitute one element of such a concept. For more information about industrial cybersecurity, please visit www.siemens.com/cybersecurity-industry.

See LEGAL_INFO.md for the full cybersecurity information and the application-example terms of use. Note in particular that this server's HTTP transport is unencrypted by default — see Transport security below.

ℹ️ Version Requirements

Dashboard Tools Requirement: The dashboard-related tools require WinCC OA version 3.21 or higher. If you are using an earlier version of WinCC OA, these tools will not be available. Other tools and features will continue to work with earlier versions.

Prerequisites

This MCP server requires an AI tool that supports Model Context Protocol (MCP) servers. It works with any AI tool that has MCP support. For instructions on how to configure an MCP server in your specific AI tool, please refer to your tools documentation.

For this guide, we'll use Claude Desktop as an example. Download Claude Desktop

For detailed prerequisites, see 📋 Prerequisites Guide.

1. Install

Navigate to your WinCC OA projects javascript directory and create a folder for the MCP server. You can choose any name for this folder - we'll use mcpServer in this guide:

Windows & Linux:

cmd
cd <OA_ProjPath>\javascript
mkdir mcpServer
cd mcpServer

Then install the required packages:

bash
npm install @etm-professional-control/winccoa-mcp-server

Install the WinCC OA JavaScript Manager package from your local WinCC OA installation. The path depends on your WinCC OA version and installation:

WinCC OA 3.20 (default path):

bash
npm install file:C:/Siemens/Automation/WinCC_OA/3.20/javascript/winccoa-manager

WinCC OA 3.21 (default path):

cmd
npm install file:"C:\Program Files\Siemens\WinCC_OA\3.21\javascript\winccoa-manager"

2. Configure

Create configuration file from template:

Windows:

cmd
copy .env.example .env
notepad .env

Linux/macOS:

bash
cp .env.example .env
nano .env  # or use your preferred editor

Minimal .env setup:

env
# IMPORTANT: This token MUST match the token in Claude Desktop config!
# IMPORTANT: You can use any string as token (e.g., "my-secret-token-123")
# For better security, generate a random token:
# Windows:
#   - PowerShell: -join ((1..64) | ForEach {'{0:X}' -f (Get-Random -Max 16)})
#   - Node.js: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# Linux/macOS:
#   - openssl rand -hex 32
#   - pwgen 64 1
#   - node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
MCP_API_TOKEN=your-secure-token-here

# Choose industry context
WINCCOA_FIELD=default  # or 'oil', 'transport'

# Configure available tools (examples - see docs/TOOLS.md for complete list)
# Full feature set
TOOLS=datapoints/dp_basic,datapoints/dp_set,opcua/opcua_connection,mqtt/mqtt_connection,dashboards/dashboard,manager/manager_list
# Default: Read-only monitoring (safe starting point)
TOOLS=datapoints/dp_basic,datapoints/dp_types,archive/archive_query,common/common_query,pv_range/pv_range_query,manager/manager_list

# Dashboard-focused setup (includes write operations)
# TOOLS=datapoints/dp_basic,dashboards/dashboard,dashboards/widget,icons/icon

# Manager control setup (includes write operations)
# TOOLS=manager/manager_list,manager/manager_control,manager/manager_add

# Full feature set (includes all write operations - use with caution)
# TOOLS=datapoints/dp_basic,datapoints/dp_set,opcua/opcua_connection,dashboards/dashboard,manager/manager_list

3. Start Server

Add JavaScript Manager in WinCC OA:

  • Manager Type: JavaScript Manager
  • Script Path: mcpServer/index_http.js

4. Connect Claude Desktop

To access the configuration file:

  1. Open Claude Desktop
  2. Click the menu (☰) in the upper left corner
  3. Navigate to File → Settings
  4. Go to the Developer section
  5. Click "Edit Config" to open the configuration file

Edit the configuration file:

json
{
  "mcpServers": {
    "winccoa": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:3000/mcp", "--header", "Authorization: Bearer YOUR_TOKEN_HERE"]
    }
  }
}

⚠️ IMPORTANT: Replace YOUR_TOKEN_HERE with the exact same token from your .env file's MCP_API_TOKEN. The tokens must match exactly!

🔒 Transport security: the http://localhost:3000/mcp URL above is plain HTTP. That is acceptable only because the traffic never leaves the machine. As soon as the server and the client are on different hosts, the bearer token and every request and response cross the network in clear text — see Remote Host below and enable TLS.

Windows Path Issue: If you encounter the error "C:\Program" is either misspelled or could not be found, use this alternative configuration:

json
{
  "mcpServers": {
    "winccoa": {
      "command": "cmd",
      "args": ["/c", "npx", "mcp-remote", "http://localhost:3000/mcp", "--header", "Authorization: Bearer YOUR_TOKEN_HERE"]
    }
  }
}

This method uses cmd to properly handle paths with spaces in Windows.

Note: After modifying the configuration, you must restart Claude Desktop completely:

  • On Windows: Close Claude through the task-tray menu by selecting "Exit", or end the task in Task Manager if needed
  • On macOS/Linux: Quit Claude Desktop completely and restart

Remote Host: When connecting to a remote WinCC OA server (not localhost), the transport is no longer local.

🔒 Enable TLS before doing this. --allow-http tells the client to accept an unencrypted connection: the Authorization: Bearer token, all datapoint values and all configuration changes travel the network in clear text, and can be captured and replayed by anyone able to observe the traffic. The server itself prints a [SECURITY WARNING] at startup when it binds a non-loopback address without TLS.

Configure TLS on the server (MCP_SSL_ENABLED, MCP_SSL_CERT_PATH, MCP_SSL_KEY_PATH — see Configuration), then use an https:// URL and drop --allow-http:

json
"args": ["mcp-remote", "https://winccoaserver:3000/mcp", "--header", "Authorization: Bearer YOUR_TOKEN_HERE"]

Use --allow-http only on a network you fully control, and treat the token as compromised if you do.

If you accept that risk, add the --allow-http flag to the mcp-remote args:

json
{
  "mcpServers": {
    "winccoa": {
      "command": "npx",
      "args": ["mcp-remote", "http://winccoaserver:3000/mcp", "--header", "Authorization: Bearer YOUR_TOKEN_HERE", "--allow-http"]
    }
  }
}

5. Connect Claude Code (CLI)

If you are using Claude Code (the CLI), you can add the MCP server directly from your terminal:

bash
claude mcp add --transport http winccoa http://localhost:3000/mcp --header "Authorization: Bearer your-secure-token-here"

Remote Host: With TLS configured on the server, use the https:// URL — no extra flag is needed:

bash
claude mcp add --transport http winccoa https://winccoaserver:3000/mcp --header "Authorization: Bearer your-secure-token-here"

🔒 Only if the server has no TLS, and only on a network you fully control, add --allow-http. The token then crosses the network in clear text — see the warning under Remote Host above.

bash
claude mcp add --transport http winccoa http://winccoaserver:3000/mcp --header "Authorization: Bearer your-secure-token-here" --allow-http

Documentation

Features

✅ Secure API - Token-based authentication ✅ Industry Templates - Pre-configured for Oil & Gas, Transportation ✅ Custom Tools - Extend with your own WinCC OA integrations ✅ Project Rules - Plant-specific AI guidance ✅ Dynamic Loading - Configure only needed tools

Available Tool Categories

  • 📊 Datapoints - Read, write, and create datapoints and types
  • 🔗 OPC UA - Connect to OPC UA servers and browse address spaces
  • 📡 MQTT - Connect to MQTT brokers and map topics to datapoints
  • 📈 Dashboards & Widgets - Create and manage visualization dashboards
  • 🚨 Alarms - Configure alarm thresholds and notifications
  • 📁 Archives - Query and configure historical data storage
  • ⚙️ Manager Control - Start, stop, and manage WinCC OA processes (Pmon)
  • 🔧 Common Config - Set descriptions, aliases, formats, and units
  • ✓ PV Range Validation - Define min/max value ranges
  • 🎨 Icons - Create custom SVG icons and browse 1,400+ built-in Siemens IX icons

See 🔧 TOOLS.md for complete tool documentation.

Support

License

ISC - See LICENSE.md for details.

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "winccoa-winccoa-ae-js-mcpserver": {
      "command": "npx",
      "args": [
        "-y",
        "winccoa-ae-js-mcpserver"
      ]
    }
  }
}

WinCC OA MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal WinCC OA MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

WinCC OA MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu WinCC OA MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "winccoa-winccoa-ae-js-mcpserver": {
      "command": "npx",
      "args": [
        "-y",
        "winccoa-ae-js-mcpserver"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu WinCC OA MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu WinCC OA MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat WinCC OA MCP Server?
WinCC OA MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat WinCC OA MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server WinCC OA MCP Server benotzt?

WinCC OA MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech WinCC OA MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir WinCC OA MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat WinCC OA MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann WinCC OA MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech WinCC OA MCP Server MCP mat TypingMind?

WinCC OA MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt WinCC OA MCP Server MCP an TypingMind zur Verfügung?

WinCC OA MCP Server stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir WinCC OA MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann WinCC OA MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇