Control your smart home with an AI assistant
Home automation servers connect an assistant to your smart home, most often through Home Assistant. It can read sensor values, check whether a door is locked, switch lights and plugs, set a thermostat, and help write automations in the right YAML format. That makes it easy to ask what used the most energy this week or to set up an evening routine by describing it. These servers act on physical devices, so use a long-lived token for a dedicated user, keep locks and alarms out of scope at first, and keep the server on your local network.
Example prompts
Paste one into Claude, Cursor, or any MCP client once a matching server is installed.
Which lights are on right now, and turn off the ones downstairs.
What was the average temperature in the bedroom last night?
Write a Home Assistant automation that dims the living room lights at sunset.
MCP servers for home automation
The 12 strongest of 47 matching servers. Servers that name the topic directly come first.
- 55Trust score 55 of 100, Fair
Offline MCP server for navigating the OASIS MQTT 3.1.1 and 5.0 specifications
Registry - 52Trust score 52 of 100, Fair
Control your Philips lights, Sonos speakers, Roborock vacuums and more with Port OS cloud.
RegistryRemote - 52Trust score 52 of 100, Fair
Yeelight device discovery, state, control, and scene execution.
RegistryRemote - 50Trust score 50 of 100, Fair
MCP server for AWS IoT Core: device registry, shadows, jobs, rules, messaging.
Registry - 50Trust score 50 of 100, Fair
MCP server for Azure IoT Hub: device registry, twins, methods, jobs, messaging.
Registry - 50Trust score 50 of 100, Fair
MCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).
Registry
47Trust score 47 of 100, FairEmbedded/IoT mentor: picks the board and toolchain, estimates cost and battery life.
Registry- 40Trust score 40 of 100, Fair
Vibecode your Home Assistant setup from your IDE: automations, dashboards, themes and configs
Registry - 37Trust score 37 of 100, Limited
Shelly Smart Home
by buggy1111 · Python
Local-first MCP server for Shelly smart-home devices (Gen1-Gen4): control, energy, automation.
Registry - 37Trust score 37 of 100, Limited
home-assistant-mcp
by vortitron · TypeScript
Home Assistant and ESPHome for coding agents: states, services, automations, dashboards, flashing.
Registry
32Trust score 32 of 100, LimitedCheck, add and control the smart home sensors and automations in your own Chirp home.
RegistryRemote
32Trust score 32 of 100, LimitedThe IoT platform where AI controls real-world devices: read, provision, automate and command.
RegistryRemote
How to set it up
- Pick a server. MQTT Specification is the strongest match. Check its tools and the API keys it needs on its page.
- Copy the config for your client. Open the install guide for Claude Desktop, Claude Code, Cursor, or VS Code, and paste the generated block into the client's config file. The client guides show where each config file lives.
- Restart and try a prompt. Restart the client so it loads the server, then paste one of the example prompts above.
Questions about home automation
What is the best MCP server for home automation?
MQTT Specification ranks first here with a trust score of 55/100, followed by Port OS Smart Home (52) and Yeelight IoT MCP Server (52). Servers that name the topic directly come first, each group ordered by the public trust score, which nobody can pay for. See the methodology for how it is calculated.
How do I set up MQTT Specification in Claude or Cursor?
Open the install guide for Claude Desktop or Cursor, copy the generated config into the client's config file, add any API keys the server asks for, then restart the client. The client guides cover VS Code, Claude Code, Windsurf, and more.
Can I use a hosted server instead of installing one locally?
4 of the 12 servers listed here can connect remotely over HTTP, so there is nothing to run on your machine: Port OS Smart Home, Yeelight IoT MCP Server, Chirp Home Automation, and others. The rest run locally over stdio.
How many MCP servers can do this?
MCPpedia lists 47 published servers that match this use case. This page shows the 12 strongest matches; thin and duplicate listings are left out.