Enables natural language control of Philips Hue smart lighting systems, allowing users to search for lights, control individual lights or entire rooms/zones, activate scenes, adjust colors and brightness, and manage lighting configurations through their local network.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hue MCP Serverset the living room lights to a cozy warm glow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hue MCP Server
A Model Context Protocol (MCP) server for controlling Philips Hue lighting systems through AI assistants like Claude.
Features
Multi-Bridge Support: Control multiple Hue bridges simultaneously
Real-Time Sync: SSE-based synchronization keeps state updated in real-time
Cached Responses: Instant responses through intelligent caching layer
Comprehensive Tools: Control lights, rooms, scenes, and bridges
Smart Prompts: AI-assisted lighting suggestions and scene creation
Resources: Access bridge status and device inventory
Related MCP server: Hass-MCP
Architecture
Installation
Prerequisites
Go 1.25.6 or later
Philips Hue Bridge Pro with API access
Bridge IP address and application key
Building
Configuration
The server looks for configuration in ~/.config/hue-mcp/config.json (or $XDG_CONFIG_HOME/hue-mcp/config.json).
Configuration File Structure
Getting Your Application Key
If you don't have an application key, you can generate one using the Hue SDK:
Claude Desktop Integration
Add the following to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Restart Claude Desktop to load the MCP server.
Available Tools
Setup & Discovery
discover_bridges- Find Hue bridges on your network (N-UPnP via discovery.meethue.com)authenticate_bridge- Authenticate with bridge (link button press required)add_bridge- Add authenticated bridge to configurationremove_bridge- Remove bridge from configurationget_config_path- Get configuration file location
Bridge Management
list_bridges- List all configured Hue bridgesget_bridge_info- Get detailed bridge information
Light Control
list_lights- List all lights across bridgesget_light- Get detailed light informationcontrol_light- Comprehensive single light control:On/off, brightness (0-100%)
RGB colors via XY coordinates
Color temperature (white spectrum, 153-500 mirek)
Effects (candle, fire, prism, sparkle, opal, glisten, underwater, cosmos, sunbeam, enchant)
Timed effects (sunrise, sunset with duration)
Alert effects (breathe)
Gradient support for lightstrips
control_lights- Control multiple lights in one call:Each light can have unique color, brightness, and effects
Perfect for: "set room to rainbow" or "varying shades of blue"
Room Management
list_rooms- List all roomsget_room- Get detailed room information
Grouped Light Control
list_grouped_lights- List all grouped lights (rooms and zones)get_grouped_light- Get detailed information about a grouped lightcontrol_room_lights- Control all lights in a room/zone simultaneously:Single API call controls all lights with same settings
On/off, brightness, RGB colors, color temperature, alerts
Perfect for: "turn off all bedroom lights" or "set living room to warm white"
Scene Management
list_scenes- List all scenesget_scene- Get detailed scene informationactivate_scene- Activate (recall) a scene:Optional brightness override (0-100%)
Optional transition duration (0-6000000ms)
Applies scene's lighting configuration to all lights
Cache Management
warm_cache- Manually populate/refresh cache for instant accesscache_stats- View cache statistics (hit rate, entries, SSE sync status)
Available Resources
Resources provide read-only access to bridge data:
bridges://status- Status of all configured bridgesbridges://devices- Complete device inventorybridges://rooms- All rooms across bridgesbridges://scenes- All scenes across bridges
Available Prompts
Prompts provide AI-assisted interactions:
smart-lighting- Get lighting suggestions based on activitycreate-scene- Interactive scene creation assistantenergy-insights- Energy usage analysis and optimization
Example Usage
Once connected to Claude Desktop, you can interact with your lights naturally:
Cache Configuration
The cache layer provides:
File Backend: Persistent cache across restarts
Auto-Save: Automatic cache persistence every 30 seconds
Warm on Startup: Pre-loads cache for instant first access
SSE Sync: Real-time updates from bridge via Server-Sent Events
Cache files are stored in ~/.cache/hue-mcp/ by default.
Development
Project Structure
Dependencies
github.com/mark3labs/mcp-go- MCP SDK for Gogithub.com/rmrfslashbin/hue-sdk- Base Hue API SDKgithub.com/rmrfslashbin/hue-cache- Caching layer with SSE sync
Troubleshooting
Bridge Connection Issues
Verify bridge IP address is correct
Ensure application key is valid
Check network connectivity to bridge
Review logs in
~/.config/hue-mcp/logs/
Cache Issues
Delete cache files:
rm -rf ~/.cache/hue-mcp/Restart the MCP server
Verify SSE endpoint is accessible
Claude Desktop Not Detecting Server
Verify server builds successfully:
go build -o hue-mcp main.goCheck configuration path in
claude_desktop_config.jsonRestart Claude Desktop after configuration changes
Check Claude Desktop developer console for errors
License
[Add license information]
Contributing
[Add contribution guidelines]