Install zigbee2mqtt-mcp for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"alexpfau-zigbee2mqtt-mcp": {
"command": "npx",
"args": [
"-y",
"zigbee2mqtt-mcp@0.7.0"
],
"env": {
"Z2M_MQTT_URL": "YOUR_Z2M_MQTT_URL",
"Z2M_MQTT_USERNAME": "",
"Z2M_MQTT_PASSWORD": "YOUR_Z2M_MQTT_PASSWORD",
"Z2M_BASE_TOPIC": "",
"Z2M_WRITE_MODE": ""
}
}
}
}