PLCGateway MCP
Enables AI assistants to access and interact with Mitsubishi PLCs and controllers through PLCGateway, supporting production and alarm queries, trend summaries, OEE analysis, reporting, and device/tag setup.
Enables AI assistants to access and interact with Siemens S7 PLCs through PLCGateway, supporting queries about alarms, OEE, trends, production reports, and device/tag configuration.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PLCGateway MCP
Connect AI assistants to your plant through PLCGateway.
PLCGateway connects PLCs, CNC machines and controllers (Siemens S7, Modbus, Mitsubishi, Omron, Allen-Bradley, OPC UA and more), and every PLCGateway product has an MCP server built in. This package is a small stdio bridge: MCP clients that start servers as a command (Claude Desktop, Cursor, Cline, Windsurf, …) run it, and it forwards everything to your PLCGateway on your network.
AI client ──stdio──▶ @plcgateway/mcp ──HTTP (your network)──▶ PLCGateway on your premises ──▶ PLCs & machinesPLCGateway runs on your premises. The bridge talks only to the address you give it; it collects nothing and sends nothing elsewhere.
The assistant works with the rights of the token you give it, the same roles as people.
What you can ask
"How many alarms did line 3 have in the last 2 hours?"
"What was the filler's OEE today, and where did we lose the most time?"
"Summarise the last 24 hours of the tank level trend."
"Build a report dashboard with production and energy per shift for line 1." (draft for you to review)
"Add the Modbus TCP meter at 192.168.1.40 as 'Compressor 2 energy meter'." (needs the MCP configuration token)
Related MCP server: OT-AIops
Requirements
PLCGateway SCADA or Connect, reachable from the computer running the AI client, with MCP enabled
An API token: PLCGateway → Settings → API token (operator rights: read, write, alarm acknowledgement)
Node.js 18.17 or newer
For setup work (adding devices and tags) create the MCP configuration token in Settings and switch it off when done.
Setup
Claude Desktop, Cursor, Cline and other stdio clients
{
"mcpServers": {
"plcgateway": {
"command": "npx",
"args": ["-y", "@plcgateway/mcp"],
"env": {
"PLCGATEWAY_URL": "http://192.168.1.50:8080",
"PLCGATEWAY_TOKEN": "<your API token>"
}
}
}
}Clients that support HTTP MCP directly
You don't need this package; connect straight to PLCGateway:
{ "mcpServers": { "plcgateway": { "type": "http", "url": "http://192.168.1.50:8080/mcp",
"headers": { "Authorization": "Bearer <your API token>" } } } }On the PLCGateway computer itself
plcgateway-scada --mcp-stdio (or plcgateway-connect --mcp-stdio) can be added as the command directly.
Configuration
Variable | Flag | Description |
|
| PLCGateway address, e.g. |
|
| API token or MCP configuration token. Prefer the environment variable. |
|
| Request timeout in seconds (default 120) |
For HTTPS with your own certificate authority, set NODE_EXTRA_CA_CERTS=/path/to/ca.pem.
Troubleshooting
The bridge logs to stderr (visible in your client's MCP logs).
Message | What to check |
| Address and port, firewall, PLCGateway running |
| The token (Settings → API token); a regenerated token replaces the old one |
| MCP is disabled in PLCGateway settings, or the URL points elsewhere |
Links
Product: https://plcgateway.com · AI and MCP: https://plcgateway.com/ai-mcp
License
The bridge in this repository is MIT licensed. PLCGateway itself is proprietary software, licensed separately.
This server cannot be deployed
Maintenance
Related MCP Connectors
Manufacturing BI from your AI client: dashboards, OEE, spreadsheets, scheduling, text-to-CAD.
Query Allen-Bradley and Siemens PLC projects, live tag values, and analyses in plain English.
Company and industrial data for AI assistants: datasets, SQL, dashboards, alarms, with approvals.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI agents to OPC UA-enabled industrial systems for real-time monitoring and control of operational data. It enables users to read, write, and browse industrial device nodes through natural language interactions.MIT
- AlicenseBqualityAmaintenanceProvides AI agents with safe, governed read access to industrial control systems (OPC-UA, Modbus, S7, Mitsubishi, MTConnect, MQTT/Sparkplug) plus cross-protocol diagnostics for troubleshooting data breaks, alarm floods, and unhealthy tags.1569MIT
- AlicenseBqualityBmaintenanceExposes a deterministic IoT edge runtime — Modbus/CAN/J1939 acquisition, local rules, alarms, and history — to AI assistants as typed, governed MCP tools. Reads are safe by default; device control stays deny-by-default, explicitly confirmed, and audited.233Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to connect to Allen-Bradley, Siemens, and CODESYS PLC projects for discovering, asking questions about, analyzing, and proposing code changes, with access to live tag values and version exports under permission-scoped controls.-