mcp-philips-hue
v1.0.0
Published
MCP server for Philips Hue smart lighting control
Maintainers
Readme
mcp-philips-hue
An MCP (Model Context Protocol) server for controlling Philips Hue smart lights.
Features
- get_lights - List all lights connected to your Hue Bridge
- set_brightness - Adjust brightness (0-254) for individual or all lights
- set_color - Change colors using hex codes, color names, or color temperature
- toggle_light - Turn lights on or off
Prerequisites
- Node.js 18+
- Philips Hue Bridge on your local network
- Hue API key (see setup below)
Getting Your Hue API Key
- Find your bridge IP at https://discovery.meethue.com/
- Navigate to
http://<bridge-ip>/debug/clip.html - Press the link button on your Hue Bridge
- Within 30 seconds, POST to
/apiwith body:{"devicetype":"mcp-server#user"} - Copy the
usernamefrom the response - this is your API key
Installation
From npm (Recommended)
npx mcp-philips-hueFrom Source
git clone https://github.com/m2ai-mcp-servers/mcp-philips-hue.git
cd mcp-philips-hue
npm install
npm run buildConfiguration
Environment Variables
export HUE_BRIDGE_IP=192.168.1.x
export HUE_API_KEY=your-api-key-hereClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"philips-hue": {
"command": "npx",
"args": ["-y", "mcp-philips-hue"],
"env": {
"HUE_BRIDGE_IP": "192.168.1.x",
"HUE_API_KEY": "your-api-key-here"
}
}
}
}Usage Examples
List all lights
get_lightsSet brightness
set_brightness light_id="1" brightness=200
set_brightness light_id="all" brightness=100Set color
# Using hex color
set_color light_id="1" color="#FF0000"
# Using color name
set_color light_id="1" color="blue"
# Using color temperature
set_color light_id="1" color="warm"
set_color light_id="all" color="2700K"Toggle lights
toggle_light light_id="1" state=true
toggle_light light_id="all" state=falseColor Options
Named Colors
red, green, blue, yellow, orange, purple, pink, white, cyan, magenta
Color Temperature
warm(2200K)soft(2500K)neutral(3500K)cool(5000K)daylight(6500K)- Or specify Kelvin directly:
2700K,4000K, etc.
Development
# Watch mode
npm run dev
# Run tests
npm test
# Build
npm run buildTesting
npm testLicense
MIT
Built autonomously by GRIMLOCK - Autonomous MCP Server Factory
