MCP.so
登录

Modbus MCP Server

@kukapay

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

kukapay

关于 Modbus MCP Server

An MCP server that standardizes and contextualizes industrial Modbus data.

Modbus MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "modbus-mcp": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

Modbus MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Modbus MCP Server?

The Modbus MCP Server is an MCP server that standardizes and contextualizes Modbus data, enabling seamless integration of AI agents with industrial IoT systems. It provides tools to read and write Modbus registers and coils, and includes a customizable prompt for analyzing register values. It is intended for developers working with AI-assisted industrial automation and monitoring.

How to use Modbus MCP Server?

Install Python 3.10 and uv, then clone the repository and run uv sync. Configure connection parameters via environment variables (e.g., MODBUS_TYPE, MODBUS_HOST, MODBUS_PORT) in a .env file or shell. Add the server to Claude Desktop using the provided JSON configuration. Use natural language prompts (client-dependent) or structured JSON (e.g., with MCP Inspector) to invoke tools like read_register, write_register, read_coils, etc.

Key features of Modbus MCP Server

  • Read/write holding registers and coils.
  • Read input registers and multiple holding registers.
  • Customizable prompt (analyze_register) for register analysis.
  • Supports Modbus over TCP, UDP, or serial.
  • Configuration via environment variables.

Use cases of Modbus MCP Server

  • AI agent monitoring sensor values from Modbus RTU/TCP devices.
  • Automated control of industrial actuators via Modbus coil writes.
  • Real-time data logging and analysis of Modbus input registers.
  • Conversational troubleshooting of PLC register states.

常见问题

1

What are the requirements to run Modbus MCP Server?

Python 3.10 or later and `uv` for dependency management. A Modbus device accessible via TCP, UDP, or serial is required.

2

How do I connect to a Modbus device?

Set environment variables: `MODBUS_TYPE` to `tcp`, `udp`, or `serial`, along with host/port or serial port settings. A default slave ID of 1 is used unless specified via `MODBUS_DEFAULT_SLAVE_ID`.

3

What Modbus protocols are supported?

TCP, UDP, and serial (RTU/ASCII) are supported, configured via the `MODBUS_TYPE` variable.

4

Does the server support authentication?

No. The README does not mention any authentication mechanism. Access is based on network connectivity to the Modbus device.

5

Can I run the server without a real Modbus device?

The README does not describe a simulation mode; a real Modbus device or emulator is expected to be reachable at the configured address.

评论

其他 分类下的更多 MCP 服务器