Skip to main content

Zigbee2mqtt MCP

io.github.alexpfau/zigbee2mqtt-mcp

v0.7.0Updated Aug 7, 2026stdio · npm

Administer a Zigbee2MQTT estate: health, mesh diagnostics, OTA, pairing, device management.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add zigbee2mqtt-mcp -e 'Z2M_MQTT_URL=<your-z2m-mqtt-url>' -- npx -y [email protected]

Configuration

5 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • Z2M_MQTT_URL
    Env var· 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_PASSWORD
    Env var· optional· secret
    MQTT broker password, if the broker requires authentication.
  • Z2M_MQTT_USERNAME
    Env var· optional
    MQTT broker username, if the broker requires authentication.
  • Z2M_BASE_TOPIC
    Env var· optional
    Zigbee2MQTT base topic. Must match mqtt.base_topic in configuration.yaml. Defaults to zigbee2mqtt.
  • Z2M_WRITE_MODE
    Env var· optional
    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).

Listed in the official MCP Registry since Aug 7, 2026. Mirrored daily; last checked Nov 26, 2026.