Skip to main content
Glama

Govee MCP Server

by mathd

Govee MCP Server

Ein MCP-Server zur Steuerung von Govee-LED-Geräten über die Govee-API.

Aufstellen

Umgebungsvariablen

Erstellen Sie im Stammverzeichnis eine .env Datei mit den folgenden Variablen:

GOVEE_API_KEY=your_api_key_here GOVEE_DEVICE_ID=your_device_id_here GOVEE_SKU=your_device_sku_here

So erhalten Sie diese Werte:

  1. Holen Sie sich Ihren API-Schlüssel vom Govee Developer Portal
  2. Verwenden Sie die Govee Home-App, um Ihre Geräte-ID und SKU zu finden

Installation

Installation über Smithery

So installieren Sie den Govee MCP-Server für Claude Desktop automatisch über Smithery :

npx -y @smithery/cli install @mathd/govee_mcp_server --client claude

Manuelle Installation

# Install with pip pip install . # For development (includes test dependencies) pip install -e ".[test]"

Verwendung

MCP-Server

Der MCP-Server bietet Tools zur Steuerung von Govee-Geräten über das Model Context Protocol. Er kann mit Cline oder anderen MCP-Clients verwendet werden.

Verfügbare Werkzeuge:

  • turn_on_off : Schaltet die LED ein oder aus
  • set_color : Stellen Sie die LED-Farbe mit RGB-Werten ein
  • set_brightness : Stellen Sie die Helligkeitsstufe der LED ein

Befehlszeilenschnittstelle

Zur direkten Steuerung von Govee-Geräten steht eine CLI zur Verfügung:

# 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 50

Führen Sie govee-cli --help aus, um die vollständige Befehlsdokumentation zu erhalten.

Entwicklung

Ausführen von Tests

So führen Sie die Testsuite aus:

# 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/ -v

Hinweis: Die CLI-Tests führen echte API-Aufrufe an Ihr Govee-Gerät aus und steuern es tatsächlich. Stellen Sie sicher, dass Ihr Gerät eingeschaltet und verbunden ist, bevor Sie diese Tests ausführen.

Projektstruktur

. ├── 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 configuration

Testabdeckung

  • Servertests umfassen:
    • Umgebungsinitialisierung
    • Govee API-Clientmethoden
    • Servertools und -dienstprogramme
    • Fehlerbehandlung
  • CLI-Tests führen reale Integrationstests durch, indem sie tatsächliche API-Aufrufe zur Steuerung Ihres Govee-Geräts ausführen.
-
security - not tested
A
license - permissive license
-
quality - not tested

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.

Ermöglicht Benutzern die Steuerung von Govee-LED-Geräten über die Govee-API, mit Funktionen zum Ein-/Ausschalten von Geräten, Einstellen von Farben und Anpassen der Helligkeit über eine CLI oder MCP-Clients.

  1. Aufstellen
    1. Umgebungsvariablen
  2. Installation
    1. Installation über Smithery
    2. Manuelle Installation
  3. Verwendung
    1. MCP-Server
    2. Befehlszeilenschnittstelle
  4. Entwicklung
    1. Ausführen von Tests
    2. Projektstruktur
    3. Testabdeckung

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    Smart 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 -
    6
    9
    TypeScript
    Apache 2.0
    • Linux
    • Apple
  • A
    security
    A
    license
    A
    quality
    Enables control of Philips Hue lights through Claude and other LLM interfaces using the OpenHue CLI.
    Last updated -
    6
    5
    TypeScript
    MIT License
    • Apple
    • Linux
  • A
    security
    A
    license
    A
    quality
    MCP-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 -
    13
    22
    17
    TypeScript
    MIT License
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol interface that enables AI assistants like Claude to control Philips Hue smart lighting systems through natural language commands.
    Last updated -
    Python

View all related MCP servers

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