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.

コメント

「その他」の他のコンテンツ