Govee MCP Server
Servidor MCP de Govee
Un servidor MCP para controlar dispositivos LED de Govee a través de la API de Govee.
Configuración
Variables de entorno
Cree un archivo .env en el directorio raíz con las siguientes variables:
GOVEE_API_KEY=your_api_key_here
GOVEE_DEVICE_ID=your_device_id_here
GOVEE_SKU=your_device_sku_herePara obtener estos valores:
Obtenga su clave API desde el Portal para desarrolladores de Govee
Utilice la aplicación Govee Home para encontrar el ID y el SKU de su dispositivo
Related MCP server: ESP RainMaker MCP Server
Instalación
Instalación mediante herrería
Para instalar Govee MCP Server para Claude Desktop automáticamente a través de Smithery :
npx -y @smithery/cli install @mathd/govee_mcp_server --client claudeInstalación manual
# Install with pip
pip install .
# For development (includes test dependencies)
pip install -e ".[test]"Uso
Servidor MCP
El servidor MCP proporciona herramientas para controlar dispositivos Govee mediante el Protocolo de Contexto de Modelo. Se puede usar con Cline u otros clientes MCP.
Herramientas disponibles:
turn_on_off: Enciende o apaga el LEDset_color: Establece el color del LED usando valores RGBset_brightness: Establece el nivel de brillo del LED
Interfaz de línea de comandos
Se proporciona una CLI para el control directo de los dispositivos Govee:
# Turn device on/off
govee-cli power on
govee-cli power off
# Set color using RGB values (0-255)
govee-cli color 255 0 0 # Red
govee-cli color 0 255 0 # Green
govee-cli color 0 0 255 # Blue
# Set brightness (0-100)
govee-cli brightness 50Ejecute govee-cli --help para obtener la documentación completa del comando.
Desarrollo
Ejecución de pruebas
Para ejecutar el conjunto de pruebas:
# Install test dependencies
pip install -e ".[test]"
# Run all tests
pytest tests/
# Run specific test files
pytest tests/test_server.py # Server tests (mocked API calls)
pytest tests/test_cli.py # CLI tests (real API calls)
# Run tests with verbose output
pytest tests/ -vNota: Las pruebas CLI realizan llamadas API reales a su dispositivo Govee y lo controlarán. Asegúrese de que su dispositivo esté encendido y conectado antes de ejecutar estas pruebas.
Estructura del proyecto
.
├── src/govee_mcp_server/
│ ├── __init__.py
│ ├── server.py # MCP server implementation
│ └── cli.py # Command-line interface
├── tests/
│ ├── test_server.py # Server tests (with mocked API)
│ └── test_cli.py # CLI tests (real API calls)
└── pyproject.toml # Project configurationCobertura de la prueba
Las pruebas del servidor cubren:
Inicialización del entorno
Métodos de cliente de la API de Govee
Herramientas y utilidades de servidor
Manejo de errores
Las pruebas CLI realizan pruebas de integración en el mundo real ejecutando llamadas API reales para controlar su dispositivo Govee.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables 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
- AlicenseAqualityFmaintenanceEnables MCP-compatible clients to interact with ESP RainMaker devices for node management, parameter control, scheduling, and group management via the official CLI.1317Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI assistants to control Govee smart devices, including lights, via natural language. Supports turning on/off, changing colors, adjusting brightness, and activating scenes through the Govee API or local network.91MIT
- AlicenseAqualityCmaintenanceMCP server for controlling Elgato Key Lights. Enables turning lights on/off, adjusting brightness and color temperature, applying presets, and triggering effects via Claude.13Apache 2.0
Related MCP Connectors
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
ClickUp MCP — wraps the ClickUp REST API v2 (BYO API key)
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mathd/govee_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server