The CheerLights MCP Server is a Model Context Protocol (MCP) server designed to enable AI tools like Claude to interact with the CheerLights API. CheerLights is a global IoT project that synchronizes colors across connected lights worldwide. This server allows AI tools to fetch the current CheerLights color, view recent color change history, and integrate with the CheerLights API in real-time.
To get started, install the necessary dependencies:
pip install mcp httpx
Save the provided code to a file (e.g., server.py
) and run it using the following command:
python server.py
To integrate the server with Claude for Desktop, add the following configuration to your Claude settings:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"cheerlights": {
"command": "python",
"args": ["path/to/server.py"]
}
}
}
After restarting Claude for Desktop, you can interact with the CheerLights API by asking questions like:
The server interacts with the CheerLights API endpoint: http://api.thingspeak.com/channels/1417/field/1/last.json
For a detailed guide on setting up your own MCP server for Claude Desktop and Windsurf, check out the blog post:
Learn How to Create Your Own MCP Server for Claude Desktop and Windsurf
This project is an MCP server that facilitates interaction between AI tools and the CheerLights API, enabling real-time color synchronization and data retrieval.
This project is licensed under the MIT License.