MCP Server and AI Control
What the LightStream MCP Server Is
MCP (Model Context Protocol) is an open protocol through which AI assistants connect to programs and work in them as helpers. LightStream 4 has a built-in MCP server: by enabling it, you give an MCP-capable AI assistant (Claude Desktop, Claude Code, Codex, Cursor, and others) access to the open project. Commands are written in plain text, in your own words:
- "How many fixtures are in the project and how many DMX channels do they occupy?"
- "Add 40 strips of 60 pixels every 2 cells to the converter's first port and put them into a group called 'Facade'."
- "Here is the datasheet of a floodlight — add such a fixture to the library."
- "Place the facade in the 3D scene as a 20 × 8 meter wall and show a snapshot."
- "Let fader 1 on the console control the master brightness."
The AI sees the structure of the project and does what you would do with the mouse: it creates and edits scenes, layers, and effects, playlists and the schedule, the patch, fixture groups, converters and ports, the 3D scene, triggers, program settings, and the project file itself. Routine bulk operations — hundreds of identical splines, renaming by template, a schedule for a month — collapse into a single phrase. The assistant combines tools on its own: when asked to "make a playlist of the evening scenes and set it for the weekend", it will find the scenes, create a playlist, fill it, and add calendar events.
What You Will Need
- An LS4 license of 32U or higher with a valid term. Without a license, the server switch shows a lock, and clicking it explains the reason; if the license expires mid-session, the server stops and starts again by itself after renewal. See which features the license unlocks.
- An MCP client: Claude Desktop or Claude Code (an Anthropic subscription is required), or any other AI assistant with MCP support.
- For clients that launch servers from a JSON config (Claude Desktop, Cursor, etc.) — Node.js from nodejs.org: the mcp-remote bridge between the client and LightStream runs on it.
- The server runs only in the first launched instance of LightStream and only on this computer.
How to Enable the Server and Connect an Assistant
Step 1. Enable the server
- Open the program settings and go to the MCP tab.
- Turn on the server. The status line will change to "Running at http://127.0.0.1:7333/". The port can be changed there as well if it is occupied by another program.
- On first start, a token is created — a secret key that the client uses to connect to the server.
The server listens only on the address 127.0.0.1: it cannot be reached from the network, so the assistant must run on the same computer. The setting is remembered — the next time LightStream starts, the server will start by itself.
Step 2. Connect the client
The "Connect an MCP client" section on the same tab provides everything the client needs. There are two ways.
HTTP transport (clients that support it). Copy the server URL and the authorization header with the "Copy" buttons and enter them in the client's MCP settings. Claude Code accepts them with a single command in the terminal:
claude mcp add lightstream --transport http http://127.0.0.1:7333/ --header "Authorization: Bearer <your token>"
JSON config (Claude Desktop, Cursor, and others). Click "Copy JSON config" and paste the snippet into the client's MCP configuration file (for Claude Desktop this is %APPDATA%\Claude\claude_desktop_config.json). After saving, fully quit Claude Desktop via the tray icon and start it again.
Step 3. Configure permissions
Enable the required access levels. To begin with, "Read" is enough — the assistant will answer questions about the project without changing anything.
Access Levels
You decide what the AI is allowed to do. The "MCP" tab has three independent switches; they take effect immediately, without restarting the server or the client.
| Level | What it allows | Risk |
|---|---|---|
| Read | Everything that only displays: project information, the patch and devices, scenes and playlists, the fixture and effect libraries, the 3D scene, settings, triggers, playback state, checks, and screenshots. This also includes setting the 3D View camera for a snapshot — the camera is not part of the project. | Safe: the project is not changed. |
| Content | Scenes, layers, effects and their parameters, keys, playlists, the calendar, triggers, playback and brightness, saving and collecting the project. | Changes the content of the show. |
| Infrastructure | The patch and fixture groups, players, converters and ports, the fixture library, the 3D scene (moving, transforms, folders, model import), program settings, opening and creating a project. | Changes the patch, the network, and the program settings. |
If the required level is turned off, the assistant gets the reply "level such-and-such is turned off in the LightStream settings" and usually asks you to turn it on.
The assistant cannot change the MCP token, port, or permission levels — neither through the settings tools nor in any other way.
AI Edits Are Undone as Usual (Ctrl+Z)
Almost every change made by the assistant goes through the same undo history as your own mouse actions: Ctrl+Z and the "Undo History" menu revert it in the same way. Large operations are deliberately recorded as a single step: a batch of hundreds of fixtures, a grid layout, a transfer to 3D, an edit of several layer fields. So one press of Ctrl+Z undoes the whole batch at once.
These do not go into the undo history:
- fixture library edits — as in the "Fixture Library" window, they are saved immediately;
- triggers — saved to the project immediately, and the project is marked as modified;
- playback — starting and stopping scenes, playlists, and groups, and brightness;
- program settings and the 3D View camera.
Device and Object Identifiers
The assistant refers to devices by permanent identifiers that do not get mixed up when devices are rearranged in the tree. They are issued by the device_list tool; you do not need to type them yourself, but it is useful to recognize them in the assistant's replies.
| Identifier | What it denotes |
|---|---|
player:<uid> |
A LightStream Player. |
conv:<uid> |
A converter — inside a player or standalone. |
conv:<uid>:<n> |
The n-th port of this converter, counting from 1. |
usbdmx:<i>:<p> |
A port of a USB-DMX device. |
unlink |
"No port": fixtures go to the list of unlinked ones. |
root |
The root of the tree: the converter becomes standalone, without a player. |
Old identifiers of the form artnet:i and artnet:i:p are still accepted.
Objects of the 3D scene are denoted scene:N — the number is issued the first time the objects are listed and is valid only until the end of the session. After the project is reopened, the assistant needs to list the objects again.
What the AI Can Do: Tools by Group
There are 113 tools in total. Below is what each group does and which permission level it needs (R — Read, C — Content, I — Infrastructure). The tool names are useful if you want to suggest a specific path to the assistant or make sense of its reply; you can also ask in your own words without them.
Project, engine, and project file
| Tool | Rights | What it does |
|---|---|---|
| project_get_info | R | The project name and path, and whether there are unsaved changes. |
| engine_status | R | The state of the render engine. |
| project_save | C | Save the project or "Save As" to a new path. |
| project_collect | C | Collect the project together with media files into a folder or zip. |
| project_open | I | Open an .ls file. If there are unsaved changes, it refuses until the assistant is explicitly allowed to discard them. |
| project_new | I | Create an empty project (with the same caveat about unsaved changes). |
Program settings
Everything that is in the "Settings" window. settings_get (R) returns a full snapshot of the settings; the other tools are level I.
| Tool | What it changes |
|---|---|
| settings_update_startup | Startup and autosave: the project at launch, autostart with Windows, the scheduler, Art-Net at startup, backups. |
| settings_update_artnet | Art-Net output: network card, frame rate, send streams, OS routing, ArtSync. |
| settings_update_web_server | The built-in console web server. |
| settings_update_timecode | Timecode and the LTC input. |
| settings_update_osc | OSC reception. |
| settings_update_location | The site's coordinates for calculating sunrise and sunset. |
| settings_update_cache | The video cache. |
| settings_update_misc | Render rate, autopatching, undo history depth, and more. |
Mapping and patch
| Tool | Rights | What it does |
|---|---|---|
| mapping_summary, mapping_list_fixtures | R | A patch summary and the list of fixtures. |
| mapping_get_fixture_library | R | Find a fixture in the library. |
| mapping_add_spline, mapping_add_single_fixture | I | Add a spline or a single fixture by coordinates. |
| mapping_delete_fixtures, mapping_set_fixtures_type, mapping_rename_fixture | I | Delete, change the type, rename. |
| mapping_list_devices, mapping_assign_fixtures_to_port | R / I | List devices and assign fixtures to a port. |
| mapping_add_lightstream_player, mapping_add_artnet_converter, mapping_delete_player, mapping_update_player_settings | I | Add, delete, and configure players and converters. |
| patch_add_batch | I | Up to 500 fixtures or splines in one undo step, immediately with a port and a group. |
| patch_layout_grid | I | A "rows × columns" grid layout of identical fixtures or splines, with a name template ("Strip {n}", "R{row}C{col}"). |
| patch_move | I | Move patch elements on the field. |
| patch_set_geometry | I | Change the shape of a spline by points. |
| patch_move_to_port | I | Move fixtures to another port or unlink them from a port. |
| patch_set_address | I | Set the DMX universe and address. |
| patch_autopatch_port | I | Re-assign the addresses of a port's fixtures consecutively. |
Fixture groups
The same groups that stand behind Ctrl+1…9, the "By groups" mode, and the layer group masks.
| Tool | Rights | What it does |
|---|---|---|
| fixture_group_list, fixture_group_members | R | The list of groups and their membership. |
| fixture_group_create | I | Create a group immediately with its members and color. |
| fixture_group_add, fixture_group_remove | I | Add and remove fixtures. |
| fixture_group_rename, fixture_group_set_color, fixture_group_delete | I | Rename, recolor, delete. |
Devices and network
| Tool | Rights | What it does |
|---|---|---|
| device_list | R | The device tree with permanent identifiers. |
| device_list_network_adapters | R | The network cards of this computer. |
| device_create_converter | I | Create a converter inside a player or standalone, choosing the model (Converter 2, 6, 8 LITE, or Custom). The starting universe is the one following the last occupied. |
| device_update_converter | I | Name, model, IP, send mode, protocol, starting universe, universes per port, network card. |
| device_move_converter, device_delete_converter | I | Move a converter to another player or to the root, delete it. |
| device_update_port | I | The port mode (DMX or RS485) and the port's own universe. |
Fixture library
| Tool | Rights | What it does |
|---|---|---|
| fixture_library_get | R | The full description of a fixture type with all DMX modes and channels. |
| fixture_library_list_manufacturers | R | The list of manufacturers. |
| fixture_library_upsert | I | Create a fixture type from a datasheet or fix an existing one: channels, pixel grid, beam, manufacturer. |
| fixture_library_create_manufacturer | I | Add a manufacturer. |
| fixture_library_import_gdtf | I | Import a .gdtf file with all modes and the 3D model. If such a fixture already exists, the assistant can be told to: replace, keep both, or skip. |
| fixture_library_delete | I | Delete a user type that is not used in the project. |
In detail: adding a fixture to the library from a datasheet.
3D scene
| Tool | Rights | What it does |
|---|---|---|
| scene_summary, scene_list_objects | R | A scene summary and the list of objects (filterable by kind: fixtures, splines, models, folders, etc.). |
| scene_camera_set | R | The 3D View camera by preset (front, top…) or by "eye — target" points in meters — usually before a snapshot. |
| scene_transfer_from_mapping | I | Transfer patch elements to 3D — the same as the viewport's "Transfer" panel: onto the floor (xy), a wall (xz), or a side wall (yz) of a given size in meters. |
| scene_transfer_to_mapping | I | The reverse: fixtures and splines of the 3D scene go into the patch, onto the XY plane or through the current camera. |
| scene_set_transform | I | Position, rotation, and scale in meters, degrees, and percent. |
| scene_rename, scene_delete_objects | I | Rename and delete. |
| scene_create_folder, scene_move_to_folder | I | Folders of the "Objects" tree. |
| scene_import_model | I | Import a 3D model file as a single object or by parts. |
Scenes, layers, and effects
| Tool | Rights | What it does |
|---|---|---|
| composition_list, composition_get, composition_get_effect_params | R | The list of scenes, their contents, and effect parameters. |
| effects_list_categories | R | The catalog of the effect library. |
| composition_add, composition_delete, composition_rename, composition_set_duration | C | Create, delete, and rename a scene, and set its duration. |
| composition_add_effect, composition_remove_effect, composition_rename_effect | C | Add, delete (in any scene, open or not), and rename an effect. |
| composition_set_effect_param, composition_set_param_mode, composition_add_keyframe | C | A parameter value, a parameter mode, a keyframe. |
| composition_set_layer | C | A layer row in one step: name, eye, lock, time, opacity, blend mode, color label. |
| composition_set_layer_groups | C | A layer's fixture group masks. |
| composition_set_track_matte | C | A track matte with alpha or luma mode. |
| composition_reorder_layers | C | The order of layers in the stack (top level only, not inside folders). |
| composition_duplicate_layer | C | A copy of a layer, like Ctrl+D. |
| composition_remove_keyframes | C | Delete keys in a time range. |
| composition_set_function | C | A function on a parameter instead of keys: sine, line, pulse, noise. |
Playlists, calendar, playback
| Tool | Rights | What it does |
|---|---|---|
| playlist_list, playlist_get | R | Playlists and their contents. |
| playlist_create, playlist_delete, playlist_add_items, playlist_remove_items, playlist_rename | C | Playlist editing. |
| calendar_list_events | R | Schedule events. |
| calendar_create_event, calendar_update_event, calendar_delete_events | C | Schedule editing. |
| playback_status | R | What is currently on air, how much time has elapsed, the master brightness. |
| playback_play, playback_stop | C | Start a scene or playlist, fade to black. |
| playback_set_brightness | C | Master brightness in percent. |
| playback_set_group_mode | C | The "All fixtures / By groups" switch on the "Scenes" tab. |
| playback_group_control | C | Transport, scene or playlist assignment, and the brightness of an individual group in the "By groups" mode. The "No group" pseudo-group is denoted by the word ungrouped. |
Triggers
| Tool | Rights | What it does |
|---|---|---|
| trigger_list | R | The list of triggers with conditions and actions. |
| trigger_create | C | A new trigger: an input (Art-Net, MIDI, ModBus, weather, OSC, slider, button, toggle, color or text of the web console) → an effect parameter, master brightness, a scene launch, or control of a fixture group. |
| trigger_update, trigger_delete | C | Partial editing and deletion. |
Triggers are addressed by their number in the list, and after a deletion the numbers shift. About the triggers themselves: Triggers.
Verification
| Tool | Rights | What it does |
|---|---|---|
| verify_mapping | R | A report of problems: fixtures without a port, fixtures outside the field, address overflow, universe overlap between different converters, network cards missing on the PC, the license quota. |
| verify_screenshot | R | A snapshot of the 3D view or the mapping field right in the reply to the assistant (1280 pixels on the long side by default). |
| verify_artnet_status | R | The state of the Art-Net output: the license quota, traffic per network card. |
Scenario: Building a Venue's Mapping with AI
Below is a typical session from an empty project to verification. Each step is an ordinary phrase to the assistant; the parentheses show which tools it will call for that. The whole scenario requires all three permission levels.
1. Project
"Create a new project 'Mall Facade' and save it to the folder D:\Shows" (project_new, project_save). If the open project has unsaved changes, the assistant will first ask you what to do with them. The program can also be configured here: "open this project at startup and turn on Art-Net right away", "send Art-Net through the second network card" (settings_update_startup, settings_update_artnet, device_list_network_adapters).
2. A fixture into the library — from a datasheet
Put a PDF or a photo of the datasheet into the chat and ask it to add the fixture. The assistant will read the DMX table itself and create the fixture type: modes and channels, the pixel grid, the beam angle and dimensions, the manufacturer (fixture_library_upsert). A ready .gdtf file is better imported as is (fixture_library_import_gdtf).
- The fixture goes into the user library and is saved immediately. The public and LED libraries are not changed: if asked to fix a fixture from there, the assistant makes a copy of it in the user library, and the project's fixtures stay on the original.
- If a channel type from the datasheet is not recognized, the channel is still created as "other" — the assistant will warn you about it.
- While the "Fixture Library" window is open, editing through the AI is rejected — close the window and repeat.
- Only a user type that is not used in the project can be deleted.
3. Devices and ports
"Add a Converter 6 to the player, unicast to 2.0.0.10" (device_create_converter). The product model defines the number of ports, and the starting universe is the one following the occupied ones. Next come editing the IP, protocol, universes per port, and network card (device_update_converter), the DMX/RS485 mode and the port's own universe on the player (device_update_port), and moving the converter under another player (device_move_converter).
4. Fixtures in batches
"40 strips of 60 pixels every 2 cells vertically, onto port 1 of this converter, into the group 'Facade'" — this is a single patch_layout_grid call; for an irregular layout, the assistant passes ready-made coordinates to patch_add_batch. The port and the group can be set in the same call, and the addresses are assigned consecutively. The whole batch is one Ctrl+Z step.
Adjustments afterwards: move (patch_move), change the shape of a spline (patch_set_geometry), move to another port (patch_move_to_port), set the universe and address (patch_set_address), re-assign the port's addresses (patch_autopatch_port).
5. Fixture groups
"Put strips 1–20 into a blue group 'Left wing'" (fixture_group_create, fixture_group_add). The groups immediately work for Ctrl+1…9, for the "By groups" mode, and for the layer group masks.
6. 3D scene
"Place the facade in the scene as a 20 × 8 m wall" (scene_transfer_from_mapping with a wall plane and a size in meters). The objects arrive linked to their fixtures; after that they can be moved in meters (scene_set_transform), sorted into folders, and a building model can be imported (scene_import_model). The return trip — splines and fixtures drawn or brought into 3D — goes to the patch through scene_transfer_to_mapping.
7. Scenes, layers, and triggers
- "Create a scene 'Evening' with a gradient and a running fire" (composition_add, composition_add_effect).
- "Fire — 60% opacity, 'Screen' mode, only on the group 'Left wing'" (composition_set_layer, composition_set_layer_groups).
- "Put a slow sine on the gradient's speed instead of keys" (composition_set_function).
- "Fader 1 on the console over Art-Net controls the master brightness", "a button on the phone launches 'Evening'" (trigger_create).
- "Launch 'Evening'" (playback_play) — the result is immediately on the fixtures.
8. Verification
"Check the mapping and show the front 3D view" — the assistant will call verify_mapping, set the camera (scene_camera_set), and send a snapshot right into the chat (verify_screenshot). verify_artnet_status will confirm that DMX is going out and the license quota is not exceeded. If something is wrong, the fixes are made in the same conversation, and project_save saves the result.
Limitations and Notes
- No more than 500 elements per call — fixtures or splines in a batch, rows or columns of a grid, identifiers to delete. For more, the assistant will split the work into several calls (and undo steps).
- The fixture library is not in the undo history — as in the library window. A mistakenly created type is deleted with fixture_library_delete.
- An open "Fixture Library" window blocks editing through the AI: the window works with its own copy and on saving would overwrite the assistant's changes.
- 3D object identifiers (scene:N) live until the end of the session; device identifiers are permanent.
- Layer order can be changed only at the top level of a scene, not inside folders.
- A screenshot requires a valid license (there are no snapshots in the demo version), an open project, and a LightStream window that is not minimized.
- Model import through the AI asks no questions: splines and light sources from the model file are not transferred this way — there is a button on the model panel for them (see splines and light sources from a model).
- If an operation is impossible, the assistant gets a clear error text (not a faceless "an error occurred") and usually explains the reason itself or fixes the request.
Security
- The server is accessible only from this computer; the port is not open to the outside.
- Every request is checked against the token. Do not publish it. If the token could have fallen into the wrong hands, click "Reissue" on the "MCP" tab and update the config or the command in the client — the old token stops working.
- The program log does not record the whole token — only its last 4 characters, so logs and diagnostic packages can be sent to support safely. Earlier versions wrote the token to the log in full: if you sent logs or a diagnostic package from such a version, reissue the token.
- Keep the "Content" and "Infrastructure" levels turned off while you are not using the assistant.
If Something Does Not Work
| Symptom | Cause and solution |
|---|---|
| The server is not running, the switch has a lock | There is no valid license of 32U or higher, or it has expired. Click the switch — the window will name the reason. |
| The server does not start in a second copy of the program | MCP works only in the first launched instance of LightStream. |
| Claude Desktop says "Server transport closed unexpectedly" | Node.js is not installed. Install it from nodejs.org and restart Claude Desktop. |
| The client gets 401 Unauthorized | The token in the config does not match the current one (for example, after "Reissue"). Copy the config or the command again. |
| The assistant replies that the "Read", "Content", or "Infrastructure" level is turned off | Turn on the required level on the "MCP" tab — no restart is needed. |
| The port is occupied by another program | Change the port on the "MCP" tab and update the address in the client. |
| A fixture library edit was rejected | Close the "Fixture Library" window and repeat. |
| The snapshot does not arrive | Check the license, that the project is open, and that the LightStream window is not minimized. |