MCP server

MCP server

govee-toolkit-mcp is a local MCP server. Your assistant reads the device catalog through it and drives your lights over LAN, BLE and CLOUD, with the same configuration as the govee command.

What you need

  • An assistant installed on your computer that accepts MCP servers.
  • For control, the config.yaml that Configure describes. The read tools work as soon as the server starts.

Add the server

Pick your assistant. Each one starts the server under the name govee.

$ claude mcp add govee -- npx -y govee-toolkit-mcp@latest

Point it at your configuration

The server reads two variables:

  • GOVEE_CONFIG names your config.yaml. The default is config.yaml in the configuration folder.
  • GOVEE_API_KEY is the API key that CLOUD needs.

Give them to your assistant:

$ claude mcp add govee -e GOVEE_CONFIG=/home/me/govee.yaml -- npx -y govee-toolkit-mcp@latest

Write GOVEE_CONFIG as an absolute path: the client picks the working directory. The client keeps its env block in plain text, so put the API key in credentials.env in the configuration folder instead.

What the assistant can do

Read tools answer from the catalog that ships with the server, on your machine.

Tool Returns
list_models One row per model, with the support of each mode
describe_model The full record of one model, with its DMX tables
get_dmx_profile The DMX channel tables of one model
get_api The methods that serve each role, in each language
read_doc One page of the documentation

Control tools drive the lights. The SDK starts on the first call, and frees the network port 30 seconds after the last one, so the govee command can scan in between.

Tool Does
scan Finds the devices on your network
list_known Lists the devices found, with the health of each mode
status Reads the state of a device
set Sets power, brightness, color, white temperature, a segment, a gradient, music mode or a scene
send Sends one command that the device file declares
stream Plays frames on the segments of one or more devices over Wi-Fi, then gives back their colors
identify Lights the devices one by one, so you see which is which
doctor Lists the problems in your configuration

A target is a device, a group from Names and groups, or every device of one model.

Modes stay explicit

mode pins a call to one mode, which the device must enable. Otherwise, the order in your config.yaml applies. A call that fails returns the error code of the SDK, such as mode_not_enabled, and stays on the mode it used.

To put a device on your Wi-Fi, use the govee command or a binding. The Wi-Fi password then stays between you and the device.