Skip to main content
Glama
OlubunmiAde

plc-mcp-server

by OlubunmiAde

PLC MCP Server

A Model Context Protocol (MCP) server for industrial PLC integration. Enables AI assistants to read tags, monitor alarms, and interact with Allen-Bradley ControlLogix PLCs using natural language.

Features

  • šŸ­ Tag Operations - Read/write PLC tags

  • 🚨 Alarm Management - View and acknowledge alarms

  • šŸ“Š Diagnostics - PLC status, I/O health, connection info

  • šŸ”’ Safety First - Read-only by default, write whitelist, audit logging

  • šŸ”Œ MCP Standard - Works with Claude Desktop, Cursor, and any MCP client

Related MCP server: ignition-mcp

Quick Start

# Install dependencies
pip install -r requirements.txt

# Configure your PLC connection
cp config.example.yaml config.yaml
# Edit config.yaml with your PLC IP and settings

# Run the server (stdio mode for MCP)
python -m plc_mcp_server

# Or run in HTTP/SSE mode
python -m plc_mcp_server --transport sse --port 8080

Claude Desktop Configuration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "plc": {
      "command": "python",
      "args": ["-m", "plc_mcp_server"],
      "cwd": "/path/to/plc-mcp-server"
    }
  }
}

Project Structure

plc-mcp-server/
ā”œā”€ā”€ plc_mcp_server/
│   ā”œā”€ā”€ __init__.py
│   ā”œā”€ā”€ __main__.py          # Entry point
│   ā”œā”€ā”€ server.py            # MCP server implementation
│   ā”œā”€ā”€ plc/
│   │   ā”œā”€ā”€ __init__.py
│   │   ā”œā”€ā”€ client.py        # PLC connection manager
│   │   ā”œā”€ā”€ allen_bradley.py # ControlLogix driver
│   │   ā”œā”€ā”€ siemens.py       # S7 driver (future)
│   │   └── modbus.py        # Modbus driver (future)
│   ā”œā”€ā”€ tools/
│   │   ā”œā”€ā”€ __init__.py
│   │   ā”œā”€ā”€ tags.py          # Tag read/write tools
│   │   ā”œā”€ā”€ alarms.py        # Alarm tools
│   │   └── diagnostics.py   # Status/diagnostic tools
│   ā”œā”€ā”€ resources/
│   │   ā”œā”€ā”€ __init__.py
│   │   └── tag_database.py  # Tag list resource
│   └── safety/
│       ā”œā”€ā”€ __init__.py
│       ā”œā”€ā”€ whitelist.py     # Write permission control
│       └── audit.py         # Audit logging
ā”œā”€ā”€ config.example.yaml
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ pyproject.toml
└── tests/
    └── ...

Safety

This server controls industrial equipment. Safety is paramount.

  • Read-only mode by default (allow_writes: false)

  • Tag whitelist for write operations

  • All operations logged to audit trail

  • Confirmation required for writes (via MCP confirmation flow)

License

MIT

Install Server
A
license - permissive license
A
quality
F
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    A
    maintenance
    MCP server that connects WAGO PLCs to LLM agents via the WDx/WDA REST API, enabling AI assistants to read sensor values, change configuration, trigger firmware updates, or monitor entire PLC fleets without custom code.
    2
  • A
    license
    C
    quality
    C
    maintenance
    MCP server for Inductive Automation Ignition, enabling AI assistants to browse and write tags, query history and alarms, manage projects, and deploy Perspective views through natural language.
    43
    1
    MIT
  • F
    license
    B
    quality
    B
    maintenance
    Universal MCP server for industrial PLC communication, enabling AI agents to read sensors, alarms, status, setpoints, and write setpoints via adapters for Modbus, S7, or custom PLCs.
    6
  • A
    license
    -
    quality
    C
    maintenance
    The first and only MCP server for PLC (Programmable Logic Controller) intelligence. Give any AI agent direct access to industrial automation data — ladder logic, tag databases, cross-references, fault root cause analysis, and sequence blockers
    MIT

View all related MCP servers

Related MCP Connectors

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • GibsonAI MCP server: manage your databases with natural language

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OlubunmiAde/plc-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server