npm · zigbee2mqtt-mcp
$npx -y zigbee2mqtt-mcp@0.7.0 Z2M_MQTT_URL (required) · secret — MQTT broker URL used by Zigbee2MQTT, e.g. mqtt://192.168.1.10:1883. Supports mqtt://, mqtts://, ws:// and wss://. This is the broker, not the Zigbee2MQTT frontend port.
Z2M_MQTT_USERNAME — MQTT broker username, if the broker requires authentication.
Z2M_MQTT_PASSWORD · secret — MQTT broker password, if the broker requires authentication.
Z2M_BASE_TOPIC — Zigbee2MQTT base topic. Must match mqtt.base_topic in configuration.yaml. Defaults to zigbee2mqtt.
Z2M_WRITE_MODE — Tool exposure tier: off (read-only), safe (default; adds non-destructive writes such as pairing, options, rename and binding) or full (adds device removal, OTA flashing, Touchlink and bridge restart).