MCP.so
登录

LIFX API MCP Server

@furey

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

furey

关于 LIFX API MCP Server

🤖💡 MCP Server for LIFX API

LIFX API MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "lifx-api-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "lifx-api-mcp-server@latest"
      ]
    }
  }
}

LIFX API MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is LIFX API MCP Server?

LIFX API MCP Server is a local Model Context Protocol (MCP) server that provides access to LIFX smart devices using natural language via LLMs. It allows users to list lights, set states, activate scenes, and trigger effects through the LIFX HTTP API.

How to use LIFX API MCP Server?

Obtain a LIFX API token from the LIFX Cloud settings page. Install the server via npx (npx -y lifx-api-mcp-server@latest) or Docker (docker run --rm -i --network=host furey/lifx-api-mcp-server). Configure the token using a config file (~/.lifx-api-mcp-server.jsonc), environment variable (CONFIG_API_TOKEN), or command-line argument. Set up an MCP client (e.g., Claude Desktop) and control lights using natural language. Use resources like lifx://lights and prompts like effect-creator.

Key features of LIFX API MCP Server

  • 18 tools for LIFX device control and scene management
  • Live resources: light list, light state, and scenes
  • Prompts: effect-creator, troubleshooter, selector-helper
  • Config file customization with component disabling
  • Supports Docker, NPX, and source-based installation
  • Uses standard LIFX selectors and color strings

Use cases of LIFX API MCP Server

  • Control LIFX lights using natural language through an LLM client.
  • Automate scene activation or light effects without manual scripting.
  • Diagnose connectivity issues for specific lights with the troubleshooter prompt.
  • Build custom light states and cycles for home automation.
  • Integrate LIFX control into AI-driven workflows and assistants.

常见问题

1

What are the runtime requirements?

Node.js v18+ (for NPX/source install) or Docker (for Docker install). A LIFX API token is required.

2

How do I configure the API token?

Set it via the config file (`apiToken` field in `~/.lifx-api-mcp-server.jsonc`), environment variable (`CONFIG_API_TOKEN`), or command-line argument (least recommended). Priority follows that order.

3

Does the server store any data?

No. The server does not store or cache information permanently; all device data remains in the LIFX cloud.

4

What transport does the server use?

It uses stdio transport, as shown in the startup log output ("Creating stdio transport").

5

Can I disable specific tools, resources, or prompts?

Yes. Use the `disabled` or `enabled` keys in the config file to selectively disable or limit components.

评论

开发工具 分类下的更多 MCP 服务器