npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-philips-hue

v1.0.0

Published

MCP server for Philips Hue smart lighting control

Readme

mcp-philips-hue

An MCP (Model Context Protocol) server for controlling Philips Hue smart lights.

Features

  • get_lights - List all lights connected to your Hue Bridge
  • set_brightness - Adjust brightness (0-254) for individual or all lights
  • set_color - Change colors using hex codes, color names, or color temperature
  • toggle_light - Turn lights on or off

Prerequisites

  • Node.js 18+
  • Philips Hue Bridge on your local network
  • Hue API key (see setup below)

Getting Your Hue API Key

  1. Find your bridge IP at https://discovery.meethue.com/
  2. Navigate to http://<bridge-ip>/debug/clip.html
  3. Press the link button on your Hue Bridge
  4. Within 30 seconds, POST to /api with body: {"devicetype":"mcp-server#user"}
  5. Copy the username from the response - this is your API key

Installation

From npm (Recommended)

npx mcp-philips-hue

From Source

git clone https://github.com/m2ai-mcp-servers/mcp-philips-hue.git
cd mcp-philips-hue
npm install
npm run build

Configuration

Environment Variables

export HUE_BRIDGE_IP=192.168.1.x
export HUE_API_KEY=your-api-key-here

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "philips-hue": {
      "command": "npx",
      "args": ["-y", "mcp-philips-hue"],
      "env": {
        "HUE_BRIDGE_IP": "192.168.1.x",
        "HUE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage Examples

List all lights

get_lights

Set brightness

set_brightness light_id="1" brightness=200
set_brightness light_id="all" brightness=100

Set color

# Using hex color
set_color light_id="1" color="#FF0000"

# Using color name
set_color light_id="1" color="blue"

# Using color temperature
set_color light_id="1" color="warm"
set_color light_id="all" color="2700K"

Toggle lights

toggle_light light_id="1" state=true
toggle_light light_id="all" state=false

Color Options

Named Colors

red, green, blue, yellow, orange, purple, pink, white, cyan, magenta

Color Temperature

  • warm (2200K)
  • soft (2500K)
  • neutral (3500K)
  • cool (5000K)
  • daylight (6500K)
  • Or specify Kelvin directly: 2700K, 4000K, etc.

Development

# Watch mode
npm run dev

# Run tests
npm test

# Build
npm run build

Testing

npm test

License

MIT


Built autonomously by GRIMLOCK - Autonomous MCP Server Factory