lifx-api
π€π‘ MCP Server for LIFX API
claude mcp add --transport stdio furey-lifx-api-mcp-server npx -y lifx-api-mcp-server@latest \ --env CONFIG_API_TOKEN="Your Lifx API token (set via config file, environment variable, or pass as argument)"
How to use
This MCP server exposes a local interface to control LIFX devices through natural language prompts. It maps common LIFX API operations (such as listing lights, setting state, toggling power, and applying effects or scenes) to MCP tools and prompts, enabling LLM-driven automation and chat-based control of your LIFX lights. You can query and manipulate lights using entities like lifx://lights, lifx://scenes, and related resources, with automated helper prompts to guide the interaction and fetch live device data when needed.
To use it, start the server using the NPX method described in Installation. Configure your API token via a config file, environment variable, or command-line argument. Then connect your MCP client (for example, MCP Inspector or Claude Desktop) to the running server. You can invoke tools such as list-lights, set-state, toggle-power, and activate-scene through natural language, and rely on prompts like effect-creator or selector-helper to build accurate queries. The server also supports various state and effect tools (e.g., breathe-effect, pulse-effect, move-effect, and more) to perform common lighting automations with minimal manual syntax.
How to install
Prerequisites:
- Node.js v18+ (recommended) or NPX-capable environment
- NPM or Yarn installed
- Access to the internet for fetching the lifx-api-mcp-server package
Installation steps (NPX is the easiest):
- Ensure Node.js is installed:
node --version
- Install and run the MCP server via NPX (token can be configured later via config file or env):
npx -y lifx-api-mcp-server@latest
If you prefer configuring a local token via environment or config, set CONFIG_API_TOKEN accordingly before starting. You can also run a Dockerized setup as shown in the README, but the NPX route is the recommended starting point.
Additional notes
Tip: Prefer configuring your API token via a config file (~/.lifx-api-mcp-server.jsonc) or environment variable (CONFIG_API_TOKEN) to avoid exposing tokens in command history. The server supports a config file to disable specific tools or resources, which can help tailor access for different environments. When running in Docker, you can mount your config file to /root/.lifx-api-mcp-server.jsonc or pass the token via environment variable. If you run into token-related issues, double-check the token scope and ensure the token is active. For best reliability, keep your Node.js version aligned with the serverβs requirements (v18+ as recommended).
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.