Описание
Hue Control for Humans & AIs
README
A robust tool for Philips Hue, written in Go. It operates in two modes:
- CLI Mode: Directly control your lights from the command line.
- MCP Mode: A Model Context Protocol (MCP) server for AI assistants (like Gemini, Claude, LMStudio) to interact with your Hue system.
Features
- Modern API: Built on the Philips Hue V2 API for improved reliability and performance.
- Auto-Discovery: Automatic detection of Hue Bridges on your local network using mDNS.
- Robust Authentication: Simple "link button" pairing flow with persistent configuration.
- Dual Mode: CLI for humans, MCP for AI.
- Type-Safe: Leverages Go's strong typing and the official MCP Go SDK.
Installation
Prerequisites
- Go 1.26+
- A Philips Hue Bridge on your local network.
Go Install
go install github.com/loafoe/hue-control/cmd/hue-control@latest
This installs the hue-control binary to your $GOPATH/bin (or $HOME/go/bin by default).
Build from Source
git clone https://github.com/loafoe/hue-control.git
cd hue-control
go build -o hue-control cmd/hue-control/main.go
Setup
The first time you run any command, the tool will attempt to discover your Hue Bridge and prompt you to press the link button:
./hue-control lights list
- The tool will search for the bridge using mDNS.
- When prompted, press the large round button on top of your Hue Bridge.
- The configuration will be saved to
~/.hue-control/config.json.
Usage
CLI Mode
# List all lights
./hue-control lights list
# Turn on a light
./hue-control lights on [light-id]
# Turn off a light
# List motion sensors
./hue-control sensors motion
# List temperature sensors
./hue-control sensors temp
./hue-control lights off [light-id]
MCP Mode
To use this with an MCP client like Claude Desktop, add the following to your configuration file (e.g., ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"hue-go": {
"command": "/Users/andy/DEV/Personal/hue-control/hue-control",
"args": ["mcp"]
}
}
}
Available MCP Tools
- Lights:
get_all_lights,get_light,turn_on_light,turn_off_light,set_brightness,set_color_rgb,set_color_temperature,alert_light,set_light_effect,find_light_by_name,refresh_lights,set_color_preset. - Groups:
get_all_groups,get_all_rooms,get_all_zones,turn_on_group,turn_off_group,set_group_brightness,set_group_color_rgb,set_group_color_preset. - Scenes:
get_all_scenes,set_scene,get_motion_sensors,get_temperature_sensors.
License
MIT - See LICENSE for details.
Установка Hue Control
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/loafoe/hue-controlFAQ
Hue Control MCP бесплатный?
Да, Hue Control MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Hue Control?
Нет, Hue Control работает без API-ключей и переменных окружения.
Hue Control — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Hue Control в Claude Desktop, Claude Code или Cursor?
Открой Hue Control на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiSupabase
Database, auth and storage
автор: SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Hue Control with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
