Mirobody
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Administer a Zigbee2MQTT estate: health, mesh diagnostics, OTA, pairing, device management.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
Z2M_MQTT_URL, Z2M_MQTT_USERNAME, Z2M_MQTT_PASSWORD, Z2M_BASE_TOPIC, Z2M_WRITE_MODEค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"zigbee2mqtt": {
"command": "npx",
"args": [
"-y",
"zigbee2mqtt-mcp"
],
"env": {
"Z2M_MQTT_URL": "ใส่ค่าของคุณ",
"Z2M_MQTT_USERNAME": "ใส่ค่าของคุณ",
"Z2M_MQTT_PASSWORD": "ใส่ค่าของคุณ",
"Z2M_BASE_TOPIC": "ใส่ค่าของคุณ",
"Z2M_WRITE_MODE": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add zigbee2mqtt --env Z2M_MQTT_URL='ใส่ค่าของคุณ' --env Z2M_MQTT_USERNAME='ใส่ค่าของคุณ' --env Z2M_MQTT_PASSWORD='ใส่ค่าของคุณ' --env Z2M_BASE_TOPIC='ใส่ค่าของคุณ' --env Z2M_WRITE_MODE='ใส่ค่าของคุณ' -- npx -y zigbee2mqtt-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"zigbee2mqtt": {
"command": "npx",
"args": [
"-y",
"zigbee2mqtt-mcp"
],
"env": {
"Z2M_MQTT_URL": "ใส่ค่าของคุณ",
"Z2M_MQTT_USERNAME": "ใส่ค่าของคุณ",
"Z2M_MQTT_PASSWORD": "ใส่ค่าของคุณ",
"Z2M_BASE_TOPIC": "ใส่ค่าของคุณ",
"Z2M_WRITE_MODE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"zigbee2mqtt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"zigbee2mqtt-mcp"
],
"env": {
"Z2M_MQTT_URL": "ใส่ค่าของคุณ",
"Z2M_MQTT_USERNAME": "ใส่ค่าของคุณ",
"Z2M_MQTT_PASSWORD": "ใส่ค่าของคุณ",
"Z2M_BASE_TOPIC": "ใส่ค่าของคุณ",
"Z2M_WRITE_MODE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
Z2M_MQTT_USERNAME envZ2M_BASE_TOPIC envZ2M_WRITE_MODE envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub alexpfau ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: Z2M_MQTT_URL, Z2M_MQTT_PASSWORD
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.7.0) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Mirobody, FHIR MCP Server, Google Health MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications
Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
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.
bridge/request/* carries a transaction id and is matched to its bridge/response/*, so concurrent calls cannot cross wires.confirm argument.Requires Node.js 22 or newer and network access to the MQTT broker that Zigbee2MQTT uses.
npx zigbee2mqtt-mcp
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}" } } } }
{
"mcpServers": { "zigbee2mqtt": { "command": "npx", "args": ["-y", "zigbee2mqtt-mcp"], "env": { "Z2M_MQTT_URL": "mqtt://192.168.1.10:1883" } } } }
Point
Z2M_MQTT_URLat your MQTT broker, not at the Zigbee2MQTT frontend port. If Zigbee2MQTT'sconfiguration.yamlsaysmqtt.server: mqtt://192.168.1.10:1883, use that value verbatim.
Behind a corporate npm proxy? If
npm config get registryis nothttps://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"]
| Variable | Default | Purpose |
|---|---|---|
Z2M_MQTT_URL | *required* | Broker URL. mqtt://, mqtts://, ws://, wss:// |
Z2M_MQTT_USERNAME / Z2M_MQTT_PASSWORD | – | Broker credentials |
Z2M_BASE_TOPIC | zigbee2mqtt | Must match mqtt.base_topic |
Z2M_MQTT_CLIENT_ID | zigbee2mqtt-mcp- | Override if your broker requires a fixed client ID |
Z2M_WRITE_MODE | safe | off, safe or full |
Z2M_LOG_LEVEL | error | Diagnostics on stderr |
Z2M_WEAK_LINK_THRESHOLD | 30 | Link quality below this is flagged |
Z2M_LOW_BATTERY_THRESHOLD | 20 | Battery percentage below this is flagged |
Z2M_STALE_HOURS | 24 | Hours of silence before a device is stale |
Z2M_CONNECT_TIMEOUT_MS | 10000 | Broker connect timeout |
Z2M_REQUEST_TIMEOUT_MS | 15000 | Default bridge request timeout |
Z2M_MQTT_REJECT_UNAUTHORIZED | true | Set false for self-signed TLS |
Z2M_MQTT_CA / _CERT / _KEY | – | Paths to TLS material |
Tools above the active tier are not registered at all, so a model cannot reach for them.
| Mode | Exposes |
|---|---|
off | Read-only tools |
safe | Default. Read plus non-destructive writes: pairing, options, rename, configure, interview, binding, reporting, groups, state |
full | Everything, 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:
| Annotation | Meaning here |
|---|---|
readOnlyHint: true | The nine read tools. They never change the network. |
destructiveHint: true | z2m_remove_device, z2m_ota_update, z2m_touchlink, z2m_restart_bridge, z2m_set_bridge_options, plus z2m_rename_device, z2m_manage_group and z2m_bind |
idempotentHint | True where repeating the call has no additional effect |
openWorldHint: true | Always — 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" }
| Tool | Purpose |
|---|---|
z2m_connection_status | Broker reachability, TLS posture and cached message counts — reports instead of throwing, even when nothing is configured yet |
z2m_bridge_info | Version, coordinator, channel, PAN ID, permit_join, restart_required, runtime stats |
z2m_list_devices | Filter and sort devices by type, availability, link quality, battery, pending update |
z2m_get_device | Exposes, settable options, endpoints, bindings, configured reportings, current state |
z2m_health_report | Whole-estate audit in one call |
z2m_network_map | Mesh topology with parent, depth, link quality, orphan detection |
z2m_list_groups | Groups, members and scenes |
z2m_get_logs | Bridge logs and lifecycle events, buffered or watched live |
z2m_coordinator_check | Routers missing from the coordinator's memory (Texas Instruments adapters only) |
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
z2m_remove_device, z2m_ota_update, z2m_restart_bridge, z2m_set_bridge_options, z2m_touchlink
Some fields depend on your Zigbee2MQTT configuration. The server detects what is available and tells you rather than silently returning nothing.
| Field | Requires | If missing |
|---|---|---|
last_seen | advanced.last_seen set to e.g. ISO_8601 (default is disable) | Staleness checks are skipped and a hint is returned |
availability | availability.enabled: true | Offline detection is skipped and a hint is returned |
linkquality, battery, update | Live device traffic — Zigbee2MQTT does not retain device state topics | Pass collect_seconds to listen briefly, or use z2m_network_map for authoritative link quality |
z2m_coordinator_check | An 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 |
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.npm install
npm run build npm run watch
npm test
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}'
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.
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.
Early re
ตัดมาแค่ช่วงต้น อ่านต่อใน repo