Hue BLE MCP

io.github.jonnyblankinship由 GitHub 账号 jonnyblankinship 发布v0.1.3更新于 Oct 24, 2026

Control Philips Hue lights via Bluetooth LE — no bridge required.

已验证STDIO仅桌面位置与生活

概览

AI 生成的概览

一个本地 MCP 服务器,让助手通过蓝牙低功耗控制飞利浦 Hue 灯,无需 Hue 桥接器或互联网连接。

可以做什么
扫描附近的 Hue 蓝牙灯,获取其地址以及当前开关、亮度和颜色模式。打开或关闭灯。设置亮度、白光色温或 RGB 颜色。应用放松、提神、阅读、夜灯等预设场景。
适用场景
适合想通过对话开关、调暗或改变 Hue 蓝牙灯颜色,且没有 Hue 桥接器或云端账户的场景。适用于附近有支持蓝牙的 Hue 灯的 macOS 用户。
运行要求
以 Python 包形式在本地运行(Python 3.10+),仅限 macOS,通过 bleak 使用 CoreBluetooth;不支持 Windows,Linux 未测试。需要约 10 米内支持蓝牙的 Hue 灯、Claude Desktop,可选设置 HUE_LIGHT_ADDRESS 环境变量指定默认灯。
安装前请注意
服务器直接写入灯的蓝牙控制特征,因此开关、亮度、颜色和场景命令会改变实际设备。首次配对可能需要通过 Hue 应用重置灯,且灯会与配对时使用的蓝牙适配器绑定,换一台 Mac 需重新配对。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Hue BLE MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

hue-ble-mcp

An MCP server that lets Claude control Philips Hue lights via Bluetooth LE — no Hue Bridge or internet connection required.

Just ask Claude things like:

  • "Turn off the light"
  • "Set the light to a warm reading mode"
  • "Make it a deep blue"
  • "Dim it to 20%"

Tools

ToolDescription
scan_hue_lightsDiscover nearby Hue BLE lights and get their addresses
turn_onTurn a light on
turn_offTurn a light off
set_brightnessSet brightness 1–100%
set_color_temperatureSet white color temperature (2000K warm → 6500K cool)
set_colorSet RGB color
get_light_stateRead current power, brightness, and color mode
set_sceneApply a preset: relax, energize, concentrate, reading, nightlight, bright

Requirements

  • macOS (uses CoreBluetooth via bleak)
  • Python 3.10+
  • A Philips Hue light with Bluetooth support (most lights made after 2019)
  • Claude Desktop

Installation

Option 1: pip (recommended)

bash
pip install hue-ble-mcp

Then add to your ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "hue-ble": {      "command": "hue-ble-mcp",      "env": {        "HUE_LIGHT_ADDRESS": ""      }    }  }}

Option 2: Clone and run

bash
git clone https://github.com/jonnyblankinship/hue-ble-mcp.gitcd hue-ble-mcppython3 -m venv venv./venv/bin/pip install -r requirements.txt

Then add to your claude_desktop_config.json:

json
{  "mcpServers": {    "hue-ble": {      "command": "/absolute/path/to/hue-ble-mcp/venv/bin/python",      "args": ["/absolute/path/to/hue-ble-mcp/server.py"],      "env": {        "HUE_LIGHT_ADDRESS": ""      }    }  }}

First-time setup

1. Pair your light

Hue BLE lights need to be in pairing mode the first time you connect. The easiest way is to reset the light via the Hue app (Settings → Light setup → select light → Delete), which puts it back into factory pairing mode.

After the first successful connection, macOS remembers the bond and you won't need to do this again.

2. Find your light's address

Restart Claude Desktop, then ask:

"Scan for my Hue lights"

Claude will return something like:

json
[  {    "name": "Signe gradient floor",    "address": "77577FFA-2F08-CAFD-5F3C-5C1824D8C362"  }]

On macOS, addresses are UUIDs (not MAC addresses). This is normal — CoreBluetooth assigns its own identifiers.

3. Set the default address

Paste the address into HUE_LIGHT_ADDRESS in your config and restart Claude Desktop. From then on, you don't need to specify the address in every command.

json
"env": {  "HUE_LIGHT_ADDRESS": "77577FFA-2F08-CAFD-5F3C-5C1824D8C362"}

How it works

Philips Hue lights broadcast over Bluetooth LE using a proprietary but well-documented GATT profile. This server writes directly to those GATT characteristics using bleak, bypassing the need for a Hue Bridge or the Hue cloud entirely.

Key characteristics used:

UUIDFunction
932c32bd-0002-...Power (on/off)
932c32bd-0003-...Brightness
932c32bd-0004-...Color temperature (mireds)
932c32bd-0005-...XY color (CIE 1931)

RGB colors are converted to CIE 1931 XY space using the wide RGB D65 gamut matrix before being sent to the light.

Limitations

  • macOS only — Linux should work too but is untested. Windows is not supported.
  • Bluetooth range — must be within ~10m of the light.
  • One adapter per light — the light bonds to the Bluetooth adapter used during first pairing. A different Mac won't be able to connect without re-pairing.
  • Multiple lights — supported, just call each tool with the specific address. Set HUE_LIGHT_ADDRESS to your primary light for convenience.

License

MIT

来源:README.md,提交 2289429

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分