modbus-mcp
Verified Safeby ezhuk
Overview
Connects LLM agents to Modbus devices to enable AI-driven workflows in industrial control and building automation systems.
Installation
docker run -d --name modbus-mcp --restart=always -p 8080:8000 --env-file .env ghcr.io/ezhuk/modbus-mcp:latestEnvironment 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
klavis
Develop and deploy AI agents that interact with a wide array of web services (e.g., Gmail, YouTube, LinkedIn, Supabase, Salesforce, Kubernetes) through a standardized Model Context Protocol (MCP), often orchestrated by an intelligent routing layer like Strata.
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-context-forge
Converts web content (HTML, PDF, DOCX, etc.) and local files from a URL into high-quality Markdown format. It supports multiple conversion engines, content optimization, batch processing, and image handling.
MCP-Agent
An autonomous AI agent designed to discover, connect to, and utilize tools and resources from various Model Context Protocol (MCP) servers to accomplish tasks.