Homey-Wan-Kenobi MCP

io.github.Ringosystems由 GitHub 账号 Ringosystems 发布v2.2.0更新于 Oct 25, 2026

MCP server for Homey Pro: 60 tools for devices, flows, energy, and Z-Wave/Zigbee diagnostics.

概览

AI 生成的概览

面向 Homey Pro 的自托管 MCP 服务器,让助手控制设备、编写流程、读取能耗与传感器历史,并执行 Z-Wave/Zigbee 诊断。

可以做什么
列出、搜索、查看并控制设备及其能力;重命名、移动设备,管理区域并创建区域和氛围。列出、触发、启用、创建、更新和删除标准流程与高级流程,并查询流程卡片结构以从零搭建自动化。读取逻辑变量、已安装应用、闹钟、通知、天气、在家状态和位置,并可设置变量、闹钟、在家状态和通知。查询实时功率、日/周/月/年能耗报告和历史洞察数据。执行 Z-Wave 与 Zigbee 网络诊断并给出修复建议,分析应用内存与使用情况,处理备份、更新、内存与存储信息、LED 环和重启等系统操作。还可直接调用任意 Homey Web API 端点。
适用场景
当你在本地网络运行 Homey Pro,希望助手控制设备、搭建或拆除自动化、分析能耗与传感器历史,或排查 Z-Wave/Zigbee 网络问题时使用。适合偏好自托管而非 Athom 云端官方连接器的进阶用户。
运行要求
本地进程(Node.js 20 或更高版本,或已发布的 Docker 镜像),并能通过网络访问 Homey Pro 本地 API。需将 HOMEY_ADDRESS 设为 Homey 基础地址,将 HOMEY_TOKEN 设为在 my.homey.app 创建的本地 API 密钥;也可改用 Homey CLI 登录,OAuth 令牌会保存在本地 CLI 设置文件中。
安装前请注意
HOMEY_TOKEN 是可控制智能家居的密钥,勿放入共享配置。许多工具会改变状态:设备控制、流程创建/更新/删除、应用重启/启用/卸载、创建闹钟与通知、备份、重启以及原始 API 调用。HTTP 模式的端点没有内置身份验证,应仅用于可信局域网,或置于带 TLS 和认证的反向代理之后。该项目为独立维护、尽力而为,并非 Athom 官方支持。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Homey-Wan-Kenobi MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Homey-Wan-Kenobi MCP

[CI] [Docker Pulls] [License: MIT]

MCP server for controlling Homey Pro smart home systems through the Model Context Protocol.

The name nods to Obi-Wan Kenobi, your home's only hope for natural-language control.

60 tools and 3 knowledge prompts for device control, flow authoring, automation, monitoring, troubleshooting, network diagnostics, and self-hosted deployment.

Why Homey-Wan-Kenobi

Athom ships an official Homey MCP Server: a cloud-brokered remote connector you add to a paid Claude or ChatGPT plan and sign into with your Homey account. It covers device status and control, renaming and moving devices, creating, updating and starting Flows and Advanced Flows, and setting Moods.

This server differs in two ways. It is self-hosted, so you run it yourself over stdio or streamable-HTTP with no third-party broker and no paid AI-plan requirement. And it adds operational depth for power users that is not part of the official server's described capabilities.

The table reflects Athom's publicly described capabilities as of June 2026. Athom does not publish a formal tool list, so the right-hand gaps are inferred from their documentation, not stated by Athom.

CapabilityOfficial Homey MCP (mcp.athom.com)Homey-Wan-Kenobi
HostingCloud-brokered remote connectorSelf-hosted, stdio or HTTP, no broker
AccessPaid Claude/ChatGPT connector planAny MCP client, no plan requirement
Devices, zones, control, rename, moveYesYes
Flow and Advanced Flow authoringYesYes
MoodsYesYes
Flow-card schema discovery (build flows from scratch)Not describedYes
Energy: live power and day/week/month/year reportsNot describedYes
Insights: historical sensor and meter dataNot describedYes
Z-Wave and Zigbee mesh diagnostics with remediationsNot describedYes
App memory and usage analysis (removal candidates)Not describedYes
Infrastructure ops: backups, reboot, updates, memory, storageNot describedYes
Raw Homey Web API passthroughNot describedYes
Listed in the public MCP RegistryNoYes

