MCP Server Studio
Ask your plant: live PLC data, alarms, history, OEE and reports from your on-premises PLCGateway.
Registry name: com.plcgateway/plcgateway
Add to claude_desktop_config.json:
{
"mcpServers": {
"plcgateway": {
"command": "npx",
"args": [
"-y",
"@plcgateway/mcp@0.1.1"
],
"env": {
"PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
"PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
}
}
}
}Run in your terminal:
claude mcp add plcgateway -e PLCGATEWAY_URL='<PLCGATEWAY_URL>' -e PLCGATEWAY_TOKEN='<PLCGATEWAY_TOKEN>' -- npx -y @plcgateway/mcp@0.1.1Add to .cursor/mcp.json:
{
"mcpServers": {
"plcgateway": {
"command": "npx",
"args": [
"-y",
"@plcgateway/mcp@0.1.1"
],
"env": {
"PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
"PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"plcgateway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@plcgateway/mcp@0.1.1"
],
"env": {
"PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
"PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"plcgateway": {
"command": "npx",
"args": [
"-y",
"@plcgateway/mcp@0.1.1"
],
"env": {
"PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
"PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
PLCGATEWAY_URL | Yes | Address of your PLCGateway SCADA or Connect, e.g. http://192.168.1.50:8080 |
PLCGATEWAY_TOKEN | Yes | API token (PLCGateway → Settings → API token), or the MCP configuration token for device/tag setup |