Other / zigbee2mqtt-mcp
zigbee2mqtt-mcp
io.github.alexpfau/zigbee2mqtt-mcp · v0.7.0
Administer a Zigbee2MQTT estate: health, mesh diagnostics, OTA, pairing, device management.
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #87 of 1,679 Other servers on Socketlist by score, with 36 GitHub stars and a last code push 29d ago.
Install
npx -y zigbee2mqtt-mcpAssembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect zigbee2mqtt-mcp to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env Z2M_MQTT_URL=<z2m_mqtt_url> --env Z2M_MQTT_PASSWORD=<z2m_mqtt_password> --transport stdio zigbee2mqtt-mcp -- npx -y zigbee2mqtt-mcp.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"zigbee2mqtt-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"zigbee2mqtt-mcp"
],
"env": {
"Z2M_MQTT_URL": "${Z2M_MQTT_URL}",
"Z2M_MQTT_PASSWORD": "${Z2M_MQTT_PASSWORD}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"zigbee2mqtt-mcp": {
"command": "npx",
"args": [
"-y",
"zigbee2mqtt-mcp"
],
"env": {
"Z2M_MQTT_URL": "${env:Z2M_MQTT_URL}",
"Z2M_MQTT_PASSWORD": "${env:Z2M_MQTT_PASSWORD}"
}
}
}
} Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
Z2M_MQTT_URL | Yes | Yes | 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 | No | No | MQTT broker username, if the broker requires authentication. |
Z2M_MQTT_PASSWORD | No | Yes | MQTT broker password, if the broker requires authentication. |
Z2M_BASE_TOPIC | No | No | Zigbee2MQTT base topic. Must match mqtt.base_topic in configuration.yaml. Defaults to zigbee2mqtt. |
Z2M_WRITE_MODE | No | No | 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). |
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"npx",
"-y",
"zigbee2mqtt-mcp"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Signals
| GitHub stars | 36 |
| npm weekly downloads | 88 |
| Last push | 29d ago |
| Licence | MIT |
| Open issues | 0 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-08-07 |
Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.
Similar servers compare all →
ellmos ServerCommander
Score 81Server operations MCP: HTTP health checks, log analysis, deploy dry-runs, mail diagnostics.
Tailscale RMCP
Score 72Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
M00N Report
Score 70Test management over MCP: author cases, run manual executions, cut releases, read health
Five MCP servers worth your time, every week
The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.