twinkly-mcp
MCP server that enables AI agents to control Twinkly lights through natural language, supporting operations like on/off, color, brightness, and effects.
README
twinkly-mcp
A Model Context Protocol (MCP) server that gives AI agents control of your Twinkly lights.
Point an MCP-capable assistant (Claude Desktop, Claude Code, etc.) at this server and ask it to turn your lights on, set a color, change brightness, or switch effects — in plain language.
It's built on top of the @twinklyjs/twinkly library, which talks to Twinkly devices over their local network API.
⚠️ Status: early development. The server is being built phase by phase — see CLAUDE.md for the implementation plan and progress. It is not yet usable.
What you'll be able to do
Ask your assistant things like:
- "Turn the Christmas tree lights on / off"
- "Make the lights warm white at 40% brightness"
- "Set them to green"
- "Switch to the sparkle effect"
- "What are my lights doing right now?"
Requirements
- Node.js 20+
- One or more Twinkly devices on the same local network
- An MCP client (e.g. Claude Desktop or Claude Code)
Installation
Not published yet. Once available it will run via
npxwith no global install.
npx twinkly-mcp
Configuration
The server is configured via environment variables. The most common setup is a single device by IP:
| Variable | Description |
|---|---|
TWINKLY_IP |
IP address of your Twinkly device (e.g. 192.168.1.50) |
TWINKLY_DEVICES |
JSON map of named devices, e.g. {"tree":"192.168.1.50","window":"192.168.1.51"} |
TWINKLY_DEFAULT_DEVICE |
Name of the device to use when a request doesn't specify one |
TWINKLY_DISCOVERY |
true to auto-discover devices on the network at startup |
TWINKLY_READONLY |
true to expose only read-only tools (no changes to your lights) |
Don't know your device's IP? With discovery enabled, the server can find devices automatically, or you can ask the assistant to "discover my Twinkly devices".
Connecting an MCP client
Claude Desktop / Claude Code
Add the server to your MCP client configuration:
{
"mcpServers": {
"twinkly": {
"command": "npx",
"args": ["twinkly-mcp"],
"env": {
"TWINKLY_IP": "192.168.1.50"
}
}
}
}
Restart the client, and the Twinkly tools will be available to the assistant.
How it works
AI assistant ──MCP──> twinkly-mcp ──local HTTP──> Twinkly device(s)
The server translates natural-language requests into MCP tool calls, which it maps onto the Twinkly device API on your local network. Your device IPs and tokens stay local — nothing is sent to the cloud by this server.
Development
See CLAUDE.md for architecture, the configuration reference, and the phased build plan. Contributions and progress are tracked there.
License
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.