WAGO PLC
v2.5.0Read and monitor WAGO PLC parameters over the WDA REST API.
Values you need
| Variable | What it is | |
|---|---|---|
TRANSPORT | required | MCP transport. Fixed to stdio for this package. |
WAGO_PLC_HOSTS | required | Comma-separated IPs of the WAGO PLCs, reachable from this machine |
DEFAULT_PLC_USERNAME | required | WBM username on the PLCs Default: admin |
DEFAULT_PLC_PASSWORD | required secret | WBM password, same on all listed PLCs |
WAGO_TIMEOUT_SECONDS | optional | WDA request timeout. CC100 needs 45 or more, other controllers work with 15 Default: 45 |
WAGO_ALLOW_WRITES | required | true lets the agent change parameters, run methods and upload files. Anything else keeps every PLC read-only Default: false |
AUDIT_LOG_FILE | optional | Optional path for the tamper-evident audit log of writes and refusals |
PyPI (uvx)
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add wago-plc-mcp-server -e 'DEFAULT_PLC_PASSWORD=<DEFAULT_PLC_PASSWORD>' -e DEFAULT_PLC_USERNAME=admin -e 'TRANSPORT=<TRANSPORT>' -e WAGO_ALLOW_WRITES=false -e 'WAGO_PLC_HOSTS=<WAGO_PLC_HOSTS>' -- uvx wago-plc-mcp-server==2.5.0Add to
claude_desktop_config.json{
"mcpServers": {
"wago-plc-mcp-server": {
"args": [
"wago-plc-mcp-server==2.5.0"
],
"command": "uvx",
"env": {
"DEFAULT_PLC_PASSWORD": "<DEFAULT_PLC_PASSWORD>",
"DEFAULT_PLC_USERNAME": "admin",
"TRANSPORT": "<TRANSPORT>",
"WAGO_ALLOW_WRITES": "false",
"WAGO_PLC_HOSTS": "<WAGO_PLC_HOSTS>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"wago-plc-mcp-server": {
"args": [
"wago-plc-mcp-server==2.5.0"
],
"command": "uvx",
"env": {
"DEFAULT_PLC_PASSWORD": "<DEFAULT_PLC_PASSWORD>",
"DEFAULT_PLC_USERNAME": "admin",
"TRANSPORT": "<TRANSPORT>",
"WAGO_ALLOW_WRITES": "false",
"WAGO_PLC_HOSTS": "<WAGO_PLC_HOSTS>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "DEFAULT_PLC_PASSWORD",
"id": "default-plc-password",
"password": true,
"type": "promptString"
},
{
"description": "DEFAULT_PLC_USERNAME",
"id": "default-plc-username",
"password": true,
"type": "promptString"
},
{
"description": "TRANSPORT",
"id": "transport",
"password": true,
"type": "promptString"
},
{
"description": "WAGO_ALLOW_WRITES",
"id": "wago-allow-writes",
"password": true,
"type": "promptString"
},
{
"description": "WAGO_PLC_HOSTS",
"id": "wago-plc-hosts",
"password": true,
"type": "promptString"
}
],
"servers": {
"wago-plc-mcp-server": {
"args": [
"wago-plc-mcp-server==2.5.0"
],
"command": "uvx",
"env": {
"DEFAULT_PLC_PASSWORD": "${input:default-plc-password}",
"DEFAULT_PLC_USERNAME": "${input:default-plc-username}",
"TRANSPORT": "${input:transport}",
"WAGO_ALLOW_WRITES": "${input:wago-allow-writes}",
"WAGO_PLC_HOSTS": "${input:wago-plc-hosts}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.wago-plc-mcp-server]
command = "uvx"
args = ["wago-plc-mcp-server==2.5.0"]
env = { "DEFAULT_PLC_PASSWORD" = "<DEFAULT_PLC_PASSWORD>", "DEFAULT_PLC_USERNAME" = "admin", "TRANSPORT" = "<TRANSPORT>", "WAGO_ALLOW_WRITES" = "false", "WAGO_PLC_HOSTS" = "<WAGO_PLC_HOSTS>" }Docker
Requires Docker
Run in a terminal
claude mcp add wago-plc-mcp-server -e 'DEFAULT_PLC_PASSWORD=<DEFAULT_PLC_PASSWORD>' -e DEFAULT_PLC_USERNAME=admin -e 'TRANSPORT=<TRANSPORT>' -e WAGO_ALLOW_WRITES=false -e 'WAGO_PLC_HOSTS=<WAGO_PLC_HOSTS>' -- docker run -i --rm -e DEFAULT_PLC_PASSWORD -e DEFAULT_PLC_USERNAME -e TRANSPORT -e WAGO_ALLOW_WRITES -e WAGO_PLC_HOSTS docker.io/wagoalex/wago-plc-mcp-server:2.5.0Add to
claude_desktop_config.json{
"mcpServers": {
"wago-plc-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"DEFAULT_PLC_PASSWORD",
"-e",
"DEFAULT_PLC_USERNAME",
"-e",
"TRANSPORT",
"-e",
"WAGO_ALLOW_WRITES",
"-e",
"WAGO_PLC_HOSTS",
"docker.io/wagoalex/wago-plc-mcp-server:2.5.0"
],
"command": "docker",
"env": {
"DEFAULT_PLC_PASSWORD": "<DEFAULT_PLC_PASSWORD>",
"DEFAULT_PLC_USERNAME": "admin",
"TRANSPORT": "<TRANSPORT>",
"WAGO_ALLOW_WRITES": "false",
"WAGO_PLC_HOSTS": "<WAGO_PLC_HOSTS>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"wago-plc-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"DEFAULT_PLC_PASSWORD",
"-e",
"DEFAULT_PLC_USERNAME",
"-e",
"TRANSPORT",
"-e",
"WAGO_ALLOW_WRITES",
"-e",
"WAGO_PLC_HOSTS",
"docker.io/wagoalex/wago-plc-mcp-server:2.5.0"
],
"command": "docker",
"env": {
"DEFAULT_PLC_PASSWORD": "<DEFAULT_PLC_PASSWORD>",
"DEFAULT_PLC_USERNAME": "admin",
"TRANSPORT": "<TRANSPORT>",
"WAGO_ALLOW_WRITES": "false",
"WAGO_PLC_HOSTS": "<WAGO_PLC_HOSTS>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "DEFAULT_PLC_PASSWORD",
"id": "default-plc-password",
"password": true,
"type": "promptString"
},
{
"description": "DEFAULT_PLC_USERNAME",
"id": "default-plc-username",
"password": true,
"type": "promptString"
},
{
"description": "TRANSPORT",
"id": "transport",
"password": true,
"type": "promptString"
},
{
"description": "WAGO_ALLOW_WRITES",
"id": "wago-allow-writes",
"password": true,
"type": "promptString"
},
{
"description": "WAGO_PLC_HOSTS",
"id": "wago-plc-hosts",
"password": true,
"type": "promptString"
}
],
"servers": {
"wago-plc-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"DEFAULT_PLC_PASSWORD",
"-e",
"DEFAULT_PLC_USERNAME",
"-e",
"TRANSPORT",
"-e",
"WAGO_ALLOW_WRITES",
"-e",
"WAGO_PLC_HOSTS",
"docker.io/wagoalex/wago-plc-mcp-server:2.5.0"
],
"command": "docker",
"env": {
"DEFAULT_PLC_PASSWORD": "${input:default-plc-password}",
"DEFAULT_PLC_USERNAME": "${input:default-plc-username}",
"TRANSPORT": "${input:transport}",
"WAGO_ALLOW_WRITES": "${input:wago-allow-writes}",
"WAGO_PLC_HOSTS": "${input:wago-plc-hosts}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.wago-plc-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "-e", "DEFAULT_PLC_PASSWORD", "-e", "DEFAULT_PLC_USERNAME", "-e", "TRANSPORT", "-e", "WAGO_ALLOW_WRITES", "-e", "WAGO_PLC_HOSTS", "docker.io/wagoalex/wago-plc-mcp-server:2.5.0"]
env = { "DEFAULT_PLC_PASSWORD" = "<DEFAULT_PLC_PASSWORD>", "DEFAULT_PLC_USERNAME" = "admin", "TRANSPORT" = "<TRANSPORT>", "WAGO_ALLOW_WRITES" = "false", "WAGO_PLC_HOSTS" = "<WAGO_PLC_HOSTS>" }For AI agents
- Ask the user for: TRANSPORT, WAGO_PLC_HOSTS, DEFAULT_PLC_USERNAME, DEFAULT_PLC_PASSWORD, WAGO_ALLOW_WRITES. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json