# PLCGateway

> PLCGateway is an MCP server for analytics and data. Query live PLC data, alarms, history and OEE from an on-premises PLCGateway. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free trial
- **Platforms:** Windows, self-hosted, CLI
- **Website:** https://plcgateway.com/ai-mcp
- **Repository:** https://github.com/cybriantops/plcgateway-mcp
- **MCP Registry name:** com.plcgateway/plcgateway
- **Categories:** analytics and data, cloud and infrastructure
- **Listing updated:** 2026-11-14

## About

Industrial engineers often spend their time on setup rather than analysis. Every PLCGateway product includes an MCP server, and the page says most of an engineer's work in the software can be done by talking to an assistant, with the same roles and rights as people.

The tool list covers reading tags and history, alarms and acknowledgements, OEE and production batches, and also setup work such as creating devices and tags, testing connections and drafting screens, dashboards and reports for human review. The npm package runs locally over stdio against your own installation.

The all-inclusive AI connection and OPC UA server carry no device or tag limit. Licences are one-time, per computer, priced in euros, with a 30-day free trial.

## Features

- **Live and historic data:** Read current tag values and query history.
- **Alarm handling:** List, review and acknowledge alarms.
- **OEE and production:** Calculate OEE and review batches and KPIs.
- **Device setup:** Create devices, test connections and add tags.
- **Draft screens and reports:** Create drafts for people to review.
- **Role-based access:** Assistants act with the same roles and rights as people.

## Good for

- Ask which alarms fired on a line last week
- Calculate OEE for a machine
- Connect a new PLC and add its tags by description
- Draft a report dashboard from existing tags

## Install

### Claude Code (Terminal)

```sh
claude mcp add plcgateway --env PLCGATEWAY_URL='<PLCGATEWAY_URL>' --env PLCGATEWAY_TOKEN='<PLCGATEWAY_TOKEN>' -- npx -y @plcgateway/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "plcgateway": {
      "command": "npx",
      "args": [
        "-y",
        "@plcgateway/mcp"
      ],
      "env": {
        "PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
        "PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "plcgateway": {
      "command": "npx",
      "args": [
        "-y",
        "@plcgateway/mcp"
      ],
      "env": {
        "PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
        "PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "plcgateway": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@plcgateway/mcp"
      ],
      "env": {
        "PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
        "PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "plcgateway": {
      "command": "npx",
      "args": [
        "-y",
        "@plcgateway/mcp"
      ],
      "env": {
        "PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
        "PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "plcgateway": {
      "command": "npx",
      "args": [
        "-y",
        "@plcgateway/mcp"
      ],
      "env": {
        "PLCGATEWAY_URL": "<PLCGATEWAY_URL>",
        "PLCGATEWAY_TOKEN": "<PLCGATEWAY_TOKEN>"
      }
    }
  }
}
```

## Tools

- `get_site_context`: Returns context about the connected site.
- `list_devices`: Lists configured devices.
- `list_tags`: Lists tags.
- `read_tags`: Reads current tag values.
- `query_history`: Queries historical tag data.
- `write_tag`: Writes a value to a tag.
- `active_alarms`: Lists active alarms.
- `alarm_history`: Shows alarm history.
- `acknowledge_alarm`: Acknowledges an alarm.
- `calculate_oee`: Calculates OEE for a machine.
- `create_screen_draft`: Creates a draft process screen.
- `create_dashboard_draft`: Creates a draft dashboard.
- `generate_report`: Generates a report.
- `create_device`: Creates a device.
- `test_device`: Tests a device connection.

## FAQ

### Where does it run?

On your own site; the npm package talks to an on-premises PLCGateway.

### Is the MCP server extra?

No, the page says it is included in every PLCGateway product.

### Is there a trial?

Yes, a 30-day free trial of every feature.

### How are licences priced?

One-time per computer in euros; PLCGateway Connect is listed at 590 euros.

### Is PLCGateway free?

PLCGateway is a paid product with a free trial.

### How do I add PLCGateway to Claude Code?

Run this command in your terminal: claude mcp add plcgateway --env PLCGATEWAY_URL='<PLCGATEWAY_URL>' --env PLCGATEWAY_TOKEN='<PLCGATEWAY_TOKEN>' -- npx -y @plcgateway/mcp

### What are the best alternatives to PLCGateway?

The closest alternatives to PLCGateway are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/plcgateway
