CheerLights MCP 服务器

CheerLights MCP 服务器

一个允许 AI 工具与 CheerLights API 交互的 MCP 服务器。

快速入门

  1. 安装依赖: pip install mcp httpx

  2. 下载代码并保存为 server.py。

  3. 启动服务器: python server.py

  4. 在 Claude 桌面版中配置服务器路径:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json 配置内容: { "mcpServers": { "cheerlights": { "command": "python", "args": ["path/to/server.py"] } } }
  5. 重启后提问,例如:

    • 当前 CheerLights 颜色是什么?
    • 显示最近 10 次颜色变化记录。

更多教程详见博客:创建自己的 MCP 服务器