Z

Zigbee2mqtt Mcp

MCP server · by alexpfau

Health & Medical npm v0.7.0

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

View source ↗ Generate config for multiple servers More servers

Install

registry version 0.7.0

npm
npx -y zigbee2mqtt-mcp

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "zigbee2mqtt-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "zigbee2mqtt-mcp"
      ],
      "env": {
        "Z2M_MQTT_URL": "<YOUR_Z2M_MQTT_URL>",
        "Z2M_MQTT_PASSWORD": "<YOUR_Z2M_MQTT_PASSWORD>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • 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).

GitHub

⭐ 31 stars · 最近更新于 35 天前 · MIT license

About this server

zigbee2mqtt mcp A Model Context Protocol server for administering a Zigbee2MQTT estate. Most Zigbee integrations already let an assistant turn a light on. This one is for the layer underneath: mesh health, weak links, devices that keep rejoining, stale batteries, firmware updates, pairing, binding…

Summary from the project README — github.com/alexpfau/zigbee2mqtt-mcp

Distributed as npm, listed under Health & Medical. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the Zigbee2mqtt Mcp MCP server do?

zigbee2mqtt mcp A Model Context Protocol server for administering a Zigbee2MQTT estate. Most Zigbee integrations already let an assistant turn a light on. This one is for the layer underneath: mesh health, weak links, devices that keep rejoining, stale batteries, firmware updates, pairing, binding

How do I install Zigbee2mqtt Mcp?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Zigbee2mqtt Mcp free to use?

The MCP server itself is free to install. The source is public on https://github.com/alexpfau/zigbee2mqtt-mcp. Any third-party service it calls may require its own API key and account.

Which clients support Zigbee2mqtt Mcp?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/zigbee2mqtt-mcp.svg)](https://mcpnav.net/server/zigbee2mqtt-mcp/)

HTML

<a href="https://mcpnav.net/server/zigbee2mqtt-mcp/"><img src="https://mcpnav.net/badge/zigbee2mqtt-mcp.svg" alt="Listed on MCPNav" height="20"></a>