Skip to main content
Glama

Hue MCP Server

by tebinraouf

Hue MCP Server

Control Philips Hue lights through VS Code Copilot or Claude Desktop using the Model Context Protocol (MCP).

Quick Setup

1. Prerequisites

2. Install Dependencies

uv sync

3. Configure Your Bridge IP

Edit .env file:

HUE_BRIDGE_IP=192.168.1.XXX # Replace with your bridge IP

4. First-Time Authentication

Press the physical button on your Hue Bridge, then run:

uv run python -c "from phue import Bridge; Bridge('YOUR_BRIDGE_IP')"

Usage

For VS Code Copilot

Add to your VS Code MCP configuration file (mcp.json):

Location: ~/Library/Application Support/Code/User/mcp.json (macOS)

{ "mcpServers": { "custom-hue": { "type": "stdio", "command": "uv", "args": [ "run", "--directory", "__PATH__", "python", "__PATH_TO_main.py__" ], "env": { "HUE_BRIDGE_IP": "192.168.x.x" } } } }

Note: Replace the paths with your actual project path and update HUE_BRIDGE_IP with your bridge IP.

After adding the configuration, reload VS Code and use Copilot:

  • "Turn on the corner light and set it to blue"

  • "List all my lights"

  • "Turn off all lights"

For Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{ "mcpServers": { "hue-lights": { "command": "uv", "args": ["run", "/FULL/PATH/TO/custom-hue/main.py"], "env": { "HUE_BRIDGE_IP": "192.168.1.XXX" } } } }

Available Tools

  • change_hue_light - Control individual lights (brightness, hue, saturation, on/off)

  • list_hue_lights - List all available lights on your Hue Bridge

Deploy Server
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables control of Philips Hue lights through VS Code Copilot or Claude Desktop using natural language commands. Supports turning lights on/off, adjusting brightness, changing colors, and listing available lights on your Hue Bridge.

  1. Quick Setup
    1. 1. Prerequisites
    2. 2. Install Dependencies
    3. 3. Configure Your Bridge IP
    4. 4. First-Time Authentication
  2. Usage
    1. For VS Code Copilot
    2. For Claude Desktop
  3. Available Tools

    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/tebinraouf/hue-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server