WinCC OA MCP Server
A Model Context Protocol server that exposes WinCC OA datapoint operations as LLM-callable tools, enabling read, write, create, delete, and query operations on datapoints.
README
WinCC OA MCP Server
A Model Context Protocol (MCP) server that exposes WinCC OA datapoint operations as LLM-callable tools. It runs inside a WinCC OA Node.js Manager and uses the native winccoa-manager add-on to interact with the WinCC OA runtime.
Features
| Tool | Description | Hint |
|---|---|---|
winccoa_dp_get |
Read one or more datapoint element values | read-only |
winccoa_dp_set |
Write values (fire-and-forget or confirmed) | write |
winccoa_dp_create |
Create a new datapoint | write |
winccoa_dp_delete |
Delete a datapoint | destructive |
winccoa_dp_copy |
Copy a datapoint to a new name | write |
winccoa_dp_names |
List DPs matching a pattern | read-only |
winccoa_dp_exists |
Check whether a DP identifier exists | read-only |
winccoa_dp_query |
Run a WinCC OA SQL-like query | read-only |
winccoa_dp_types |
List datapoint types matching a pattern | read-only |
Prerequisites
- WinCC OA 3.20 (or compatible) with the Node.js Manager enabled
- Node.js 18+ (bundled with WinCC OA or system-installed)
- The
winccoa-managernative add-on (provided by the WinCC OA runtime – not on npm)
Installation
cd winccoa-mcp-server
npm install
npm run build
This compiles TypeScript sources from src/ into dist/.
Configuration
Since the WinCC OA Node.js Manager does not support command-line arguments, all configuration is done through a .env file placed next to the built entry point (or in the working directory).
A default .env file is included in the repository:
# Transport mode: "stdio" or "http"
MCP_TRANSPORT=stdio
# Port for the HTTP transport (only used when MCP_TRANSPORT=http)
MCP_HTTP_PORT=47899
# Maximum response size in characters to prevent overwhelming the LLM context
MCP_CHARACTER_LIMIT=25000
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT |
"stdio" or "http" |
stdio |
MCP_HTTP_PORT |
Port for HTTP transport | 47899 |
MCP_CHARACTER_LIMIT |
Max response length (chars) | 25000 |
Usage
stdio transport (default)
The server communicates over stdin / stdout. Use this when the MCP client (e.g. Claude Desktop, VS Code) starts the process directly or when testing with MCP Inspector.
node dist/index.js
HTTP transport
Set MCP_TRANSPORT=http in your .env file, then start the server. It will listen on the port specified by MCP_HTTP_PORT.
node dist/index.js
Integration with WinCC OA
This server is designed to be run as customer code inside a WinCC OA Node.js Manager. The typical setup:
- Place the built
dist/folder (or the whole project) in your WinCC OA project's scripts directory. - Configure a Node.js Manager in the WinCC OA console with this server as the entry script.
- The WinCC OA bootstrap will load the native
winccoa-manageradd-on, then executedist/index.js.
MCP client configuration
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"winccoa": {
"command": "node",
"args": ["C:/path/to/winccoa-mcp-server/dist/index.js"]
}
}
}
VS Code (.vscode/mcp.json)
{
"servers": {
"winccoa": {
"type": "stdio",
"command": "node",
"args": ["C:/path/to/winccoa-mcp-server/dist/index.js"]
}
}
}
For HTTP transport, point the client to http://localhost:47899/mcp (or your configured port).
Development
# Run in development mode (tsx, no build step)
npm run dev
# Test with MCP Inspector
npm run inspect
To switch transports during development, edit the .env file.
Project structure
src/
├── index.ts # Entry point – transport setup
├── server.ts # McpServer creation
├── constants.ts # Shared constants
├── winccoa-client.ts # WinccoaManager singleton
├── types/
│ └── winccoa-manager.d.ts # Type declarations for native add-on
├── tools/
│ ├── register-all.ts # Tool registration orchestrator
│ ├── dp-get.ts # winccoa_dp_get
│ ├── dp-set.ts # winccoa_dp_set
│ ├── dp-create.ts # winccoa_dp_create
│ ├── dp-delete.ts # winccoa_dp_delete
│ ├── dp-copy.ts # winccoa_dp_copy
│ ├── dp-names.ts # winccoa_dp_names
│ ├── dp-exists.ts # winccoa_dp_exists
│ ├── dp-query.ts # winccoa_dp_query
│ └── dp-types.ts # winccoa_dp_types
└── utils/
├── error-handler.ts # WinCC OA error handling
└── formatters.ts # Response formatting helpers
Adding new tools
- Create
src/tools/your-tool.tsfollowing the existing pattern (Zod schema +registerTool()). - Import and call your registration function in
src/tools/register-all.ts. - Rebuild with
npm run build.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。