LIFX MCP Server

LIFX MCP Server

Enables control of LIFX smart lights through natural language, including power control, color adjustment, lighting effects, and scene management using the LIFX HTTP API.

Category
Visit Server

README

LIFX MCP Server

A Model Context Protocol (MCP) server that provides tools for controlling LIFX smart lights through the LIFX HTTP API.

Features

This MCP server exposes the following LIFX API functionality as tools:

  • šŸ” list_lights - Get all lights or filter by selector
  • ⚔ set_state - Control power, color, brightness of lights
  • šŸ”„ toggle_power - Toggle lights on/off
  • 🫁 breathe_effect - Create breathing light effects
  • šŸ’« pulse_effect - Create pulsing light effects
  • šŸŽ¬ list_scenes - List all saved scenes
  • ā–¶ļø activate_scene - Activate a specific scene
  • āœ… validate_color - Validate color string formats
  • ā¹ļø effects_off - Turn off any running effects

Prerequisites

  1. LIFX API Token: Get your token from LIFX Cloud Settings
  2. Node.js: Version 16 or higher
  3. MCP Client: Such as Claude Desktop or any MCP-compatible client

Installation

  1. Clone this repository:
git clone https://github.com/lenvolk/mcp-lifx.git
cd mcp-lifx
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage

With Claude Desktop

Add this server to your Claude Desktop configuration file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "lifx": {
      "command": "node",
      "args": ["C:/path/to/mcp-lifx/build/index.js"],
      "env": {}
    }
  }
}

Direct Usage

You can also run the server directly:

npm start

Example Usage

Once connected to an MCP client, you can use commands like:

  • "List all my LIFX lights"
  • "Turn on the kitchen lights"
  • "Set living room lights to blue"
  • "Start a breathe effect on all lights with red color"
  • "Show me all my saved scenes"
  • "Activate the movie night scene"

LIFX Selectors

Use selectors to target specific lights:

  • all - All lights
  • label:Kitchen - Lights labeled "Kitchen"
  • group:Living Room - Lights in "Living Room" group
  • location:Home - Lights at "Home" location
  • id:d073d5000000 - Specific light by ID

Color Formats

The server supports various color formats:

  • Named colors: red, blue, green, purple, etc.
  • RGB: rgb:255,0,0 (red)
  • HSB: hue:120 saturation:1.0 brightness:0.5
  • Kelvin: kelvin:3500 (warm white)

Development

Project Structure

mcp-lifx/
ā”œā”€ā”€ src/
│   └── index.ts      # Main MCP server implementation
ā”œā”€ā”€ build/            # Compiled JavaScript output
ā”œā”€ā”€ LIFX.md          # LIFX API documentation
ā”œā”€ā”€ mcp.md           # MCP tutorial reference
ā”œā”€ā”€ package.json     # Project configuration
ā”œā”€ā”€ tsconfig.json    # TypeScript configuration
└── README.md        # This file

Available Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm start - Run the compiled server
  • npm run dev - Build and run in one command

API Reference

All LIFX API endpoints and parameters are documented in LIFX.md.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

ISC License

Support

For issues with this MCP server, please open an issue on GitHub. For LIFX API issues, refer to the official LIFX API documentation.


Note: This is an unofficial LIFX MCP server. LIFX is a trademark of LIFX Pty Ltd.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured