Govee MCP 服务器
通过 Govee API 控制 Govee LED 设备的 MCP 服务器。
设置
环境变量
在根目录中创建一个.env
文件,其中包含以下变量:
要获取这些值:
- 从 Govee 开发者门户获取您的 API 密钥
- 使用 Govee Home 应用查找您的设备 ID 和 SKU
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Govee MCP 服务器:
手动安装
用法
MCP 服务器
MCP 服务器提供通过模型上下文协议 (MCP) 控制 Govee 设备的工具。它可以与 Cline 或其他 MCP 客户端一起使用。
可用工具:
turn_on_off
:打开或关闭 LEDset_color
:使用 RGB 值设置 LED 颜色set_brightness
:设置 LED 亮度级别
命令行界面
提供 CLI 用于直接控制 Govee 设备:
运行govee-cli --help
获取完整的命令文档。
发展
运行测试
运行测试套件:
注意:CLI 测试会对您的 Govee 设备进行真实的 API 调用,并对其进行实际控制。在运行这些测试之前,请确保您的设备已通电并连接。
项目结构
测试覆盖率
- 服务器测试包括:
- 环境初始化
- Govee API 客户端方法
- 服务器工具和实用程序
- 错误处理
- CLI 测试通过执行实际 API 调用来控制您的 Govee 设备,从而执行真实世界的集成测试。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使用户能够使用 Govee API 控制 Govee LED 设备,并具有通过 CLI 或 MCP 客户端打开/关闭设备、设置颜色和调整亮度的功能。
Related Resources
Related MCP Servers
- -securityAlicense-qualitySmart Device Control 🎮 💡 Lights: Brightness, color, RGB 🌡️ Climate: Temperature, HVAC, humidity 🚪 Covers: Position and tilt 🔌 Switches: On/off 🚨 Sensors: State monitoring Intelligent Organization 🏠 Grouping with context awareness. Robust Architecture 🛠️ Error handling, state validation ...Last updated -69TypeScriptApache 2.0
- AsecurityAlicenseAqualityEnables control of Philips Hue lights through Claude and other LLM interfaces using the OpenHue CLI.Last updated -65TypeScriptMIT License
- AsecurityAlicenseAqualityMCP-compatible server that enables AI assistants to interact with Lightdash analytics data, providing tools to list and retrieve projects, spaces, charts, dashboards, and metrics through a standardized interface.Last updated -131717TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol interface that enables AI assistants like Claude to control Philips Hue smart lighting systems through natural language commands.Last updated -Python