@lumiastream/mcp
An MCP server for Lumia Stream that lets AI assistants trigger commands, set light colors, fire alerts, run text-to-speech, and read/write variables via the local REST API.
README
@lumiastream/mcp
A Model Context Protocol server for Lumia Stream. It exposes Lumia's local API as MCP tools so an AI assistant (Claude Desktop, Claude Code, Cursor, etc.) can control lights, trigger commands and alerts, run TTS, post to and moderate chat, read live stream state, and react to events in real time.
It is a thin adapter over the local Lumia API (http://localhost:39231/api) plus its event WebSocket — the app does all the real work.
Prerequisites
- Node.js ≥ 20
- Lumia Stream running on the same machine
- The REST API enabled in Lumia: Settings → API (toggle it on and copy the token)
Tools
Discover & state
get_settings— commands, alerts, connected lights, studio scenes/themes/animations, TTS voices. Call this first.get_state— snapshot: live status, viewers, follower/subscriber counts, latest names, now-playing song, heart rate.get_variable/get_variables/set_variable— read one or many Lumia variables, or write one.
Lights & studio
set_color— hex, RGB, or color temperature, with brightness/transition/duration.set_studio— trigger a studio scene, theme, or animation.set_lumia_state— start/stop/toggle Lumia, or reset lights to default.
Trigger commands & alerts
trigger_command— chat / chatbot / Twitch-points / Twitch-extension command by name.trigger_alert— simulate a platform alert (e.g.twitch-follower,kofi-donation).
Chat, voice & moderation
send_chat_message— post to chat as the bot or as yourself.speak— text-to-speech through Lumia's engine.shoutout— clip + chat shoutout for a user.moderate_user— ban / unban / timeout / VIP.delete_message— remove a message by id.translate_message— translate and post to chat.
Overlays, session & economy
control_overlay— show/hide overlays and layers, move layers, set content.set_stream_mode— stream mode on/off/toggle.control_queue— pause/resume/clear the queue, clear cooldowns.set_command_state— enable/disable a command or folder.control_fuze— start/stop/toggle Fuze, set audio sensitivity.loyalty_points— add or remove a viewer's loyalty points.
Real-time
get_recent_events— recent live events (chat, follows, subs, bits, raids, donations) since the server started.wait_for_event— block until the next matching event (e.g. the next follower), then react.
Also a lumia://settings resource mirroring get_settings, and prompts (slash-commands in most clients): start_stream, brb, hype, wind_down, thank_new_followers.
Configuration
Environment variables:
| Var | Default | Notes |
|---|---|---|
LUMIA_TOKEN |
— | Required. From Settings → API. |
LUMIA_HOST |
127.0.0.1 |
|
LUMIA_PORT |
39231 |
|
LUMIA_SECURE |
false |
Set true to use the HTTPS port. |
Use with an MCP client
Once published, point your client at it via npx:
{
"mcpServers": {
"lumia-stream": {
"command": "npx",
"args": ["-y", "@lumiastream/mcp"],
"env": {
"LUMIA_TOKEN": "your_token_here"
}
}
}
}
Local development
npm install
npm run build
Then point the client at the built entry:
{
"mcpServers": {
"lumia-stream": {
"command": "node",
"args": ["/absolute/path/to/Lumia-MCP/dist/index.js"],
"env": {
"LUMIA_TOKEN": "your_token_here"
}
}
}
}
Verify
npm run smoke builds nothing but connects to dist/index.js over stdio, lists the tools/resources, and calls get_settings. With a real token it returns live settings; without one it exercises the auth/error path:
npm run build
LUMIA_TOKEN=your_token_here npm run smoke
Adding a tool
Each type in the Lumia Send API maps to a tool. To add one:
- Create
src/tools/<name>.tsexportingregister<Name>(server, client)— copy an existing file. - Define the
inputSchema(zod) and map inputs toclient.send('<type>', params). - Register it in
src/tools/index.ts.
Remember the Lumia param convention: params.value is the target/name and params.message is the content/payload.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.