- Home
- MCP servers
- Modbus
Modbus
- python
20
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"kukapay-modbus-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/modbus-mcp",
"run",
"modbus-mcp"
],
"env": {
"MODBUS_HOST": "127.0.0.1",
"MODBUS_PORT": "502",
"MODBUS_TYPE": "tcp",
"MODBUS_PARITY": "N",
"MODBUS_TIMEOUT": "1",
"MODBUS_BAUDRATE": "9600",
"MODBUS_BYTESIZE": "8",
"MODBUS_STOPBITS": "1",
"MODBUS_SERIAL_PORT": "/dev/ttyUSB0",
"MODBUS_DEFAULT_SLAVE_ID": "1"
}
}
}
}Available tools
read_register
Read the value of a Modbus holding register at a given address for a specific slave ID.
write_register
Write a value to a Modbus holding register at a specified address for a specific slave ID.
read_coils
Read the status of a sequence of Modbus coils starting at a given address for a specific slave ID.
write_coil
Write a boolean value to a Modbus coil at a given address for a specific slave ID.
read_input_registers
Read input registers starting from a given address for a specific slave ID.
read_multiple_holding_registers
Read multiple holding registers starting from a given address for a specific slave ID.
analyze_register
Analyze Modbus register values using a customizable prompt to contextualize data.