---
title: "Vantage Scene MCP"
canonical: "https://documentation.chaos.com/space/LAV/1505853480/Vantage+Scene+MCP"
format: markdown
---
This page provides information about Scene MCP in Chaos Vantage.


## **Overview**

---

Scene MCP lets an AI assistant, such as Claude, Codex, etc. work with the scene open in Vantage. You describe what you want in plain language, for example "make the sun lower and warmer" or "list every light brighter than 50", and the assistant makes the change, captures the viewport and shows you the result.

MCP (Model Context Protocol) is an open standard that AI assistants use to connect to other applications. Vantage includes an MCP server that runs on your computer and accepts connections only from applications on the same computer.

It is meant for quick batch edits, scene inspection, look development by conversation, and writing scene scripts without coding. The assistant works through the same Python engine as Vantage scripting, so anything a script can change, the assistant can change too. For more information, see <u>[Vantage Scripting](https://docs-chaos.atlassian.net/wiki/spaces/LAV/pages/1506541903)</u>.

> ⚠️ The Vantage MCP server cannot create basic meshes. It can only import meshes from the Cosmos library or create geometry in a new scene.

> ℹ️ By default, scripts run by MCP clients run in a sandbox that isolates them from the rest of the system. Scripts can access only the folders and resources allowed in **Edit menu > Preferences > Scripting**.


## **How Scene MCP Works**

---

Every request follows the same cycle:

1. **You ask.** You describe what you want in your AI client.
2. **The assistant plans.** It checks the state of Vantage and the scene, and decides which tools to use.
3. **Vantage runs the request.** The assistant's Python code runs in the same engine as scene scripts. When the code finishes, Vantage applies all its changes at once and adds them to the undo history.
4. **The assistant checks the result.** It captures the viewport, looks at the image and tells you what changed, or adjusts and tries again.


## **Getting Started**

---

### **Enabling Scene MCP**

1. Open **Preferences > Scripting** and find the **Scene MCP** group.
2. Check **Enable** to start the server for the current session, or **Enable at startup** to start it every time Vantage starts.
3. Optionally, change the **Port**. The default is 20704.
4. Copy the address shown in the URL, for example [http://127.0.0.1:20704/scene_mcp](http://127.0.0.1:20704/scene_mcp), with the copy button next to it.

You can also start the server from the command line with **--startSceneMcp**, and choose a port for the session with **--sceneMcpPort <port>**.

> ℹ️ When the server starts, the Vantage log shows "Scene MCP server listening on port" followed by the port number. If the port is already in use, the log shows an error and **Enable** is cleared.


### **Connecting an AI Assistant**

Add the URL as an MCP server in your AI client. Scene MCP uses the HTTP connection. For example, in Claude Code run:

claude mcp add --transport http vantage [http://127.0.0.1:20704/scene_mcp](http://127.0.0.1:20704/scene_mcp)

For clients that only support local (studio) MCP servers, use a bridge that connects them to an HTTP server.

Once connected, the assistant reads the guides that Vantage provides: an introduction, a description of every tool, the scripting API reference and the sample scripts. It needs no other setup to start working with the scene.


## **What an Assistant Can Do**

---

Scene MCP gives the assistant a small set of tools. It combines them to carry out your request.


| **Tool** | **What it does** |
| --- | --- |
| **get_core_information** | Reports the Vantage version and the Python and NumPy versions it runs. |
| **get_status** | Reports the open scene and script, unsaved changes, the number of objects, lights, cameras and materials, the animation and walk mode state, and what the sandbox allows. |
| **list_recent_files** | Lists recently opened scenes and scripts. |
| **open_scene_or_script** | Opens a .vantage or .vrscene scene, or a .py scene script. Also reloads them. |
| **save_scene_or_script** | Saves the scene or the script, like **Save** and **Save As**. |
| **close_scene_or_script** | Closes the script or the scene. |
| **run_python** | Runs Python code against the open scene. This is how the assistant looks at and changes lights, cameras, objects and materials. |
| **capture_viewport** | Returns the image shown in the viewport, so the assistant can see the result of its changes. |
| **save_viewport** | Saves the image shown in the viewport to a PNG file. |
| **control_undo** | Lists the undo history, groups changes into a named undo step, or undoes the last step. |


With **run_python**, the assistant can do everything described in <u>[Vantage Scripting](https://docs-chaos.atlassian.net/wiki/spaces/LAV/pages/1506541903)</u>: move, hide and re-material objects, change lights and cameras, create new lights and cameras, and find what is under a point in the image. It can also write a scene script for you, load it, read the errors and fix them.

> ℹ️ When no scene is open, on the Home screen, only **get_status**, **list_recent_files** and **open_scene_or_script** are available.


## **Example Requests**

---

The table below shows typical requests and what the assistant does to carry them out.


| **You ask** | **The assistant** |
| --- | --- |
| "Dim every interior light by 30%." | Lists the lights, lowers their intensity in one undo step and captures the viewport. |
| "Set up a golden-hour sun." | Sets the sun's altitude and azimuth, warms the light and shows you the result. |
| "Which lights cast no shadows?" | Goes through every light and lists the ones with shadows off. |
| "Try three fabrics on the sofa and show me each." | Applies materials from the Material Browser one by one and captures a picture of each. |
| "Create four review cameras around the car." | Uses the box around the car to place four new cameras that look at it. |
| "Switch the lighting mood when I press keys 1 to 4." | Writes a scene script, loads it, checks the log for errors and fixes them. |
| "Open the last scene I worked on." | Lists recent files and opens the most recent scene. |


## **Staying in Control**

---

**Undo** – Changes made by the assistant are added to the Vantage undo history as **Scene MCP changes**. You can revert them with **Ctrl+Z**, like any change you make by hand. If the assistant's code fails partway, none of its changes are applied.

**Sandbox** – Python run by the assistant uses the same sandbox as scene scripts, set in **Preferences > Scripting > Script sandbox**. By default it cannot reach the network, start other programs or read files outside the script and scene folders.

**Warnings** – If the sandbox is off and **Warn when scripts run without the sandbox** is checked, Vantage asks for confirmation before it starts the MCP server.

**Local only** – The server accepts connections only from applications on your computer.

**Live viewport** – Vantage keeps rendering while the AI client window has focus, so you can watch the changes happen.

> ✅ For more information about MCP settings, see the [Edit Menu](https://docs-chaos.atlassian.net/wiki/spaces/LAV/pages/124621189) page.


## **Current Limitations**

---

The assistant can do what Vantage scripting can do, so the limits of scripting apply here too. For the full list, see <u>[Vantage Scripting](https://docs-chaos.atlassian.net/wiki/spaces/LAV/pages/1506541903)</u>. The most noticeable ones are:

- **Fine-tune materials, the environment, post-processing or render settings.** The assistant can swap whole materials and change lights, cameras and objects, but not edit material parameters, the sky, the background, effects or quality settings.
- **Render stills or animations, or control the timeline.** The assistant can capture the viewport, but not start a render or play the animation.
- **Switch the active camera or change scene states.**
- **Open formats other than .vantage and .vrscene.** USD and other formats are not supported yet.
- **Work with Live Link scenes.** A Live Link scene cannot be closed, replaced or saved over MCP, and Python cannot run on it.
- **Register scene script events.** Code run by the assistant runs once. For behavior that reacts to keys, clicks or the animation, the assistant must write and load a scene script.
- **Run several requests at once.** A new request is refused while another request, a scene load or a script load is still running.


## **Good to Know**

---

- **Save before you hand over control.** Scene MCP shows no dialogs, so opening or closing a scene over MCP does not ask about unsaved changes.
- **Ask for a capture.** Asking the assistant to show you the viewport after a change is the quickest way to check it understood you.
- **Name things clearly.** The assistant finds objects, lights and cameras by their scene names, so clear names make requests easier to follow.
- **The assistant shares the scene script's Python.** Code the assistant runs can see the loaded scene script, and while it runs, the scene script's events are paused.
- **A Chaos Cosmos sign-in can block a request.** If a scene needs Cosmos assets and you are not signed in, sign in in Vantage first.
- **Keep the port free.** If another application uses port 20704, choose a different **Port** and update the URL in your AI client.

> ✅ For more information about scene scripts and what Python in Vantage can change, see <u>[Vantage Scripting](https://docs-chaos.atlassian.net/wiki/spaces/LAV/pages/1506541903)</u>.