Shelly Smart Home logo

Shelly Smart Home

Local-first MCP server for discovering, monitoring, controlling, and automating Shelly Gen1–Gen4 devices.

Install Shelly Smart Home

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "shelly-smart-home": {
      "command": "uvx",
      "args": [
        "shelly-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 47 tools correctly ().

Overview

Shelly Smart Home MCP server connects MCP clients to Shelly devices from Gen1 through Gen4, with local LAN access and optional Shelly Cloud fallback. It exposes tools for discovery, status, switching, lighting, covers, energy, schedules, scenes, scripts, webhooks, and generic RPC calls. Use it when an agent needs to operate Shelly hardware locally, inspect energy data, or run device automation. Local access provides the broadest feature set; cloud access is limited to status, control, and live energy data.

Use cases

  • Discover Shelly devices on a local subnet
  • Control switches, lights, and covers through an MCP client
  • Inspect live and historical energy readings
  • Create named multi-device scenes
  • Manage local Shelly schedules and scripts

Key features

  • Local LAN discovery and control
  • Optional Shelly Cloud fallback
  • Gen1–Gen4 device support
  • Energy monitoring with local history
  • Schedules, scenes, scripts, webhooks, and KVS
  • Confirmed generic RPC mutations

Tools47

What Shelly Smart Home lets your agent do. Expand a tool for its parameters.

Verified live~4.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/15 checks healthy over the last 111d

What it can do

From the 47 tools this server returned when we ran it; 41 declare their own safety hints.

Runs commands · 1Can delete or modify data · 12Handles credentials · 2Makes network requests · 7Read-only tools · 35
Network at startup2 connections
Files written at startup30

Observed 2026-10-20 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · shelly-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit14d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed47Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Shelly Smart Home works

What Shelly Smart Home MCP server does

The Shelly Smart Home MCP server gives MCP clients one interface for Shelly devices across Gen1, Gen2, Gen3, and Gen4. It can discover devices, inspect metadata and component capabilities, read normalized status, and retrieve configuration with credentials masked. Supported controls include switches, RGBW/CCT/white lights, and covers.

Energy tools provide live readings and local historical data. The server also exposes local automation features for Gen2 and newer devices, including schedules, scripts, webhooks, key-value storage, virtual components, and named scenes. Scenes are stored in a local YAML file and can combine plain control methods across multiple devices.

How it works

The Shelly Smart Home MCP server normally communicates directly with devices on the local network. mDNS discovery can find devices on the local subnet, while manually configured IP addresses support devices on other subnets or environments where mDNS is unavailable. An optional Shelly Cloud connection provides off-LAN access.

Local mode supports discovery, status, control, live and historical energy data, and automation. Cloud mode supports status and control plus live energy readings, but not schedules, scripts, webhooks, or key-value storage. The project is an unofficial community implementation and is marked alpha.

Read operations are identified as read-only, mutations are audit-logged, and generic writes or destructive system operations require explicit confirmation. Irreversible operations require an additional data-loss confirmation. The generic RPC tools provide broader API coverage, including support for methods not represented by dedicated tools.

Setup and configuration

Install with uvx shelly-mcp or install the package with pip. Register it as an MCP server using a standard command and the shelly-mcp executable. With the default setup, run discovery through the shelly_discover tool.

For named devices, passwords, fixed addresses, locations, or cloud access, create ~/.config/shelly-mcp/config.yaml and protect a secret-containing file with permissions 600. Device passwords can also be supplied through a per-device environment variable using the configured device name. Cloud authentication uses the optional SHELLY_CLOUD_AUTH_KEY environment variable.

In WSL or containers, mDNS commonly does not work; configure each device by IP instead. If a device requires authentication, add its password to the device configuration or provide the corresponding environment variable.

Tools and capabilities

The Shelly Smart Home MCP server includes tools for:

  • Discovering, listing, inspecting, and diagnosing devices and components.
  • Reading status, configuration, firmware information, and supported methods.
  • Setting or toggling switches, controlling lights, and moving covers.
  • Reading live and historical energy measurements locally.
  • Listing, creating, updating, and deleting schedules.
  • Managing Gen2+ scripts, webhooks, KVS entries, and virtual components locally.
  • Creating, running, listing, and deleting named scenes.
  • Calling generic read-only or confirmed write RPC methods.

It also publishes device resources and prompts for evening scenes, energy reports, and diagnosis.

Limitations and notes

Automation features require local device access and are unavailable through Shelly Cloud. Historical energy data is also local-only. BLU devices can be reached through their gateway or the generic RPC engine, while dedicated BLU tools are not yet available. The server sends no telemetry or phone-home data beyond calls to the user’s Shelly devices and, when enabled, the user’s Shelly Cloud account.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shelly Smart Home

Shelly Smart Home is an MCP server that connects AI clients to Shelly smart-home devices from Gen1 through Gen4. Its main tools discover devices, read status and energy data, control switches, lights, and covers, and manage local schedules, scenes, scripts, webhooks, and key-value storage.

Install it with `uvx shelly-mcp` or `pip install shelly-mcp`, then register the `shelly-mcp` command in your MCP client configuration. Run `shelly_discover` to find devices on the local subnet.

Yes, Shelly Smart Home works with Cursor through its standard MCP server configuration. Register the server with the `uvx` command and `shelly-mcp` argument, then configure devices if discovery cannot reach the local network.

Yes, it is designed for local-first operation and can control Shelly devices directly over the LAN. Local access also enables historical energy data and automation features that are unavailable through the cloud fallback.

mDNS discovery usually does not work in containers or WSL. Configure the device manually with its IP address in `~/.config/shelly-mcp/config.yaml`; this path does not require mDNS.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShelly Smart Home AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/shelly-smart-home?style=directory)](https://allmcps.com/mcp/shelly-smart-home)
HTML Embed
<a href="https://allmcps.com/mcp/shelly-smart-home"><img src="https://allmcps.com/api/badge/shelly-smart-home?style=directory" alt="Shelly Smart Home on AllMCPs" /></a>