The depth, in practice

  • Network diagnostics that the official server does not describe. diagnose_zwave_network and diagnose_zigbee_network read controller health, grade each node by last-seen age (battery-sleep aware), group transmit failures, correlate them with unavailable devices, and return severity-ranked remediations. get_zwave_log exposes the raw network log.
  • Energy and Insights analysis. Live power by zone and device, day/week/month/year energy reports, and timestamped historical sensor and meter data, so the model can answer "what is using power right now" or "how has the bedroom temperature trended this week".
  • App memory and usage analysis. analyze_app_usage cross-references every app against RAM, device counts and flow references to flag safe removal candidates and estimate savings. Read-only and advisory.
  • Build automations from scratch. A flow-card discovery engine (list_flow_cards, get_flow_card) returns each card's full argument schema, and full standard and Advanced Flow CRUD (including delete) lets an AI author and tear down the whole cards graph by UUID.
  • Infrastructure operations from one interface. Backups, reboot, update checks, memory and storage usage, drivers, LED ring, session and location info.
  • A future-proof escape hatch. homey_api_call reaches any Homey Web API endpoint directly, so new firmware features work without waiting for a tool update.

It runs on a hardened, non-root node:22-alpine image whose every build and release is gated on a Trivy scan, and it is published to Docker Hub, GHCR and the public MCP Registry. See the tool reference below for the full list.

When the official server is the better fit

This server is local-first and self-hosted, which is both its strength and its trade-off. The official Homey MCP is the easier choice when you want:

  • Zero setup and managed hosting. Add one URL and sign in with your Homey account. There is no container to run, expose, or maintain, and there is a one-click ChatGPT app.
  • Secure remote access from anywhere. Athom brokers the connection through its cloud, so it works away from home without exposing anything on your LAN. This server's HTTP mode is intended for a trusted local network; remote use is your own VPN or authenticated reverse proxy.
  • Every Homey model. The official endpoint reaches Homey Cloud, Pro, Pro mini and Self-Hosted Server, including cloud-only setups that have no local API. This server targets a Homey reachable over its local API or your Athom token, so it is happiest with a Homey Pro.
  • First-party support. It is maintained by Athom, kept in step with firmware, and officially tested with Claude and the ChatGPT app. This project is independent and best-effort.

The two are complementary. Many people use the official connector for quick remote control and this server for the deep local diagnostics, energy analysis, and infrastructure work. Athom does not publish a formal tool list, so the official server may also include capabilities not reflected above.

Quick Start

bash
git clone https://github.com/Ringosystems/Homey-Wan-Kenobi-MCP.gitcd Homey-Wan-Kenobi-MCPnpm installnpm run build

Authenticate with your Homey:

bash
npx homey loginnpx homey select

Add to your MCP client config (Kiro, Claude Desktop, Cline, etc.):

json
{  "mcpServers": {    "homey": {      "command": "node",      "args": ["/path/to/Homey-Wan-Kenobi-MCP/dist/index.js"]    }  }}

Authentication

The server supports two authentication methods:

Homey CLI (recommended) runs npx homey login and npx homey select. The server reads the stored OAuth token from ~/.athom-cli/settings.json automatically.

Local API Key is created at my.homey.app. Set environment variables:

bash
export HOMEY_ADDRESS=http://192.168.1.xexport HOMEY_TOKEN=your-api-key

The local API key method is the recommended choice when running self-hosted in a container, since it does not depend on a mounted CLI settings file.

Self-Hosted (Docker / HTTP)

The image is published at ringosystems/homey-wan-kenobi (mirrored to ghcr.io/ringosystems/homey-wan-kenobi), and the server is listed in the MCP Registry as io.github.Ringosystems/homey-wan-kenobi-mcp. It is built on node:22-alpine, runs as a non-root user, and ships no baked-in secrets. See SECURITY.md for the audit details.

It defaults to the stdio transport so an MCP client can launch it directly, and exposes a long-lived streamable-HTTP service (via supergateway at /mcp, health at /healthz) when you set MCP_TRANSPORT=streamable-http.

Fastest: one command (prebuilt image)

