Purpose: aimed at low-level Zigbee2MQTT management, not just turning lights on and off. It connects directly to Zigbee2MQTT's MQTT bridge API, so it does not depend on Home Assistant, Node-RED, or openHAB, and can be used independently.
Main capabilities: network health reports, mesh topology and weak-link diagnostics, troubleshooting of devices that repeatedly reconnect, battery status, firmware OTA updates, pairing (permit_join), binding, reporting intervals, and device option configuration. Tools include z2m_check_updates, z2m_permit_join, z2m_set_device_options, z2m_rename_device, z2m_configure_device, z2m_interview_device, z2m_set_state, z2m_manage_group, z2m_bind, z2m_configure_reporting, as well as the irreversible z2m_remove_device, z2m_ota_update, z2m_restart_bridge, z2m_set_bridge_options, and z2m_touchlink.
Usage: requires Node.js 22 or later, and access to the MQTT broker used by Zigbee2MQTT. In the MCP configuration, point Z2M_MQTT_URL to the MQTT broker (for example mqtt://192.168.1.10:1883), not to the Zigbee2MQTT frontend port. Pure stdio, no daemon, starts and ends with the MCP session. Write operations are controlled by tier; irreversible tools require passing confirm: true on every call; the full tier must be enabled by setting Z2M_WRITE_MODE=full.
Limitations: testing is based on Zigbee2MQTT 2.x and an EmberZNet environment with 50 devices; other adapters, TLS/WebSocket brokers, and large networks have not yet been verified. Some fields depend on the configuration, and the server will detect and indicate them. In safe mode, locks, valves, and sirens can still be operated via z2m_set_state; permit_join will temporarily open the network. Broker credentials are redacted.