Govee MCP 服务器
用于通过 Govee API 控制 LED 设备的 MCP 服务器。
快速入门
环境配置
在项目根目录创建 .env
文件,添加以下变量:
GOVEE_API_KEY=your_api_key_here
GOVEE_DEVICE_ID=your_device_id_here
GOVEE_SKU=your_device_sku_here
从 Govee 开发者门户获取 API 密钥,使用 Govee Home 应用找到设备 ID 和 SKU。
安装
使用 Smithery 自动安装:
npx -y @smithery/cli install @mathd/govee_mcp_server --client claude
或手动安装:
pip install .
开发模式安装:
pip install -e ".[test]"
使用
运行 CLI 控制设备:
govee-cli power on
govee-cli color 255 0 0
govee-cli brightness 50
测试
运行测试套件:
pytest tests/