Y
ykhli/mcp-light-control
Philips Hue lights, including Morse code
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Morse Code Light MCP Server (Philips Hue) 💡
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
This MCP server allows Cursor or Claude Desktop to control Philips Hue lights and send messages through them using Morse code.
💡Example use case💡: tell Cursor agent to send a Morse code message to you when it's done with a task.
## Demo
https://www.youtube.com/watch?v=GM1l98TtZmk
Built with:
Philips Hue API
Anthropic MCP
Cursor
## Setup
### Prerequisites
Philips Hue bridge and lights
Hue bridge username (API key)
Node.js (v14 or higher)
Cursor or Claude Desktop
## Local API Setup
1. Clone this repository locally.
2. Obtain your Philips Hue bridge IP address and username. If you don't have one, run the discovery script:
bash
node build/discover-bridge.js
Follow the prompts to press the link button on your Hue bridge and receive your API key.
3. Run npm install followed by npm run build in the project directory. This will generate the MCP server script in the /build directory.
4. Add the following MCP configuration. In Cursor it's under Settings -> MCP -> Add new MCP server. In Claude Desktop it's under Settings -> MCP -> Add new MCP server.
json
"mcpServers": {
"controllights": {
"command": "node",
"args": ["ABSOLUTEPATHTOMCPSERVER/build/index.js"],
"env": {
"HUEUSERNAME": "YOURHUEUSERNAME",
"BRIDGEIP": "YOURBRIDGEIP"
## Remote API Setup
This project supports controlling your Philips Hue lights remotely (from outside your local network) using the Hue Remote API. This enables you to control your lights from anywhere with an internet connection.
### Getting Remote API Credentials
1. Create a Hue Developer Account:
Register at https://developers.meethue.com/
2. Create a Remote Hue API App:
Go to https://developers.meethue.com/my-apps/
Create a new app with these details:
App name: Choose a name for your app
Callback URL: Use http://localhost/ for simple testing
Application description: Brief description of your app
After creating the app, you'll receive:
Client ID
Client Secret
3. Get Access and Refresh Tokens:
a. Construct an authorization URL and open it in your browser:
https://api.meethue.com/oauth2/auth?clientid=YOURCLIENTID&responsetype=code&state=anystring&appid=YOURAPPNAME&deviceid=test-device&devicename=TestDevice
Replace YOURCLIENTID and YOURAPPNAME with your values.
b. Log in with your Hue developer account and authorize the app.
c. You'll be redirected to your callback URL with a code parameter.
d. Extract the code from the URL (e.g., ?code=abcd1234&state=anystring).
e. Exchange the code for tokens using cURL or Postman:
bash
curl -X POST https://api.meethue.com/oauth2/token \
-d "code=YOURAUTHORIZATIONCODE&granttype=authorizationcode" \
-u "YOURCLIENTID:YOURCLIENTSECRET"
f. The response will contain:
json
"accesstoken": "YOURACCESSTOKEN",
"refreshtoken": "YOURREFRESHTOKEN",
"tokentype": "bearer",
"expiresin": 604800
Store these tokens securely. The access token is valid for approximately 7 days, and the refresh token for approximately 100 days.
💡Example use case💡: tell Cursor agent to send a Morse code message to you when it's done with a task.
## Demo
https://www.youtube.com/watch?v=GM1l98TtZmk
Built with:
Philips Hue API
Anthropic MCP
Cursor
## Setup
### Prerequisites
Philips Hue bridge and lights
Hue bridge username (API key)
Node.js (v14 or higher)
Cursor or Claude Desktop
## Local API Setup
1. Clone this repository locally.
2. Obtain your Philips Hue bridge IP address and username. If you don't have one, run the discovery script:
bash
node build/discover-bridge.js
Follow the prompts to press the link button on your Hue bridge and receive your API key.
3. Run npm install followed by npm run build in the project directory. This will generate the MCP server script in the /build directory.
4. Add the following MCP configuration. In Cursor it's under Settings -> MCP -> Add new MCP server. In Claude Desktop it's under Settings -> MCP -> Add new MCP server.
json
"mcpServers": {
"controllights": {
"command": "node",
"args": ["ABSOLUTEPATHTOMCPSERVER/build/index.js"],
"env": {
"HUEUSERNAME": "YOURHUEUSERNAME",
"BRIDGEIP": "YOURBRIDGEIP"
## Remote API Setup
This project supports controlling your Philips Hue lights remotely (from outside your local network) using the Hue Remote API. This enables you to control your lights from anywhere with an internet connection.
### Getting Remote API Credentials
1. Create a Hue Developer Account:
Register at https://developers.meethue.com/
2. Create a Remote Hue API App:
Go to https://developers.meethue.com/my-apps/
Create a new app with these details:
App name: Choose a name for your app
Callback URL: Use http://localhost/ for simple testing
Application description: Brief description of your app
After creating the app, you'll receive:
Client ID
Client Secret
3. Get Access and Refresh Tokens:
a. Construct an authorization URL and open it in your browser:
https://api.meethue.com/oauth2/auth?clientid=YOURCLIENTID&responsetype=code&state=anystring&appid=YOURAPPNAME&deviceid=test-device&devicename=TestDevice
Replace YOURCLIENTID and YOURAPPNAME with your values.
b. Log in with your Hue developer account and authorize the app.
c. You'll be redirected to your callback URL with a code parameter.
d. Extract the code from the URL (e.g., ?code=abcd1234&state=anystring).
e. Exchange the code for tokens using cURL or Postman:
bash
curl -X POST https://api.meethue.com/oauth2/token \
-d "code=YOURAUTHORIZATIONCODE&granttype=authorizationcode" \
-u "YOURCLIENTID:YOURCLIENTSECRET"
f. The response will contain:
json
"accesstoken": "YOURACCESSTOKEN",
"refreshtoken": "YOURREFRESHTOKEN",
"tokentype": "bearer",
"expiresin": 604800
Store these tokens securely. The access token is valid for approximately 7 days, and the refresh token for approximately 100 days.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/ykhli-mcp-light-control/)
- 来源
- awesome · https://github.com/ykhli/mcp-light-control
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。