Philips Hue MCP Service
Controls Philips Hue lights, including turning lights on/off, setting brightness, and adjusting color via hue/saturation or CIE xy coordinates, and provides light and bridge status information.
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., "@Philips Hue MCP ServiceTurn on light 1"
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.
Philips Hue MCP Service
A FastMCP service that provides tools and resources for controlling Philips Hue lights through the Model Context Protocol.
Installation
Install dependencies:
pip install fastmcp qhue requestsOr install from the project directory:
pip install -e .Related MCP server: Hue MCP Server
Setup
1. Find your Hue Bridge IP
Open the Philips Hue app on your phone
Go to Settings > My Hue System > [Your Bridge Name]
Note the IP address
2. Create a Username/API Key
You need to create a username (API key) for your bridge:
Press the physical button on your Hue bridge
Within 30 seconds, run this Python script:
import requests
import json
bridge_ip = "192.168.1.123" # Replace with your bridge IP
response = requests.post(f"http://{bridge_ip}/api",
json={"devicetype": "hue_mcp_service#user"})
print(json.dumps(response.json(), indent=2))Save the returned username/API key
Usage
Running the Service
python hue_mcp_service.pyAvailable Tools
connect_to_bridge(bridge_ip, username)- Connect to your Hue bridgeturn_light_on(light_id)- Turn on a specific lightturn_light_off(light_id)- Turn off a specific lightset_light_brightness(light_id, brightness)- Set brightness (0-254)set_light_color(light_id, hue, saturation)- Set color using hue/saturation valuesset_light_xy_color(light_id, x, y)- Set color using CIE xy coordinates
Available Resources
lights- Get information about all lightslight/{light_id}- Get detailed information about a specific lightbridge-status- Get current bridge connection status
Example Usage
First, connect to your bridge:
connect_to_bridge("192.168.1.123", "your-username-here")Then control your lights:
# Turn on light 1
turn_light_on("1")
# Set brightness to 50%
set_light_brightness("1", 127)
# Set to red color
set_light_color("1", 0, 254)Color Values
Hue and Saturation
Hue: 0-65535 (color wheel position)
0: Red
10922: Yellow
21845: Green
32768: Cyan
43690: Blue
54613: Magenta
Saturation: 0-254 (color intensity, 0=white, 254=full color)
CIE xy Coordinates
x, y: 0.0-1.0 (precise color specification in CIE color space)
Common colors:
Red: (0.675, 0.322)
Green: (0.4091, 0.518)
Blue: (0.167, 0.04)
White: (0.3127, 0.329)
Requirements
Python 3.8+
FastMCP 2.0+
qhue 2.0+
requests 2.25+
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol interface that enables AI assistants like Claude to control Philips Hue smart lighting systems through natural language commands.Last updated27MIT
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI assistants to control Philips Hue smart lighting systems through natural language commands.Last updated3MIT
- Flicense-qualityDmaintenanceEnables AI assistants to control Philips Hue smart lighting systems, including individual lights, groups, scenes, brightness, and color adjustments through natural language commands.Last updated
- AlicenseAqualityDmaintenanceEnables discovery and control of Philips Hue lighting devices via a local bridge using the CLIP v2 API, without any cloud dependency.Last updated10MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/plwp/hue-mcp-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server