shelly-local-mcp
Provides tools to discover local Shelly devices via mDNS and IP range scanning, and to retrieve detailed device information such as identity, firmware, Wi-Fi/cloud/MQTT status, uptime, components, and update availability.
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.
shelly-local-mcp
MCP server for discovering and managing local Shelly devices. Exposes device discovery and management over the Model Context Protocol (stdio transport), so you can query and configure Shelly devices from Claude Code or any other MCP client. Supports Gen1, Gen2, and Gen3 devices. No cloud connection required.
Prerequisites
Python 3.13+
Shelly devices reachable on the local network
Related MCP server: Switcher MCP Server
Configuration
The server is configured via environment variables:
Variable | Default | Description |
|
| HTTP timeout in seconds per device |
| (empty) | Per-device auth: |
Running
With uv (development)
uv run shelly-local-mcpDirectly from GitHub (no clone needed)
uv run --with git+https://github.com/daniel-k/shelly-local-mcp shelly-local-mcpClaude Code integration
Add to your MCP config (e.g. ~/.claude/settings.json or .claude/settings.json):
From GitHub (no local checkout)
{
"mcpServers": {
"shelly": {
"command": "uv",
"args": ["run", "--with", "git+https://github.com/daniel-k/shelly-local-mcp", "shelly-local-mcp"],
"env": {
"SHELLY_PASSWORDS": "192.168.1.100=mypass,192.168.1.101=otherpass"
}
}
}
}From a local checkout
{
"mcpServers": {
"shelly": {
"command": "uv",
"args": ["run", "--directory", "/path/to/shelly-local-mcp", "shelly-local-mcp"],
"env": {
"SHELLY_PASSWORDS": "192.168.1.100=mypass,192.168.1.101=otherpass"
}
}
}
}Leave SHELLY_PASSWORDS empty if none of your devices have authentication enabled.
Available tools
Tool | Description |
| Find Shelly devices via mDNS and/or IP range scanning. Targets support single IPs, ranges ( |
| Get detailed info for a device: identity, firmware, WiFi/cloud/MQTT status, uptime, components, and update availability. |
Development
Install dev dependencies:
uv syncRun all checks:
uv run toxFormat code:
uv run ruff format src/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
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Find MCP servers for ESP32, Arduino, 3D printers, Home Assistant, cameras and other hardware.
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
Free, read-only security scanner for remote MCP servers, before you connect them.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables control and monitoring of Home Assistant smart home devices through MCP protocol. Automatically manages authentication tokens and provides simplified tools for device discovery, switch control, and light brightness adjustment.MIT
- FlicenseNot gradedqualityDmaintenanceEnables discovery and control of Switcher KIS devices locally via MCP, including turning on/off and retrieving device state without cloud dependency.1-
- AlicenseAqualityDmaintenanceEnables AI agents to discover, monitor, and control industrial hardware like ESP32 machine controllers and inspection cameras through a standardized MCP interface.5MIT
- AlicenseAqualityBmaintenanceMCP server for the entire Shelly smart-home ecosystem, enabling local-first control, automation, and energy monitoring of Shelly devices with cloud fallback.4732 PyPI2MIT