vogler75/winccv8-mcp-server
If you are the rightful owner of winccv8-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides access to Siemens WinCC V8 SCADA systems through their REST API. Created by Andreas Vogler in 2025.
login-user
Log in to WinCC with username and password
wincc-get-connections
Read all connection configurations
wincc-get-connection
Read specific connection configuration
wincc-get-groups
Read all tag group configurations
wincc-get-group
Read specific tag group configuration
WinCC V8 MCP Server
A Model Context Protocol (MCP) server that provides access to Siemens WinCC V8 SCADA systems through their REST API. Created by Andreas Vogler in 2025.
Features
🔐 Authentication
- User login with username/password credentials
- Support for Basic Authentication and Bearer Token authentication
- Automatic credential management for subsequent requests
- HTTPS support with optional certificate validation bypass
�️ Tag Management
- Connections: Read configuration data of connections and specific connection details
- Tag Groups: List all tag groups and get specific group configurations
- Structure Types: Access structure type definitions and their instances
- Tag Values: Read single or multiple tag runtime values
- Tag Writing: Write values to individual tags or batch write to multiple tags
- Tag Configuration: Access tag configuration data and list all tags with pagination
📊 Archive System
- Archives: List all process value archives and get specific archive details
- Archive Variables: Access archive variable configurations and data
- Archive Values: Read current and historical archive values with filtering
- Timers: Manage archive system timers and their configurations
- Archive Tags: Access archive system tag configurations
🌐 HTTP Transport
- Express.js server with HTTP endpoints
- Streamable HTTP server transport for MCP communication
- JSON-based request/response handling
- Error handling and proper HTTP status codes
Available Tools
Authentication
login-user
- Log in to WinCC with username and password
Tag Management
wincc-get-connections
- Read all connection configurationswincc-get-connection
- Read specific connection configurationwincc-get-groups
- Read all tag group configurationswincc-get-group
- Read specific tag group configurationwincc-get-structure-types
- Read all structure type configurationswincc-get-structure-type
- Read specific structure type configurationwincc-get-structure-variables
- Read structure type instanceswincc-get-tag-value
- Read runtime value of a specific tagwincc-get-tag-values
- Read runtime values of multiple tagswincc-write-tag-value
- Write value to a specific tagwincc-write-tag-values
- Write values to multiple tagswincc-get-tag-config
- Read configuration of a specific tagwincc-get-tags-config
- Read configuration of all tags
Archive System
wincc-get-archives
- Read all process value archive configurationswincc-get-archive
- Read specific archive configurationwincc-get-archive-variable
- Read specific archive variable configurationwincc-get-archive-variables
- Read all variables in an archivewincc-get-archive-value
- Read runtime value of an archive variablewincc-get-archive-values
- Read runtime values of multiple archive variableswincc-get-timers
- Read all archive system timer configurationswincc-get-timer
- Read specific timer configurationwincc-get-archive-tag
- Read archive system tag configurationwincc-get-archive-tags
- Read all archive system tag configurations
Installation
- Clone this repository:
git clone https://github.com/yourusername/wincc-mcp-server.git
cd wincc-mcp-server
- Install dependencies:
npm install
Disclaimer
Security Notice: This server has not been hardened or secured for production use. It is the responsibility of the user to implement appropriate security measures (such as authentication, authorization, network restrictions, and HTTPS) before deploying or exposing this server in any environment.
Configuration
Environment Variables
# WinCC REST API Configuration
WINCC_URL=https://localhost:34569/WinCCRestService # Default WinCC REST service URL
WINCC_USR=username1 # Default username
WINCC_PWD=password1 # Default password
WINCC_BEARER_TOKEN= # Optional bearer token
WINCC_SKIP_CERTIFICATE_VALIDATION=false # Set to true to skip SSL certificate validation (development only)
NODE_TLS_REJECT_UNAUTHORIZED=0 # Set to 0 to disable TLS certificate validation (development only)
# CORS Configuration
WINCC_ALLOW_ORIGIN=* # CORS origin setting - '*' allows all origins, or specify specific URLs like 'http://localhost:3000'
WinCC System Setup
- Enable WinCC REST Service: In WinCC Configuration Studio → Computer → Properties → Startup → enable the WinCC REST service
- Configure Authentication: Set up user accounts with appropriate permissions
- Network Configuration: Ensure the REST service port (default 34569) is accessible
- HTTPS Certificate: For production, configure proper SSL certificates
Usage
Starting the Server
# Using npm
npm start
# Using node directly
node index.js
# Development mode with debugging
npm run dev
The server will start on port 3000 by default and listen for MCP requests at the /mcp
endpoint.
Connecting with a Claude Desktop Client
To use this MCP server with the Claude AI desktop application (or other clients supporting mcp-remote
), you need to configure the client to connect to this server. For the Claude Desktop application, this is typically done by editing a claude_desktop_config.json
file. The location of this file varies by operating system but is usually within the Claude application's support or configuration directory.
Add or update the mcpServers
section in your claude_desktop_config.json
file like this:
{
"mcpServers": {
"WinCC V8": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:3000/mcp"]
}
}
}
Technical Details
Security Considerations
- HTTPS Support: Configure HTTPS for production environments
- Certificate Validation: The server can bypass SSL certificate validation (development only)
- Authentication: Always use proper authentication credentials
- Network Security: Ensure proper firewall and network security configurations
- CORS Configuration: Use
WINCC_ALLOW_ORIGIN
to restrict allowed origins in production
CORS (Cross-Origin Resource Sharing)
The server includes CORS support to allow web applications to access the MCP endpoints from different origins:
- Development: Use
WINCC_ALLOW_ORIGIN=*
to allow all origins - Production: Specify exact origins like
WINCC_ALLOW_ORIGIN=https://yourdomain.com,https://anotherdomain.com
- Multiple Origins: Separate multiple origins with commas
- Security: Never use
*
in production environments with sensitive data
Troubleshooting
Common Issues
- Connection Failed: Check WinCC REST service is running and accessible
- Authentication Error: Verify username/password or bearer token
- HTTPS Certificate Error: Use proper certificates or disable validation for development
- Tag Not Found: Ensure tag names are correct and accessible
- Permission Denied: Check user permissions in WinCC configuration
Debug Mode
Run with debugging enabled:
npm run dev
Author
Created by Andreas Vogler, 2025