LAN-first, cloud-fallback MCP server for Govee smart lights and devices.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A LAN-first, cloud-fallback Model Context Protocol (MCP) server for Govee smart devices. Point an AI agent, or any MCP client, at your Govee lights, plugs, and appliances and control them by name.
It is built to run on a home network. It prefers local LAN control for lights (fast, no internet, no rate limits) and falls back to Govee's cloud API for plugs, appliances, and anything not reachable on the LAN.
This is a v0 that works for me on my own network. It is shared in the spirit of "here is something that works with an agent on my home network, have it, make it yours, and harden it as you please." It is not a supported product. Issues and pull requests are welcome, but treat it as a starting point rather than a finished appliance.
These are deliberately left as room to grow.
The existing Govee MCP servers are thin: one is cloud-only and controls a single hardcoded device with three tools; another is LAN-only and lights-only. This one does multi-device discovery, both transports with automatic selection, state read-back, and cloud rate-limit handling.
From source:
This installs a govee-mcp command. To run without installing:
Copy .env.example to .env and fill in what you need, or set the variables in your MCP client config.
| Variable | Default | Purpose |
|---|---|---|
GOVEE_API_KEY | (none) | Cloud API key. Without it, the server runs LAN-only. |
GOVEE_PREFER_LAN | true | Prefer LAN over cloud when a device is reachable both ways. |
GOVEE_LAN_ENABLED | true | Enable the LAN transport. |
GOVEE_CLOUD_ENABLED | true | Enable the cloud transport (also needs an API key). |
GOVEE_LAN_SCAN_IPS | (none) | Comma-separated device IPs to scan directly when multicast is flaky. |
GOVEE_LAN_DISCOVERY_TIMEOUT | 2 | Seconds to wait for LAN discovery replies. |
GOVEE_REQUEST_TIMEOUT | 10 | Cloud HTTP timeout in seconds. |
GOVEE_DEVICE_CACHE_TTL | 86400 | Seconds to cache the device list before re-discovering. Run govee refresh to update sooner. |
GOVEE_CACHE_ENABLED | true | Cache the device list on disk so most commands skip discovery. |
GOVEE_CACHE_PATH | ~/.cache/govee-mcp/devices.json | Where the on-disk device cache is written. |
A small CLI ships alongside the server and uses the same engine, so it is the fastest way to confirm things work before wiring up an MCP client. Start with doctor.
Run govee help, or just govee with no arguments, for the command reference. doctor reports whether your key loaded, how many devices are on your cloud account, and how many answered on the LAN, with a hint for whatever is missing. If govee is not on your PATH, use python3 -m govee_mcp.cli ... instead.
Any device name in the control commands can also be a group name. Define a group with govee group "Living Room" "Bulb 1" "Bulb 2", then govee on "Living Room", govee color "Living Room" 255 0 0, or govee state "Living Room" apply to every device in it. Groups are stored in ~/.config/govee-mcp/groups.json (override with GOVEE_GROUPS_PATH).
govee devices is instant: it lists devices from the cache and makes no live calls. govee refresh re-scans your devices and then prints the live state of all of them. govee state (with or without a name) is always a live read.
Claude Desktop (claude_desktop_config.json), installed command:
Running from source instead:
Hermes Agent has a native MCP client, so this server drops in. Once it is in the Hermes catalog, install it by name:
To wire it manually, add it under mcp_servers in your Hermes config and put GOVEE_API_KEY in your Hermes .env (the server process inherits it):
If govee-mcp is not on the launch PATH, use its absolute path or python3 -m govee_mcp. A Hermes catalog manifest is included at hermes/manifest.yaml.
list_devices(): discovered devices with names, supported actions, and transports. Call this first.list_groups(): device groups and their members.create_group(name, devices): create or replace a group.delete_group(name): delete a group.get_device_state(name): current power, brightness, and color.refresh(): re-scan devices and return the live state of all of them.set_power(name, on): turn on or off.set_brightness(name, level): 0 to 100.set_color(name, red, green, blue): each channel 0 to 255.set_color_temp(name, kelvin): roughly 2000 (warm) to 9000 (cool).list_scenes(name): the dynamic scenes (preset effects) a device supports.set_scene(name, scene): apply a scene by name. Call list_scenes first to get valid names.Every control tool's name can be a single device or a group name (see list_groups); a group applies the action to all its members.
Scenes (the "patterns": Sunrise, Aurora, and so on) are cloud-only and differ per device, so they need an API key and are fetched live from each device rather than hardcoded. The other actions work over both transports. Each control tool returns a structured result. A change is only real when the tool returns ok=true; the tool descriptions instruct the model not to claim a change happened without a successful call.
On each action the registry picks a transport:
Set GOVEE_PREFER_LAN=false to always use the cloud, or disable a transport entirely with GOVEE_LAN_ENABLED=false or GOVEE_CLOUD_ENABLED=false.
Govee's cloud Developer API is free but, per Govee, for non-commercial use only. You may not use it for profit-making purposes or charge anyone for an implementation built on it. That restriction is on the cloud service and applies to whoever supplies the key, not to this code. Personal home use and sharing this project for free are both fine. Do not build a paid product on the free key without arranging commercial terms with Govee. See Govee's API service terms: https://app-h5.govee.com/common/api-service-item
You do not always need a key:
GOVEE_CLOUD_ENABLED=false.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/govee)<a href="https://allmcps.com/mcp/govee"><img src="https://allmcps.com/api/badge/govee?style=directory" alt="Govee on AllMCPs" /></a>