No clone or build. Pull two things and start it:

bash
curl -fsSLO https://raw.githubusercontent.com/Ringosystems/Homey-Wan-Kenobi-MCP/main/docker-compose.deploy.ymlprintf 'HOMEY_ADDRESS=http://192.168.1.x\nHOMEY_TOKEN=your-local-api-key\n' > .envdocker compose -f docker-compose.deploy.yml up -d

The service is then at http://<host>:8000/mcp (health at /healthz). On Unraid, add the template by URL instead: Docker, Add Container, paste https://raw.githubusercontent.com/Ringosystems/Homey-Wan-Kenobi-MCP/main/deploy/unraid/homey-wan-kenobi.xml into the Template field. The image is multi-arch, so it runs on x86 and ARM (Apple Silicon, Raspberry Pi) hosts.

The /mcp endpoint has no built-in authentication. Keep it on a trusted LAN or behind a reverse proxy that adds TLS and auth.

Run as an MCP client (stdio)

bash
docker run -i --rm \  -e HOMEY_ADDRESS=http://192.168.1.x \  -e HOMEY_TOKEN=your-local-api-key \  ringosystems/homey-wan-kenobi:latest

Run as an HTTP service

bash
docker run -d -p 8000:8000 \  -e MCP_TRANSPORT=streamable-http \  -e HOMEY_ADDRESS=http://192.168.1.x \  -e HOMEY_TOKEN=your-local-api-key \  --restart unless-stopped \  ringosystems/homey-wan-kenobi:latest

Docker Compose

Supply your Homey credentials via a .env file next to docker-compose.yml:

bash
cat > .env <<'EOF'HOMEY_ADDRESS=http://192.168.1.xHOMEY_TOKEN=your-local-api-keyEOF
# Pull the published image, or add --build to build locally insteaddocker compose up -d

The provided docker-compose.yml references the published image (with build: . as a local-build fallback) and applies container hardening (read-only root filesystem, dropped Linux capabilities, no-new-privileges, and memory/PID limits):

