MCP.so
登录

Modbus MCP Server

@kukapay

关于 Modbus MCP Server

An MCP server that standardizes and contextualizes industrial Modbus data.

基本信息

分类

其他

许可证

MIT

运行时

python

传输方式

stdio

发布者

kukapay

配置

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

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

工具

未检测到工具

工具是从 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.

FAQ from Modbus MCP Server

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.

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.

What Modbus protocols are supported?

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

Does the server support authentication?

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

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 服务器