AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Smart Home Mcp

mcp-kylez0101-smart-home-mcp · by kylez0101

MCP server for controlling smart home appliances

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add mcp-kylez0101-smart-home-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-kylez0101-smart-home-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Smart Home Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Smart Home MCP

[](https://www.python.org/downloads/) [](LICENSE)

[中文](README_CN.md) | English

Control your entire home from Claude. No app, no dashboard, no Home Assistant. Just talk.

Smart home control is fragmented... every brand has its own app, its own automations, its own walled garden. Smart Home MCP goes direct: MCP to device APIs, no middleware. Clone, add credentials, and your AI assistant becomes your home controller.

The AI isn't just a remote control. It reasons about your home. "Make the bedroom sleep-ready" becomes a coordinated sequence across AC, lights, and curtains. No YAML rules, no automation configs. Natural language is the interface.

What it looks like

You:    "I'm going to sleep"
Claude: Activating Sleep Mode...
          ✓ Bedroom AC → 26°C cooling
          ✓ Living room light → off
          ✓ Curtains → closed

You:    "I'm heading out"
Claude: Activating Leave Home...
          ✓ Bedroom AC → off
          ✓ Bedroom light → off
          ✓ Curtains → closed

You:    "It's getting hot, cool down the bedroom"
Claude: Turning on bedroom AC, setting to 25°C cooling mode.
          ✓ Power → on
          ✓ Temperature → 25°C
          ✓ Mode → cool

You don't need to define scenes for everything. Claude reasons on the fly.

Features

  • Minimal setup — no Home Assistant, no server, no dashboard. Just a local MCP server
  • AI-native automation — scenes and cross-device coordination through natural language
  • Plugin-based — each brand is a self-contained plugin, easy to contribute
  • LAN-first — direct local control, millisecond latency, no cloud roundtrip
  • Universal control — one generic interface works across all brands and device types
  • Virtual devices — develop and test without real hardware

Quick Start

One-Line Install

Copy this to Claude Code or OpenClaw and it will set everything up for you:

Install the Smart Home MCP server from https://github.com/kylez0101/smart-home-mcp.git — clone the repo, run `uv sync`, and add it to my MCP config with command "uv" and args ["--directory", "", "run", "python", "-m", "smart_home_mcp"]. Then help me configure my .env file with my device credentials.

Manual Installation

Prerequisites: Python 3.13+, uv

git clone https://github.com/kylez0101/smart-home-mcp.git
cd smart-home-mcp
cp .env.example .env

Edit .env with your device credentials:

# Midea AC
MIDEA_ACCOUNT=your_phone_number
MIDEA_PASSWORD=your_password

Install dependencies:

uv sync --extra midea    # install with Midea AC support
# or
uv sync                  # virtual devices only (no hardware needed)

Usage

Add to your Claude Code MCP config:

{
  "mcpServers": {
    "smart-home": {
      "command": "uv",
      "args": ["--directory", "/path/to/smart-home-mcp", "run", "python", "-m", "smart_home_mcp"]
    }
  }
}

Then just talk to Claude naturally. Your credentials never leave your machine.

Scenes

Define scenes in home.yaml to coordinate multiple devices with a single command:

scenes:
  sleep:
    display_name: "Sleep Mode"
    actions:
      - alias: "bedroom_ac"
        tool: "midea_set_temperature"
        params: { temperature: 26 }
      - alias: "bedroom_ac"
        tool: "midea_set_mode"
        params: { mode: "cool" }
      - alias: "bedroom_light"
        tool: "virtual_turn_off"
        params: {}

  leave_home:
    display_name: "Leave Home"
    actions:
      - alias: "bedroom_ac"
        tool: "midea_turn_off"
        params: {}
      - alias: "living_light"
        tool: "virtual_turn_off"
        params: {}
      - alias: "robot_vacuum"
        tool: "roborock_start_clean"
        params: {}

> "I'm heading out" → AC off, lights off, robot vacuum starts cleaning

See [home.yaml.example](home.yaml.example) for a complete example with rooms, devices, and multiple scenes.

Supported Brands

| Brand | Device Type | Control Method | Status | |-------|-----------|----------------|--------| | Midea (美的) | Air Conditioner | LAN (UDP 6444) | Available | | Virtual | Light, AC, Curtain, Sensor | In-memory mock | Available | | Xiaomi (小米) | Various | miIO protocol | Planned | | Hisense (海信) | TV / AC | Various | Looking for contributors | | Haier (海尔) | Various | Various | Looking for contributors | | Roborock (石头) | Robot Vacuum | Various | Looking for contributors | | Ecovacs (科沃斯) | Robot Vacuum | Various | Looking for contributors | | Sony | TV | REST API / IRCC | Looking for contributors |

PRs welcome! See [Adding a New Brand](#adding-a-new-brand) below.

Architecture

Smart Home MCP talks to your devices over your local WiFi. Your credentials stay on your machine. Any AI client that supports MCP can use it, not just Claude.

You (natural language)
 |
 v
Claude / Any MCP Client
 |
 |  MCP Protocol
 v
┌──────────────────────────────────────┐
│  server.py                           │
│  Generic tools: list_devices,        │
│  control_device, get_device_state    │
│  + Scene engine (home.yaml)          │
└───────┬──────────────┬───────────────┘
        |              |
   ┌────┴────┐   ┌────┴────┐
   │ Midea   │   │ Virtual │  ...
   │ Plugin  │   │ Plugin  │
   └────┬────┘   └────┬────┘
        |              |
   ┌────┴────┐   ┌────┴────┐
   │ AC via  │   │In-memory│
   │  LAN    │   │  state  │
   └─────────┘   └─────────┘
src/smart_home_mcp/
├── server.py              # Plugin loader + generic tools + scene engine
├── models.py              # Device, Capability, DeviceState (brand-agnostic)
├── plugin_base.py         # BrandPlugin ABC
├── home_config.py         # home.yaml parser
├── home_plugin.py         # Scene activation tools
├── config.py              # Per-brand config helper
├── device_cache.py        # Generic device cache
└── brands/
    ├── __init__.py         # Plugin registry
    ├── midea_ac/           # Midea air conditioner
    └── virtual/            # Mock devices for dev/testing

The control_device(device_id, capability, value) generic tool works across all brands. Every device exposes its capabilities with types, ranges, and options, so the AI always knows what's valid before making a call.

Adding a New Brand

Want to add support for a new device? It only takes 3 steps:

1. Create your plugin in src/smart_home_mcp/brands//plugin.py:

from smart_home_mcp.config import get_brand_config
from smart_home_mcp.models import Capability, Device, DeviceState
from smart_home_mcp.plugin_base import BrandPlugin, ToolDefinition

class MyBrandPlugin(BrandPlugin):
    @property
    def brand_name(self) -> str:
        return "my_brand"

    def __init__(self):
        cfg = get_brand_config("MY_BRAND")  # reads MY_BRAND_* env vars
        self._host = cfg.get("HOST", "")

    def get_devices(self) -> list[Device]:
        # Return your discovered devices
        ...

    def get_state(self, device_id: str) -> DeviceState:
        # Query device for current state
        ...

    def control(self, device_id: str, capability: str, value) -> DeviceState:
        # Send command to device
        ...

    def get_tools(self) -> list[ToolDefinition]:
        # Optional: brand-specific tools beyond generic control
        return []

2. Register it in src/smart_home_mcp/brands/__init__.py:

from smart_home_mcp.brands.my_brand.plugin import MyBrandPlugin

PLUGIN_CLASSES: list[type[BrandPlugin]] = [
    MideaACPlugin,
    VirtualPlugin,
    MyBrandPlugin,   # =1.0"]

Your devices will automatically appear in list_devices and be controllable via control_device.

Virtual Devices

The virtual plugin ships with mock devices (light, AC, curtain, sensor) so you can develop and test without owning any hardware:

uv sync              # no --extra needed
cp home.yaml.example home.yaml

Virtual devices maintain state in memory. Perfect for developing new brand plugins, testing scene coordination, and demoing the project.

License

MIT

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.