Skip to main content
Glama
qlc-show-designer-mcp

qlc-show-designer-mcp

README.md
# qlc-show-designer

**Ask Claude for a light show, get it built in QLC+.**

qlc-show-designer lets [Claude Code](https://claude.com/claude-code) act as a lighting designer: give it a QLC+ 5 project with your rig and an audio file, describe the show you want (any genre, any kind of show, the dynamics you're after), and it analyses the song, proposes a lighting intent part by part, writes a lighting plan, and builds it into your QLC+ project — scenes, chases, pulses on the kick, flashes, strobes, moving-head sweeps — on a timeline synced to the music. You watch it in QLC+'s 3D view and ask for changes in plain language.

> **Status: alpha.** Tested on macOS with QLC+ 5.3.1. Feedback from lighting people is very welcome — open an issue.

It is made of two parts:

- an **MCP server** (`qlc-show-designer-mcp`, Python) with 16 tools: read the rig, analyse songs, validate and build lighting plans, load and play them in QLC+;
- a **Claude Code skill** (`.claude/skills/lighting-designer/`) that carries the lighting-design know-how and the plan reference.

Claude talks to you in your own language; the tools and the plan format are in English.

## Requirements

- **macOS** (Apple Silicon tested). Windows and Linux are untested — see [Platforms](#platforms).
- **[QLC+ 5](https://www.qlcplus.org/)** (5.3.1 tested), installed in `/Applications`.
- **[uv](https://docs.astral.sh/uv/)** (it installs Python 3.12 for the project).
- **Claude Code** (CLI, desktop app or IDE extension).
- Your own songs: WAV, FLAC, OGG or MP3.

## Install

```bash
git clone https://github.com/antoinemetifeu/qlc-show-designer.git
cd qlc-show-designer
uv sync
```

Optional, better song structure detection (intro / verse / chorus / bridge labels) with [All-In-One](https://github.com/mir-aidj/all-in-one):

```bash
uv sync --extra structure
```

It pulls PyTorch (large), runs on the CPU, downloads model weights from Hugging Face on first use, and takes about a minute per 4-minute song. Without it, songs are split into `part_1`, `part_2`… by librosa. Installing it later changes the part labels, so existing plans and corrections for a song must be redone.

## Try it

1. **Prepare a rig.** Copy an example rig (never work on the originals):
   ```bash
   mkdir -p ~/qlc-show-designer-test && cp examples/rigs/rock.qxw ~/qlc-show-designer-test/
   ```
   or use your own QLC+ project: add your fixtures, place them in the 3D view (rotate floor fixtures 180° so they point up) and put them in **fixture groups** (e.g. "Front", "Back", "Moving heads") — the plan addresses groups.
2. **Start QLC+ on that project with the web interface** (`-w` is required):
   ```bash
   "/Applications/QLC+.app/Contents/MacOS/qlcplus5" -o ~/qlc-show-designer-test/rock.qxw -w
   ```
3. **Open Claude Code in the `qlc-show-designer` folder** and approve the `qlc-show-designer` MCP server when asked (it is declared in `.mcp.json`).
4. **Ask**, in any language, for example:
   > Make me a light show for `~/Music/my-song.flac` with the rig `~/qlc-show-designer-test/rock.qxw`. It's an indie rock song; keep the verses dark and make the last chorus explode. Then play it in QLC+.

Claude will read the rig, analyse the song, ask about the show type, the dynamics and **whether strobes are acceptable**, show you its intent per part, then build, load and play it. Watch it in QLC+ (*Fixtures & Functions → 3D View*) and ask for edits ("more strobe in the choruses", "less red", "the chorus starts earlier").

## How it works

```
you ⇄ Claude + lighting-designer skill
            │ MCP tools
            ▼
   qlc-show-designer MCP server ── song analysis (librosa, optional All-In-One)
            │           rig reading (QLC+ fixture library)
            │           plan validation → compiler → .qxw
            ▼
   QLC+ 5 (web API: load project, start/stop functions) → 3D view / DMX
```

The **lighting plan** (`<project>.showdesigner/plan.yaml`) is the source of truth: Claude edits the plan, never the `.qxw` directly, and the compiler regenerates the show deterministically.

## What qlc-show-designer writes

- **Your `.qxw`, in place.** Only functions under the `AI/…` path, plus fixture groups if you ask Claude to define them. Your fixtures, your own functions and console widgets are never modified.
- **Backups:** `<project>.<YYYYMMDD-HHMMSS>.bak.qxw` next to the project before each write (the 10 most recent are kept). `preview` makes none.
- **A companion folder** `<project>.showdesigner/`: `plan.yaml`, `manifest.json`, `positions.yaml`, `songs.json`, `corrections/`.
- **An analysis cache** in `~/Library/Caches/qlc-show-designer/analysis`.

**Hand edits are protected.** If you change a generated scene, chase or show in QLC+ and save, the next build keeps your version ("detached") and tells you; ask Claude to *reattach* it to let qlc-show-designer regenerate it.

## Important: QLC+ and your unsaved work

- `load_in_qlc` and `preview` **replace what is open in QLC+** — save your QLC+ work first.
- After qlc-show-designer loads a project, QLC+ **keeps the file name it was started with**. Saving (Cmd+S / Ctrl+S) then writes into *that* file. Only save if QLC+ was started on the same project; otherwise restart QLC+ with `-o <project> -w`.
- Save hand edits in QLC+ **before** asking Claude to build.

## Photosensitivity and safety

- The `strobe` effect is capped at **4 Hz by default** (common guidance is about 3–4 flashes per second). It can be raised up to **20 Hz** only on explicit request (`rules.strobe_max_hz`), with a warning. `flash`, `pulse`, `chase` and `color_cycle` are thinned to the same cap.
- On fixtures whose definition gives no strobe speeds in Hz, rates are approximate.
- Claude asks whether strobes and flashes are acceptable for your audience and venue. qlc-show-designer is **not a safety system**: the organiser is responsible for venue rules and for announcing strobe effects.
- If QLC+ outputs are connected to real fixtures, they receive these values: check in the 2D/3D view first, start at a low level, and don't aim moving heads at people's eyes while setting up.
- QLC+'s web interface (port 9999) has no authentication: use it on a trusted network.

## Known limits

- Shows are a **fixed timeline** synced to the recording (great for backing tracks, demos and design); live busking pages are planned.
- Downbeats assume 4/4 when All-In-One is not installed. Sections much quieter than the rest (≈6 dB) may get no beats or kicks.
- Default moving-head positions (`center`, `audience`, `sky`, `floor_front`, `stage_left`, `stage_right`) are approximate, calibrated in QLC+'s 3D view for hung heads — check and adjust them for your rig.
- Multi-head fixtures are addressed through their first head for movement effects.

## Configuration

| Variable | Default | Purpose |
|---|---|---|
| `QSD_FIXTURE_DIRS` | QLC+ app and user fixture folders | Where to find `.qxf` fixture definitions (separated by `:` on macOS/Linux, `;` on Windows) |
| `QSD_CACHE_DIR` | `~/Library/Caches/qlc-show-designer/analysis` | Song analysis cache |
| `QSD_QLC_HOST` | `127.0.0.1` | QLC+ web interface host |
| `QSD_QLC_PORT` | `9999` | QLC+ web interface port |

## Platforms

macOS-specific defaults: the fixture library is read from `/Applications/QLC+*.app/Contents/Resources/Fixtures` and `~/Library/Application Support/QLC+/Fixtures`, and the cache lives in `~/Library/Caches`. Linux (`/usr/share/qlcplus/fixtures`, `~/.qlcplus/fixtures`) and Windows (`C:\QLC+\Fixtures`) defaults are included but untested — if qlc-show-designer reports that fixture definitions are missing, set `QSD_FIXTURE_DIRS`. On Windows/Linux, start QLC+ with `qlcplus -o <project> -w` (or `qlcplus5`, depending on your install).

## Development

```bash
uv run pytest -q
```

Some tests need QLC+'s fixture library and are skipped without it; one downloads a librosa example song (skipped offline). Design notes and plans under `docs/` are written in French.

## Related projects

Other people are connecting AI assistants to lighting and QLC+; have a look at them too:

- [guac395/qlc-plus-mcp](https://github.com/guac395/qlc-plus-mcp) — MCP server to control QLC+ from Claude Desktop, workspace generation.
- [infrafast/QLCPlus-MCP](https://github.com/infrafast/QLCPlus-MCP) — MCP server for QLC+.
- [Adev-io/my-lil-qlc-mcp](https://github.com/Adev-io/my-lil-qlc-mcp) — agent-driven QLC+ 4 stack with a JSON show generator.
- [gatordevin/dj-lights](https://github.com/gatordevin/dj-lights) — music-following DMX shows with a web 3D stage and QLC+ export.
- [bawaaaaah/light-mcp-server](https://github.com/bawaaaaah/light-mcp-server) — Art-Net/sACN lighting with MIDI, QLC+ import and MCP.

qlc-show-designer focuses on *designing* a show for an existing QLC+ rig: music analysis, a readable lighting plan with dynamics, genre-aware design guidance, strobe safety and protection of hand edits.

## Licence

GPL-3.0-or-later — see [LICENSE](LICENSE) and [NOTICE](NOTICE). QLC+ is a separate project by Massimo Callegari and contributors; qlc-show-designer only talks to it.

TDQS

A3.6/5.0

Scored across 16 tools

Disambiguation4/5

Most tools map to a distinct stage of the pipeline (rig setup, song analysis, plan authoring, build, live playback), so selection is usually clear. The main overlaps are write_plan vs validate_plan (write also validates) and preview vs play/load_in_qlc, which all touch the live QLC+ session and could be confused without reading the descriptions carefully.

Naming Consistency4/5

Consistent snake_case with verb-first names throughout (read_rig, define_groups, analyze_song, write_plan, validate_plan, list_effects). A few bare verbs (build, reattach, preview, play, stop) and the asymmetric list_effects vs list_qlc_functions are minor deviations but still readable and predictable.

Tool Count4/5

16 tools for a multi-stage workflow (rig, positions, analysis, plan, build, live control) is slightly on the heavy side but each tool covers a distinct stage rather than duplicating another. Nothing feels gratuitous, though a couple of pairs (preview/play, write/validate_plan) could theoretically be consolidated.

Completeness4/5

The surface covers the full lifecycle: inspect rig, define groups/positions, analyze and correct songs, author/validate plans, build, reattach, and drive live playback. Minor gaps remain — no way to list songs or inspect individual plan sections, and no explicit plan deletion or group/position removal (overwrite only).

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues