Hue Lights MCP

MCPAI代理

提供方 未标注

AI代理 HTTP · 远程 未标注 社区 / 第三方
查看接入方式

全面解析Hue LightsMCP Server的核心功能、安装配置和实用案例。作为顶级Model Context Protocol服务器,Hue Lights能让AI助手访问实时数据、执行操作,为您提供更智能的工作体验和自动化解决方案。

一句话选型结论

按资料字段整理

Hue Lights MCP 属于AI代理类 MCP 服务器,HTTP · 远程,鉴权方式未标注,有可直接复制的远程端点配置。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式HTTP · 远程 鉴权未标注 部署方式远程部署
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

安装与配置

HTTP · 远程 未标注
连远程 HTTPS 端点,通常为 Streamable HTTP
pip install phue mcp`。

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • 远程端点依赖网络与服务方可用性,注意密钥与调用额度。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Hue Lights MCP当前 未标注 HTTP · 远程 远程部署 有 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方未标注上游标注的维护方 未标注
分类AI代理本站按上游分类展示
连接方式HTTP · 远程连远程 HTTPS 端点,通常为 Streamable HTTP
鉴权方式未标注远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Python本地安装时用到的包标识与运行时
部署类型远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

11.0 KB
来自项目仓库与上游目录的原文,未做删改

Philips Hue MCP Server

A powerful Model Context Protocol (MCP) interface for controlling Philips Hue smart lighting systems. Enable AI assistants like Claude to control your lights using natural language.

Table of Contents

  • Philips Hue MCP Server
  • Table of Contents
  • Overview
  • Features
  • Quick Start
  • Setup
    • Prerequisites
    • Installation
    • First Run
  • Using with Claude
    • Install in Claude Desktop
    • Manual Configuration
    • Test with MCP Inspector
  • API Reference
    • Resources
    • Tools
    • Prompts
  • Examples
    • Controlling Single Lights
    • Working with Groups
    • Creating Scenes
  • Advanced Options
    • Command Line Arguments
    • Development Mode
  • Troubleshooting
  • How It Works
  • Contributing
    • Project Structure
    • Development
  • License

Overview

This server leverages the Model Context Protocol (MCP) to provide a seamless integration between AI assistants like Claude and your Philips Hue lighting system. With it, you can control your smart lights using natural language, access detailed lighting information, and create advanced lighting setups through a standardized AI-friendly interface.

Features

  • Complete Light Control: Turn on/off, adjust brightness, change colors, set color temperature
  • Comprehensive Group Management: Control multiple lights together, create custom groups
  • Scene Handling: Apply existing scenes, create quick custom lighting scenes
  • Activity-Based Presets: Ready-made settings for reading, relaxation, concentration, and more
  • Special Effects: Access dynamic lighting effects like color loops
  • Natural Language Control: Specialized prompts for lighting control through conversation
  • Secure Local Integration: Connects directly to your Hue bridge on your local network

Quick Start```bash

Install dependencies using uv (recommended)

uv sync

Test with MCP Inspector

uv run mcp dev hue_server.py

Install in Claude Desktop

uv run mcp install hue_server.py --name "Philips Hue"


Then in Claude, start with: "I'd like to control my Philips Hue lights. Can you show me which lights I have available?"

## Setup

### Prerequisites

- Python 3.10 or higher
- uv package manager (recommended)
- A Philips Hue bridge on your local network
- Philips Hue lights paired with your bridge

### Installation

**Using uv (recommended):**```bash
# Clone the repository
git clone https://github.com/ThomasRohde/hue-mcp.git
cd hue-mcp

# Install dependencies and create virtual environment automatically
uv sync

# Activate the virtual environment (optional, uv run handles this automatically)
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

Using pip:```bash

Clone the repository

git clone https://github.com/ThomasRohde/hue-mcp.git
cd hue-mcp

Create and activate a virtual environment

python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate

Install dependencies

pip install -e ".[dev]"


### First Run

1. Test the server with the MCP Inspector:```bash
uv run mcp dev hue_server.py
  1. When prompted, press the link button on your Hue bridge to authorize the connection
  2. Your connection details will be saved in ~/.hue-mcp/config.json for future use

Using with Claude

Install in Claude Desktop

The easiest way to use this server with Claude Desktop:```bash

Install with default name

uv run mcp install hue_server.py

Or with custom name

uv run mcp install hue_server.py --name "Philips Hue Controller"

With environment variables if needed

uv run mcp install hue_server.py --name "Hue" -v DEBUG=1


### Manual Configuration

Alternatively, you can manually configure Claude Desktop by editing the configuration file:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`

**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

Add the following configuration:

**macOS:**```json
{
  "mcpServers": {
    "hue": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/username/Projects/hue-mcp",
        "run",
        "hue_server.py"
      ]
    }
  }
}

Windows:```json
{
"mcpServers": {
"hue": {
"command": "uv",
"args": [
"--directory",
"c:\Users\username\Projects\hue-mcp",
"run",
"hue_server.py"
]
}
}
}


Replace `/Users/username/Projects/hue-mcp` (macOS) or `c:\\Users\\username\\Projects\\hue-mcp` (Windows) with the actual path to your cloned repository. The `--directory` flag ensures `uv` runs in the correct project directory and can find the dependencies defined in `pyproject.toml`.

After updating the configuration, restart Claude Desktop for the changes to take effect.

### Test with MCP Inspector

For development and testing, use the MCP Inspector:```bash
uv run mcp dev hue_server.py

# With additional dependencies
uv run mcp dev hue_server.py --with pandas

# With debug logging
uv run mcp dev hue_server.py --log-level debug

API Reference

Resources

Resource Description
hue://lights Information about all lights
hue://lights/{light_id} Detailed information about a specific light
hue://groups Information about all light groups
hue://groups/{group_id} Information about a specific group
hue://scenes Information about all scenes

Tools

Tool Description
get_all_lights Get information about all lights
get_light Get detailed information about a specific light
get_all_groups Get information about all light groups
get_group Get information about a specific group
get_all_scenes Get information about all scenes
turn_on_light Turn on a specific light
turn_off_light Turn off a specific light
set_brightness Adjust light brightness (0-254)
set_color_rgb Set light color using RGB values
set_color_temperature Set light color temperature (2000-6500K)
turn_on_group Turn on all lights in a group
turn_off_group Turn off all lights in a group
set_group_brightness Adjust group brightness (0-254)
set_group_color_rgb Set color for all lights in a group
set_scene Apply a scene to a group
find_light_by_name Search for lights by name
create_group Create a new light group
quick_scene Apply custom settings to create a scene
refresh_lights Update light information cache
set_color_preset Apply a color preset to a light
set_group_color_preset Apply a color preset to a group
alert_light Make a light flash briefly
set_light_effect Set dynamic effects like color loops

Prompts

Prompt Description
control_lights Natural language light control
create_mood Setup mood lighting for activities
light_schedule Learn about scheduling options

Examples

Controlling Single Lights```python

Turn on a light

turn_on_light(1)

Set a light to 50% brightness

set_brightness(1, 127)

Change a light color to purple

set_color_rgb(1, 128, 0, 128)

Set reading mode

set_color_preset(1, "reading")


### Working with Groups```python
# Turn off all lights in living room (group 2)
turn_off_group(2)

# Create a new group
create_group("Bedroom", [3, 4, 5])

# Set all kitchen lights to energizing mode
set_group_color_preset(3, "energize")

Creating Scenes```python

Apply an existing scene

set_scene(2, "abc123") # Group 2, scene ID abc123

Create a quick relaxing scene for the living room

quick_scene("Evening Relaxation", group_id=2, rgb=[255, 147, 41], brightness=120)


## Advanced Options

### Command Line Arguments

The server supports the following command line arguments when run directly:```bash
# Run with stdio transport (default, for MCP clients)
python hue_server.py

# Run with custom host and port (HTTP/SSE mode)
python hue_server.py --sse --host 0.0.0.0 --port 8888

# Enable debug logging
python hue_server.py --log-level debug

# Show all available options
python hue_server.py --help
Argument Description Default
--host Host to bind the server to (SSE mode only) 127.0.0.1
--port Port to run the server on (SSE mode only) 8080
--log-level Logging level (debug, info, warning, error, critical) info
--sse Run server using SSE transport instead of stdio False

Development Mode

When developing or testing:```bash

Use MCP dev command for automatic reloading

uv run mcp dev hue_server.py --log-level debug

Or run directly with uv (stdio is default)

uv run python hue_server.py --log-level debug


## Troubleshooting

- **Bridge not found**: If automatic discovery doesn't work, you have two options:
  1. Manually edit the `BRIDGE_IP` variable in the script with your bridge's IP address
  2. Manually create a config file:```bash
     # Create the config directory
     mkdir -p ~/.hue-mcp

     # Create a config.json file with your bridge IP
     echo '{"bridge_ip": "192.168.1.x"}' > ~/.hue-mcp/config.json
     ```
     Replace "192.168.1.x" with your actual Hue bridge IP address

- **Connection issues**: Delete `~/.hue-mcp/config.json` and restart the server to re-authenticate
- **Light control not working**: Use `refresh_lights` tool to update the light information cache
- **Groups or scenes not showing up**: Restart the bridge and server to sync all data

## How It Works

This server connects to your Philips Hue bridge using the `phue` Python library and exposes functionality through the Model Context Protocol. When an AI like Claude connects:

1. The server authenticates with your bridge using stored credentials
2. It provides resources that describe your lighting setup
3. It exposes tools that Claude can use to control your lights
4. It offers prompts that help Claude understand how to interact with your lights

All communication with your Hue system happens locally within your network for security and privacy.

## Contributing

We are passionate about supporting contributors of all levels of experience and would love to see you get involved in the project. See the contributing guide to get started.

### Project Structure```
hue-mcp/
├── hue_server.py       # Main MCP server implementation
├── pyproject.toml      # Project configuration and dependencies
├── README.md           # This file
├── CONTRIBUTING.md     # Contribution guidelines
├── CHANGELOG.md        # Version history
├── LICENSE             # MIT License
├── tests/              # Test suite
│   ├── __init__.py
│   └── test_hue_server.py
└── .venv/              # Virtual environment (created during setup)

Development```bash

Install development dependencies

uv sync

Run tests

uv run pytest

Format code

uv run ruff check --fix hue_server.py

Type check

uv run mypy hue_server.py

Test with MCP Inspector

uv run mcp dev hue_server.py --log-level debug
```

License

This project is available under the MIT license. See LICENSE for details.

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
Hue Lights MCP 怎么安装?

在客户端按下面的安装命令接入:pip install phue mcp`。。装完在客户端配置里引用同一个包或端点。

Hue Lights MCP 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Hue Lights MCP 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Hue Lights MCP 需要 API Key 吗?

资料没有标注鉴权方式,是否需要密钥取决于服务本身,接入前按官方文档确认。

Hue Lights MCP 能提供哪些能力?

资料显示能力标签包括 Python、自然语言交互、AI代理。具体工具清单以官方文档为准。

Hue Lights MCP 需要什么运行环境?

运行时为 Python;属于远程端点,不需要在本地装运行时。

Hue Lights MCP 是本地还是远程?

它是远程端点,连服务地址即可。传输方式为HTTP · 远程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。