プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Zigbee2mqtt MCP

作者:alexpfauバージョン 0.7.0i★ –iパソコンで動く
レジストリ名io.github.alexpfau/zigbee2mqtt-mcp

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: クリニック・健康
  • 入力が必要なもの:Z2M_MQTT_URL, Z2M_MQTT_PASSWORD

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: Z2M_MQTT_URL, Z2M_MQTT_USERNAME, Z2M_MQTT_PASSWORD, Z2M_BASE_TOPIC, Z2M_WRITE_MODE

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "zigbee2mqtt": {
      "command": "npx",
      "args": [
        "-y",
        "zigbee2mqtt-mcp"
      ],
      "env": {
        "Z2M_MQTT_URL": "your-value",
        "Z2M_MQTT_USERNAME": "your-value",
        "Z2M_MQTT_PASSWORD": "your-value",
        "Z2M_BASE_TOPIC": "your-value",
        "Z2M_WRITE_MODE": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add zigbee2mqtt --env Z2M_MQTT_URL=your-value --env Z2M_MQTT_USERNAME=your-value --env Z2M_MQTT_PASSWORD=your-value --env Z2M_BASE_TOPIC=your-value --env Z2M_WRITE_MODE=your-value -- npx -y zigbee2mqtt-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "zigbee2mqtt": {
      "command": "npx",
      "args": [
        "-y",
        "zigbee2mqtt-mcp"
      ],
      "env": {
        "Z2M_MQTT_URL": "your-value",
        "Z2M_MQTT_USERNAME": "your-value",
        "Z2M_MQTT_PASSWORD": "your-value",
        "Z2M_BASE_TOPIC": "your-value",
        "Z2M_WRITE_MODE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "zigbee2mqtt": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "zigbee2mqtt-mcp"
      ],
      "env": {
        "Z2M_MQTT_URL": "your-value",
        "Z2M_MQTT_USERNAME": "your-value",
        "Z2M_MQTT_PASSWORD": "your-value",
        "Z2M_BASE_TOPIC": "your-value",
        "Z2M_WRITE_MODE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • Z2M_MQTT_URL 秘密 必須 env
    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 env
    MQTT broker username, if the broker requires authentication.
  • Z2M_MQTT_PASSWORD 秘密 env
    MQTT broker password, if the broker requires authentication.
  • Z2M_BASE_TOPIC env
    Zigbee2MQTT base topic. Must match mqtt.base_topic in configuration.yaml. Defaults to zigbee2mqtt.
  • Z2M_WRITE_MODE env
    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).

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント alexpfau で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

クリニック・健康のほかのサーバーとの比較i

  • このカテゴリのほかの866件のうち0%よりスターが多い
  • このカテゴリのほかの866件のうち29%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの866件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Zigbee2mqtt MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:Z2M_MQTT_URL, Z2M_MQTT_PASSWORD

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.7.0)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Mirobody, FHIR MCP Server, Google Health MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Mirobody

作者:thetahealth

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

パソコンで動く★ 1,408Apache-2.05 日前更新
インストール

FHIR MCP Server

作者:wso2

MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications

パソコンで動く★ 137Apache-2.09 日前更新
インストール

Google Health MCP

作者:davidmosiah

Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents

パソコンで動く★ 79MIT4 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

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, reporting intervals and device options — the things you normally open the Zigbee2MQTT frontend for.

It talks directly to the Zigbee2MQTT MQTT bridge API, so it works regardless of whether you use Home Assistant, Node-RED, openHAB or nothing at all. Tested against Zigbee2MQTT 2.x; several tools depend on bridge endpoints that only exist there, including bridge/health, device/binds/clear and the OTA scheduling topics.

Why this exists

If you already run Home Assistant, your Zigbee devices are exposed there and an assistant can control them. What Home Assistant does *not* expose is the bridge itself: link quality, mesh topology, interview state, OTA availability, permit_join, device options, bindings and reporting configuration. This server fills exactly that gap.

Design

  • No database. Zigbee2MQTT publishes its bridge topics as retained messages, so a fresh subscription yields a complete picture in a few hundred milliseconds. The server keeps only the latest payload per topic in memory.
  • No daemon. Pure stdio. It starts and dies with the MCP session.
  • Correlated requests. Every bridge/request/* carries a transaction id and is matched to its bridge/response/*, so concurrent calls cannot cross wires.
  • Tiered writes. Destructive operations are gated behind a write mode *and* an explicit confirm argument.

Install

Requires Node.js 22 or newer and network access to the MQTT broker that Zigbee2MQTT uses.

npx zigbee2mqtt-mcp
VS Code / GitHub Copilot

Add to your MCP configuration:

{

"servers": { "zigbee2mqtt": { "command": "npx", "args": ["-y", "zigbee2mqtt-mcp"], "env": { "Z2M_MQTT_URL": "mqtt://192.168.1.10:1883", "Z2M_MQTT_USERNAME": "mqtt", "Z2M_MQTT_PASSWORD": "${input:z2mPassword}" } } } }

Claude Desktop
{

"mcpServers": { "zigbee2mqtt": { "command": "npx", "args": ["-y", "zigbee2mqtt-mcp"], "env": { "Z2M_MQTT_URL": "mqtt://192.168.1.10:1883" } } } }

Point Z2M_MQTT_URL at your MQTT broker, not at the Zigbee2MQTT frontend port. If Zigbee2MQTT's configuration.yaml says mqtt.server: mqtt://192.168.1.10:1883, use that value verbatim.

Behind a corporate npm proxy? If npm config get registry is not https://registry.npmjs.org/, your proxy's upstream feed may not carry this package. Add an explicit override to the args rather than changing your global registry:

"args": ["-y", "--registry", "https://registry.npmjs.org/", "zigbee2mqtt-mcp"]

Configuration

VariableDefaultPurpose
Z2M_MQTT_URL*required*Broker URL. mqtt://, mqtts://, ws://, wss://
Z2M_MQTT_USERNAME / Z2M_MQTT_PASSWORD–Broker credentials
Z2M_BASE_TOPICzigbee2mqttMust match mqtt.base_topic
Z2M_MQTT_CLIENT_IDzigbee2mqtt-mcp- Override if your broker requires a fixed client ID
Z2M_WRITE_MODEsafeoff, safe or full
Z2M_LOG_LEVELerrorDiagnostics on stderr
Z2M_WEAK_LINK_THRESHOLD30Link quality below this is flagged
Z2M_LOW_BATTERY_THRESHOLD20Battery percentage below this is flagged
Z2M_STALE_HOURS24Hours of silence before a device is stale
Z2M_CONNECT_TIMEOUT_MS10000Broker connect timeout
Z2M_REQUEST_TIMEOUT_MS15000Default bridge request timeout
Z2M_MQTT_REJECT_UNAUTHORIZEDtrueSet false for self-signed TLS
Z2M_MQTT_CA / _CERT / _KEY–Paths to TLS material

Write modes

Tools above the active tier are not registered at all, so a model cannot reach for them.

ModeExposes
offRead-only tools
safeDefault. Read plus non-destructive writes: pairing, options, rename, configure, interview, binding, reporting, groups, state
fullEverything, including device removal, OTA flashing, Touchlink and bridge restart

Irreversible tools (z2m_remove_device, z2m_ota_update, z2m_touchlink, z2m_restart_bridge, z2m_set_bridge_options) additionally require confirm: true on every call. Three safe tools reduce state rather than only adding to it, so they are annotated destructive: z2m_rename_device, z2m_manage_group and z2m_bind. Their reducing actions also require confirm: true — z2m_manage_group (remove, remove_all_members) and z2m_bind (clear). z2m_rename_device is annotated destructive because it breaks anything referencing the old name, but stays unconfirmed since renaming back restores it.

Every tool also advertises MCP tool annotations so a client can decide what may run without prompting:

AnnotationMeaning here
readOnlyHint: trueThe nine read tools. They never change the network.
destructiveHint: truez2m_remove_device, z2m_ota_update, z2m_touchlink, z2m_restart_bridge, z2m_set_bridge_options, plus z2m_rename_device, z2m_manage_group and z2m_bind
idempotentHintTrue where repeating the call has no additional effect
openWorldHint: trueAlways — every tool reaches a live Zigbee network

Annotations describe the tool, not the tier: a safe tool can still be destructive. The tier decides what is registered, the annotation tells the client what to ask about.

Opt in to the destructive tier only when you want it:

"env": { "Z2M_WRITE_MODE": "full" }

Tools

Read
ToolPurpose
z2m_connection_statusBroker reachability, TLS posture and cached message counts — reports instead of throwing, even when nothing is configured yet
z2m_bridge_infoVersion, coordinator, channel, PAN ID, permit_join, restart_required, runtime stats
z2m_list_devicesFilter and sort devices by type, availability, link quality, battery, pending update
z2m_get_deviceExposes, settable options, endpoints, bindings, configured reportings, current state
z2m_health_reportWhole-estate audit in one call
z2m_network_mapMesh topology with parent, depth, link quality, orphan detection
z2m_list_groupsGroups, members and scenes
z2m_get_logsBridge logs and lifecycle events, buffered or watched live
z2m_coordinator_checkRouters missing from the coordinator's memory (Texas Instruments adapters only)
Safe writes

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

Full writes

z2m_remove_device, z2m_ota_update, z2m_restart_bridge, z2m_set_bridge_options, z2m_touchlink

Data availability caveats

Some fields depend on your Zigbee2MQTT configuration. The server detects what is available and tells you rather than silently returning nothing.

FieldRequiresIf missing
last_seenadvanced.last_seen set to e.g. ISO_8601 (default is disable)Staleness checks are skipped and a hint is returned
availabilityavailability.enabled: trueOffline detection is skipped and a hint is returned
linkquality, battery, updateLive device traffic — Zigbee2MQTT does not retain device state topicsPass collect_seconds to listen briefly, or use z2m_network_map for authoritative link quality
z2m_coordinator_checkAn adapter that supports coordinator backups (TI zStack, Silicon Labs EmberZNet; not deCONZ or ZiGate)Returns an error on unsupported adapters; z2m_bridge_info reports the expectation

Security notes

  • The broker URL may carry credentials (mqtt://user:pass@host). They are redacted everywhere the URL is echoed back to a model or written to a log, and error text from the MQTT client is scrubbed before it leaves the process. Zigbee2MQTT logs its own broker URL at startup, so lines relayed by z2m_get_logs are scrubbed too.
  • safe mode can actuate anything on the mesh via z2m_set_state, including locks, valves and sirens. Use off if that matters.
  • z2m_permit_join opens the network to any nearby Zigbee device for the duration of the window. It is in safe because it is routine and reversible, but it is a security boundary.

Example prompts

  • "Is my Zigbee network healthy?"
  • "Which devices have the weakest signal?"
  • "Which batteries need replacing?"
  • "Any firmware updates available?"
  • "Open the network for pairing via the kitchen router for two minutes."
  • "This sensor stopped reporting temperature — fix it."
  • "Bind the hallway remote to the hallway light so it works if the bridge is down."

Development

npm install

npm run build npm run watch

Unit tests. No broker required; they run on every push across Node 22 and 24.

npm test

Manual smoke test against a real instance

Z2M_MQTT_URL=mqtt://192.168.1.10:1883 node scripts/smoke.mjs Z2M_MQTT_URL=mqtt://192.168.1.10:1883 node scripts/smoke.mjs z2m_list_devices '{"only_problems":true}'

Sequential read-after-write test. Renames a device and creates a group, then

restores both, including on failure. Set Z2M_TEST_DEVICE to pick the device,

or ROUNDTRIP_GROUPS_ONLY=1 to skip the rename.

Z2M_MQTT_URL=mqtt://192.168.1.10:1883 node scripts/roundtrip.mjs

Note that an MCP server may receive requests concurrently. When testing ordering, await each response before sending the next, as roundtrip.mjs does — piping several requests at once will produce misleading results.

The unit tests cover health classification, capability detection, topic routing, write-mode gating and configuration parsing. They are broker-free by design, so anything that needs a live mesh belongs in scripts/ instead.

A passing suite only proves the tests ran, so scripts/mutate.mjs breaks the source one change at a time and checks the suite notices each one:

node scripts/mutate.mjs          # every mutant

node scripts/mutate.mjs redact # only mutants whose name matches

A surviving mutant marks behavior nothing actually tests, and exits non-zero. Add a mutant alongside any fix worth keeping fixed.

Releases are tag-driven: npm version then git push --follow-tags. CI publishes to npm with provenance, rewrites server.json's version from the tag and publishes to the MCP Registry, then creates the GitHub release. The version committed in server.json is therefore not authoritative — the tag is.

Safety

This server can remove devices from your network and flash firmware. Both are irreversible and OTA failures can brick hardware. Those tools live in the full tier, which is not enabled by default — you must opt in with Z2M_WRITE_MODE=full. Broker credentials are read from the environment and never logged.

Status

Early re

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く