Hue MCP
by mattiloh
README.md
# Hue MCP
Control your Philips Hue lights from Claude using the Model Context Protocol.
<img src="assets/scenes-ui.png" alt="Scenes UI" width="600" />
## Install
Download the latest [hue.mcpb](https://github.com/mattiloh/hue-mcp/releases/latest) and open it with Claude Desktop. Then start a new chat and ask Claude to set up your Hue bridge connection.
## What You Can Do With It
- **List your lights** — See all your Hue lights grouped by room, with their current state, brightness, and color
- **Control your lights** — Turn lights on/off, adjust brightness, set colors or color temperatures
- **Browse your scenes** — View all saved scenes with their palette colors and speed settings
- **Activate scenes** — Enable any scene, optionally with dynamic palette cycling
- **Adjust scenes** — Edit a scene's name, palette colors, or cycling speed
- **Create new scenes with AI** — Describe a mood or aesthetic and let Claude design a custom scene with palette colors, then fine-tune it in the interactive editor
## Features
- **Light control** — List, toggle, and adjust brightness/color of individual lights or all at once
- **Scene management** — Browse, create, edit, and activate Hue scenes with dynamic palette cycling
- **Bridge setup** — Discover and pair your Hue bridge directly from Claude
- **Interactive UI** — Rich inline panels for lights, scenes, and scene editing rendered inside Claude's chat
## MCP Tools
| Tool | Description |
|------|-------------|
| `setup_bridge` | Discover and pair your Hue bridge |
| `discover_bridge` | Find a Hue bridge on the local network |
| `pair_bridge` | Pair with a bridge (press the button first) |
| `list_lights` | List all lights with state, brightness, color, and room |
| `set_lights` | Set state of one or more lights (on/off, brightness, color, temperature) |
| `toggle_all_lights` | Turn all lights on or off |
| `list_scenes` | List scenes with palette colors, optionally filtered by room |
| `create_scene` | Create a new scene with light states, palette, and speed |
| `update_scene` | Update a scene's name, palette, or speed |
| `activate_scene` | Activate a scene, optionally with dynamic palette cycling |
| `delete_scene` | Delete a scene |
## Known Limitations
- **Color picker accuracy** — The color picker in the scene editor is not very accurate due to the mapping from RGB to the Hue bridge's xy color space. Colors may appear slightly different on your lights than what you see in the UI.
## Development
### Prerequisites
- [Node.js](https://nodejs.org/) v22+
- [pnpm](https://pnpm.io/) v9+
- A Philips Hue Bridge on your local network
### Setup
```sh
pnpm install
pnpm --filter @hue-mcp/shared build
pnpm --filter @hue-mcp/server build
```
### Dev mode
```sh
pnpm dev:server # MCP server with stdio
pnpm dev:ui # UI with Vite HMR
```
### Build the MCPB bundle
```sh
pnpm --filter @hue-mcp/server bundle
```
Produces `packages/mcp-server/hue.mcpb`.
### Manual Claude Desktop config
If you prefer not to use the `.mcpb` bundle, add the server manually:
```json
{
"mcpServers": {
"hue": {
"command": "node",
"args": ["/absolute/path/to/hue-mcp/packages/mcp-server/dist/index.js"]
}
}
}
```
### Project structure
```
packages/
shared/ — Types and config file management (~/.hue-mcp/config.json)
mcp-server/ — MCP server (stdio) and interactive UI (React)
```
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues