Homey MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Homey MCP Server
Connect Claude to your Homey Pro over your local network. Ask Claude about your devices, switch things on and off, read sensors and energy usage, and let it build advanced flows for you, all in plain language.
It runs on your own computer and talks straight to your Homey on your home network. Nothing goes through a cloud service except your conversation with Claude.
What it can do
19 tools, in three groups.
Devices and rooms
Tool | What it does |
| List every device with its current state |
| Live state of one device |
| Set any capability: on/off, dim level, target temperature, blinds, … |
| List your rooms (zones) |
| Everything in one room, optionally only one type (e.g. |
| All lights in a room on, off or toggle, with optional brightness |
| Temperature, humidity, battery and power per room |
Flows
Tool | What it does |
| Read your basic and advanced flows |
| Start a flow |
| Search the trigger, condition and action cards your Homey has |
| Run one action card directly, without a flow |
| Build a new advanced flow |
| Change an existing advanced flow |
| Delete an advanced flow (Claude has to repeat the exact flow name) |
Creating and changing advanced flows is safe by default. Every flow is checked against the real cards on your Homey, the tools only validate unless Claude explicitly sets dry_run=false, and new flows start disabled. Basic flows can be read and started, not edited.
Insights and energy
Tool | What it does |
| History of one value (e.g. temperature) over 1 hour to 1 year |
| Energy use per device, room or type, for a period, a specific hour or a year |
| Live snapshot: current power, temperatures, devices that are on |
Things you can ask
What devices do I have in the living room?
Turn off all the lights downstairs.
Set the bedroom thermostat to 19 degrees.
How warm and humid is it in each room?
Which devices used the most energy this week?
Show me the temperature in the bathroom over the last 24 hours.
Which flows are broken?
Make an advanced flow that turns on the hallway light when motion is detected after sunset. Leave it disabled.Related MCP server: Home Assistant MCP Server
Setup (about 10 minutes)
What you need
A Homey Pro. Homey Cloud and Homey Bridge have no local API, so they won't work.
A computer on the same network as the Homey (Windows, macOS or Linux).
Claude Desktop (download) or Claude Code.
You don't need to install Python. The next step installs uv, which fetches the right Python version by itself.
Step 1: Install uv
macOS / Linux, in Terminal:
curl -LsSf https://astral.sh/uv/install.sh | shWindows, in PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Then close the terminal and open a new one, so it finds uv.
Step 2: Download this repo
With git:
git clone https://github.com/maerestijnde/mcp-homey.git
cd mcp-homeyWithout git: on the GitHub page, click Code → Download ZIP, unzip it somewhere permanent (for example Documents/mcp-homey), and open a terminal in that folder.
Remember where the folder is: Claude needs the full path in step 6.
Step 3: Create a Homey API key
Go to my.homey.app and sign in.
Pick your Homey, then open Settings (the gear icon, bottom left) → API Keys.
Click New API Key, give it a name (for example
Claude), and select all scopes. If you leave scopes out, some tools will return "Unauthorized".Click Create and copy the key right away. Homey shows it only once.
The key looks like three long codes separated by colons (xxxxxxxx-…:xxxxxxxx-…:xxxx…). Copy the whole thing.
⚠️ This key gives full control over your Homey. Don't share it or post it anywhere. If it leaks, delete it in the same API Keys screen and create a new one.
Step 4: Find your Homey's IP address
In the Homey app under Settings → General, or in your router's list of connected devices (look for "Homey"). It looks like 192.168.1.42.
Tip: give the Homey a fixed IP (a DHCP reservation in your router), so the setup doesn't break when the address changes.
Step 5: Put the key and IP in .env
Copy the example file to .env:
# macOS / Linux
cp .env.example .env# Windows
copy .env.example .envOpen .env in a text editor and fill in two lines:
HOMEY_LOCAL_ADDRESS=192.168.1.42
HOMEY_LOCAL_TOKEN=paste-your-whole-api-key-hereLeave the rest as it is. .env is in .gitignore, so your key never ends up in git.
On macOS, Finder hides files that start with a dot. Press Cmd+Shift+. to show them, or run open -e .env from the terminal.
Step 6: Test it
uv run python scripts/mcp_call.py get_zonesThe first run takes a minute, because it installs everything. You should then see your rooms. If you see an error instead, check Troubleshooting.
To see all 19 tools: uv run python scripts/mcp_call.py
Step 7: Connect it to Claude
Claude Desktop
Open Claude Desktop → Settings → Developer → Edit Config. This opens
claude_desktop_config.json.Find the full path of
uv:macOS / Linux:
which uv(usually/Users/<you>/.local/bin/uv)Windows:
where uv(usuallyC:\Users\<you>\.local\bin\uv.exe)
Paste this and fill in your paths. If the file already contains other servers, add
"homey": {...}inside the existingmcpServersblock.
macOS / Linux
{
"mcpServers": {
"homey": {
"command": "/Users/<you>/.local/bin/uv",
"args": ["run", "--directory", "/Users/<you>/mcp-homey", "python", "-m", "homey_mcp"]
}
}
}Windows (use double backslashes \\ in paths)
{
"mcpServers": {
"homey": {
"command": "C:\\Users\\<you>\\.local\\bin\\uv.exe",
"args": ["run", "--directory", "C:\\Users\\<you>\\mcp-homey", "python", "-m", "homey_mcp"]
}
}
}Quit Claude Desktop completely (menu bar or system tray → Quit, closing the window is not enough) and start it again.
In a new chat, open the tools menu (the slider icon under the message box).
homeyshould be listed. Ask: "Which rooms do I have in Homey?"
The key and IP come from .env, so they don't go in this config file.
Claude Code
One command, from any folder (fill in your own path):
claude mcp add homey --scope user -- uv run --directory /path/to/mcp-homey python -m homey_mcpCheck it with claude mcp list. --scope user makes it available in all your projects.
Building advanced flows: the Claude skill
This repo comes with a Claude skill, homey-advanced-flows, in .claude/skills/. It gives Claude:
the exact card format: card ids, arguments, tokens and delays
a safe way of working: validate first, create flows disabled, then check that the flow isn't broken
fixes for the usual errors
How to use it:
Claude Code: nothing to do. Claude loads it automatically when you work in this folder.
Claude Desktop: zip the
homey-advanced-flowsfolder, then upload the zip under Settings → Capabilities → Skills. Skills need a paid Claude plan. On macOS:cd .claude/skills && zip -r ~/Desktop/homey-advanced-flows.zip homey-advanced-flowsOn Windows, right-click the folder → Send to → Compressed (zipped) folder.
Trying it without a Homey
Set this in .env to get a fake house with demo devices, flows and energy data:
OFFLINE_MODE=true
DEMO_MODE=trueSet both back to false to use your real Homey. Restart Claude after every change to .env.
Troubleshooting
Problem | Fix |
| The key is incomplete (copy all three parts) or doesn't have all scopes. Create a new one. |
Timeout / | Wrong IP, or your computer isn't on the same network as the Homey. Try opening |
| Open a new terminal after installing uv. In Claude Desktop, use the full path from |
| Usually a JSON typo (a missing comma or quote) or a wrong path. Fix it, then fully quit and restart Claude. |
Claude says it works, but the data looks fake |
|
Logs:
This server:
homey_mcp_server.login the repo folderClaude Desktop on macOS:
~/Library/Logs/Claude/mcp-server-homey.logClaude Desktop on Windows:
%APPDATA%\Claude\logs\mcp-server-homey.log
Development
uv sync --dev # install with dev tools
uv run pytest # run tests
uv run python scripts/mcp_call.py <tool> '<json>' # call one tool without restarting ClaudeExample: uv run python scripts/mcp_call.py get_flows '{"flow_type": "advanced"}'
Saving your flow cards locally
Handy when you build flows with Claude Code inside this repo. Claude can then read the real structure of your cards and flows from files, instead of fetching them again every time.
uv run python scripts/flowlab.py cards # all flow cards -> ref/flowcards/
uv run python scripts/flowlab.py flows # all advanced flows -> ref/advancedflows/ref/ is in .gitignore, because these files contain your device IDs and flow names. Keep it that way. The dump doesn't update itself: run it again after you add devices or apps.
See CONTRIBUTING.md. License: MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Use your LinkedIn from Claude and ChatGPT. Actions run in your own Chrome through a free extension.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables interaction with Homey smart home devices through natural language, allowing users to control devices, manage zones, and trigger automation flows.64-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to read and control Home Assistant devices via natural language, with configurable safety restrictions on sensitive actions.3MIT
- AlicenseAqualityDmaintenanceEnables AI agents to control Homey smart home devices, trigger flows, and query zones via the Homey API.19ISC
- AlicenseNot gradedqualityDmaintenanceIntegrates Claude AI with Home Assistant to control smart home devices via natural language.172 npmMIT