Back to Home
ezhuk icon

modbus-mcp

Verified Safe

by ezhuk

Overview

Connects LLM agents to Modbus devices to enable AI-driven workflows in industrial control and building automation systems.

Installation

Run Command
docker run -d --name modbus-mcp --restart=always -p 8080:8000 --env-file .env ghcr.io/ezhuk/modbus-mcp:latest

Environment Variables

  • OPENAI_API_KEY
  • MODBUS_MCP_AUTH__DOMAIN
  • MODBUS_MCP_AUTH__URL
  • MODBUS_MCP_MODBUS__HOST
  • MODBUS_MCP_MODBUS__PORT
  • MODBUS_MCP_MODBUS__UNIT

Security Notes

The server uses `FastMCP` and `pymodbus` to expose Modbus operations. Configuration is handled through environment variables and a `devices.json` file, and authentication can be enabled via `AuthKitProvider`. Input parameters to Modbus functions are type-hinted and converted (e.g., to integers), which reduces common injection risks. There are no obvious direct shell commands, `eval` or `exec` calls in the provided source code. The main security considerations would involve the security of the underlying Modbus network and how the LLM agent is instructed to utilize these control capabilities.

Similar Servers

Stats

Interest Score30
Security Score8
Cost ClassLow
Avg Tokens30
Stars1
Forks1
Last Update2026-01-15

Tags

ModbusLLMAI AgentsIndustrial ControlBuilding Automation