LIFX LAN MCP server

LIFX LAN MCP server

lifx-lan-mcp•bysimon-duchastel

An MCP server that enables an LLM to discover and control LIFX lights over the local network without cloud connectivity.

License: MIT License•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Lists LIFX lights available on the local area network, including group and location details.
  • •Gets the current color, on/off state, group, and location of specified lights.
  • •Sets the color of specified lights with hue, saturation, brightness, optional kelvin, and optional transition duration.
  • •Turns lights on, optionally at a specified color, and turns lights off with optional transition duration.

BEST FOR

  • •Controlling LIFX lights locally through an LLM without cloud connectivity.
  • •Running the server separately from the LLM client over a network using HTTP or SSE mode.

ABOUT LIFX-LAN-MCP

LIFX LAN MCP server is cataloged as an MCP server attributed to simon-duchastel. An MCP server that enables an LLM to discover and control LIFX lights over the local network without cloud connectivity. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for LIFX LAN MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server operate without cloud connectivity?

Yes, the server controls LIFX lights over the local area network without cloud connectivity, though it must run on the same wifi network as the lights.

What transport modes does the server support?

It supports stdio mode, which is the default, and HTTP server mode using SSE.

上游原版 README

在 GitHub 查看同一版本原文

README.md · c5df28061e52 · 采集于 2026-11-13 12:04:21 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

LIFX LAN MCP

Cover image

npm MCP Server Buy Me A Coffee

A Model Context Protocol (MCP) server for allowing an LLM to control LIFX lights over your local area network (LAN), without cloud connectivity.

Note that the MCP server must be running on the same wifi network as your LIFX lights in order for the tool to work.

Features

  • List all available LIFX lights on your network
  • Get the current state of lights (color, on/off, labels)
  • Turn lights on/off
  • Change light colors
  • Local network operation (no cloud required, server must be running on the same network)
  • Configurable transport (sse or stdio)

Installation

NPX (configuring via local stdio) - default

Add this, or similar, to your LLM MCP config file (ex. for Claude Desktop this is claude_desktop_config.json).

{
  "mcpServers": {
    "lifx-lan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lifx-lan-mcp"
      ]
    }
  }
}

Running the Server

The server can be run in two modes: stdio (default) or HTTP server mode. The server supports both the 2025-03-26 and 2024-11-05 protocol versions.

Stdio Mode (Default)

Stdio mode is the simplest way to run the server, where it communicates directly with the LLM through standard input/output. This is the default mode and requires no additional configuration. In this mode, the MCP server is started directly by the client with which it's communicating.

# Run in stdio mode (default)
npx lifx-lan-mcp

# Or explicitly specify stdio mode
npx lifx-lan-mcp --mode stdio

HTTP Server Mode

WARNING: HTTP SERVER MODE IS DANGEROUS. It currently doesn't support authentication, which means attackers could trick your LLM into giving it data or alternatively allow malicious clients to control your LIFX lights. Use at your own risk until authentication is supported.

HTTP server mode allows the server to run as a standalone service that can be accessed over HTTP. This is useful when you want to run the server separately from the LLM client, ex. over a network.

# Run in HTTP server mode on default port (3000)
npx lifx-lan-mcp --mode sse

# Run in HTTP server mode on a specific port
npx lifx-lan-mcp --mode sse --port 8080

Protocol Versions

The HTTP server supports two protocol versions:

  1. 2025-04-21 Protocol (Latest)

    • Uses /mcp endpoint for all operations
    • Supports both HTTP and SSE transports
    • Example client configuration:
    {
      "mcpServers": {
        "lifx-lan-mcp": {
          "url": "http://localhost:3000/mcp"
        }
      }
    }
    
  2. 2025-03-26 Protocol (Legacy)

    • Uses /sse endpoint for establishing connections
    • Uses /message endpoint for sending messages
    • Example client configuration:
    {
      "mcpServers": {
        "lifx-lan-mcp": {
          "url": "http://localhost:3000/sse"
        }
      }
    }
    

Tools

  • lifx_lan_list_lights

    • List all Lifx lights currently available on the user's local area network (LAN)
    • Each light is specified by a unique string label
    • Includes additional information about the light, such as group and location
    • Inputs: None required
  • lifx_lan_get_lights_state

    • Get the current state of one or more LIFX lights, including colors, on/off state, groups and locations
    • Inputs:
      • labels (string[]): Array of light labels to get state for
  • lifx_lan_set_lights_color

    • Set the color of one or more Lifx lights
    • Inputs:
      • labels (string[]): Array of light labels to set color for
      • color (object): Color specification
        • hue (number): Hue value (0.0-1.0)
        • saturation (number): Saturation value (0.0-1.0)
        • brightness (number): Brightness value (0.0-1.0)
        • kelvin (number, optional): Color temperature in Kelvin (1500-9000, defaults to 3500)
      • duration (number, optional): Transition duration in milliseconds
  • lifx_lan_turn_on_lights

    • Turn on one or more Lifx lights, optionally at specific color
    • Inputs:
      • labels (string[]): Array of light labels to turn on
      • color (object, optional): Color specification if changing color
        • hue (number, optional): Hue value (0.0-1.0)
        • saturation (number, optional): Saturation value (0.0-1.0)
        • brightness (number, optional): Brightness value (0.0-1.0)
        • kelvin (number, optional): Color temperature in Kelvin
      • duration (number, optional): Transition duration in milliseconds
  • lifx_lan_turn_off_lights

    • Turn off one or more Lifx lights
    • Inputs:
      • labels (string[]): Array of light labels to turn off
      • duration (number, optional): Transition duration in milliseconds

Development

Prerequisites

  • Node.js
  • TypeScript
  • LIFX lights on your local network

Building from Source

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

The MCP definition is found in index.ts, which contains all of the tools available to the LLM. The APIs which the tools call are availabe in the src/ folder.

Development Scripts

  • npm run prepare - Compile the project (builds dist/index.js)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Feel free to reach out at lifx-lan-mcp@duchastel.com or by opening a GitHub issue.

If you find this project useful, you can buy me a coffee.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for LIFX LAN MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/lifx-lan-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops