Controls Philips Hue smart lighting with natural language.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add hue --env HUE_API_KEY='<HUE_API_KEY>' --env HUE_BRIDGE_IP='<HUE_BRIDGE_IP>' -- node /path/to/hue-mcp/dist/index.js~/.codex/config.toml
[mcp_servers.hue]
command = "node"
args = ["/path/to/hue-mcp/dist/index.js"]
env = { HUE_API_KEY = "<HUE_API_KEY>", HUE_BRIDGE_IP = "<HUE_BRIDGE_IP>" }
# codex mcp add hue --env HUE_API_KEY='<HUE_API_KEY>' --env HUE_BRIDGE_IP='<HUE_BRIDGE_IP>' -- node /path/to/hue-mcp/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"hue": {
"command": "node",
"args": [
"/path/to/hue-mcp/dist/index.js"
],
"env": {
"HUE_API_KEY": "<HUE_API_KEY>",
"HUE_BRIDGE_IP": "<HUE_BRIDGE_IP>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"hue": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/hue-mcp/dist/index.js"
],
"env": {
"HUE_API_KEY": "<HUE_API_KEY>",
"HUE_BRIDGE_IP": "<HUE_BRIDGE_IP>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"hue": {
"command": "node",
"args": [
"/path/to/hue-mcp/dist/index.js"
],
"env": {
"HUE_API_KEY": "<HUE_API_KEY>",
"HUE_BRIDGE_IP": "<HUE_BRIDGE_IP>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"hue": {
"command": "node",
"args": [
"/path/to/hue-mcp/dist/index.js"
],
"env": {
"HUE_API_KEY": "<HUE_API_KEY>",
"HUE_BRIDGE_IP": "<HUE_BRIDGE_IP>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"hue": {
"command": "node",
"args": [
"/path/to/hue-mcp/dist/index.js"
],
"env": {
"HUE_API_KEY": "<HUE_API_KEY>",
"HUE_BRIDGE_IP": "<HUE_BRIDGE_IP>"
}
}
}
}需要的环境变量
HUE_API_KEYHUE_BRIDGE_IP
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。