yaml
services:  homey-wan-kenobi:    image: ringosystems/homey-wan-kenobi:latest    build: .    container_name: homey-wan-kenobi    ports:      - "8000:8000"    environment:      MCP_TRANSPORT: streamable-http      HOMEY_ADDRESS: "${HOMEY_ADDRESS:-http://192.168.1.x}"      HOMEY_TOKEN: "${HOMEY_TOKEN:-}"    restart: unless-stopped    read_only: true    tmpfs:      - /tmp    security_opt:      - no-new-privileges:true    cap_drop:      - ALL    mem_limit: 256m    pids_limit: 128    healthcheck:      test: ["CMD", "node", "-e", "fetch('http://localhost:8000/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]      interval: 30s      timeout: 5s      retries: 3      start_period: 20s

Build locally

bash
docker build -t ringosystems/homey-wan-kenobi .docker run -d -p 8000:8000 \  -e MCP_TRANSPORT=streamable-http \  -e HOMEY_ADDRESS=http://192.168.1.x \  -e HOMEY_TOKEN=your-local-api-key \  --restart unless-stopped \  ringosystems/homey-wan-kenobi

Connecting a client

Point an MCP client at the streamable-HTTP endpoint:

json
{  "mcpServers": {    "homey": {      "type": "streamable-http",      "url": "http://your-host:8000/mcp"    }  }}

Check health with curl http://your-host:8000/healthz.

Tools

Devices

ToolDescription
list_devicesList devices with live capability values, filter by zone or class
get_deviceGet full device details and all capability values by ID
search_devicesSearch devices by name, class, or capability
set_device_capabilityControl a device (onoff, dim, target_temperature, volume_set, etc.)

Device & Zone Management

ToolDescription
rename_deviceRename a device
move_device_to_zoneMove a device to a different zone (room)
create_zoneCreate a new zone, optionally nested under a parent

Zones

ToolDescription
list_zonesList all zones (rooms/areas) with their hierarchy

Flows

ToolDescription
list_flowsList simple and advanced flows with enabled/broken status
trigger_flowRun a flow immediately
set_flow_enabledEnable or disable a flow

Flow Authoring

ToolDescription
get_flowGet a standard WHEN/AND/THEN flow definition by ID
create_flowCreate a standard flow from trigger/conditions/actions
update_flowUpdate fields of a standard flow
delete_flowPermanently delete a standard flow
get_advanced_flowGet an Advanced Flow definition (cards, args, connections)
create_advanced_flowCreate an Advanced Flow from a cards graph
update_advanced_flowUpdate an Advanced Flow (replaces the cards graph)
delete_advanced_flowPermanently delete an Advanced Flow

Flow Card Discovery

ToolDescription
list_flow_cardsList trigger/condition/action cards, filtered by substring
get_flow_cardGet one flow card's full definition and argument schema

Logic & Apps

ToolDescription
list_variablesList logic variables with current values
set_variableSet a logic variable value
list_appsList installed apps with version, status, and origin
restart_appRestart a Homey app
enable_appEnable or disable an app
uninstall_appUninstall an app and remove its devices

Insights & Energy

ToolDescription
list_insightsList available insight logs
get_insight_entriesGet historical sensor/meter data over a time range
get_energy_liveLive power consumption by zone and device
get_energy_reportEnergy report for day/week/month/year

Weather, Presence & Location

ToolDescription
get_weatherCurrent weather at Homey's location
get_weather_hourlyHourly weather forecast
get_presenceHome/away and awake/asleep status for all users
set_presenceSet your own presence or sleep state
get_locationHomey's configured geographic location

Alarms & Moods

ToolDescription
list_alarmsList all alarms and timers
set_alarmCreate or update an alarm
delete_alarmDelete an alarm
list_moodsList moods (scenes) per zone
set_moodActivate a mood in a zone

Notifications

ToolDescription
list_notificationsList the 50 most recent notifications
create_notificationSend a notification to the Homey timeline

Network Diagnostics

ToolDescription
diagnose_zigbee_networkZigbee mesh health, per-node last-seen, issues and remediations
diagnose_zwave_networkZ-Wave health, transmit failures, unavailable nodes, remediations
get_zwave_logRaw recent Z-Wave network log for troubleshooting

App Usage Analysis

ToolDescription
analyze_app_usageCross-reference apps against RAM, devices, and flow references to flag removal candidates (advisory, read-only)

System & Infrastructure

ToolDescription
get_system_infoSystem info (version, wifi, hostname, hardware)
list_driversList all available device drivers
get_backup_statusBackup config and last backup time
create_backupSchedule a new backup
get_ledringLED ring screensaver options and current setting
set_ledringSet the LED ring screensaver
get_updatesCheck for system updates and update settings
get_sessionCurrent API session info (user, role, scopes)
reboot_homeyReboot the Homey Pro
get_memory_infoMemory usage by app and component
get_storage_infoStorage usage breakdown
set_system_nameSet the Homey system name

Advanced

ToolDescription
homey_api_callRaw escape hatch to call any Homey Web API endpoint directly

Prompts

Built-in knowledge prompts accessible via the MCP prompts API:

PromptDescription
homey_best_practicesZone architecture, device naming, protocol tips, energy management, security
homey_troubleshootingDiagnosing offline devices, Z-Wave/Zigbee issues, flow debugging, performance
homey_flow_patternsAutomation patterns, naming conventions, anti-patterns to avoid

Development

bash
npm run dev        # Run with tsx (no build step)npm run build      # Compile TypeScriptnpm run lint       # ESLintnpm run typecheck  # TypeScript strict checknpm start          # Run compiled version

Tech Stack

  • TypeScript + Node.js (>=20)
  • homey-api v3, the official Homey Web API client
  • @modelcontextprotocol/sdk v1.29, MCP server (registerTool with ToolAnnotations)
  • zod for parameter validation
  • supergateway for the self-hosted streamable-HTTP transport

Security

The dependency tree, base image, and container configuration are audited with Trivy and npm audit. The published image runs as a non-root user on node:22-alpine with no baked-in secrets, and the production dependencies ship with 0 high or critical advisories. See SECURITY.md for the full audit, accepted residual risks, and how to reproduce the scans.

License

MIT

Release process, one-time setup, and Unraid Community Applications submission are documented in PUBLISHING.md; notable changes in CHANGELOG.md.

来源:README.md,提交 3919a20

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分