---
title: "MCP Servers"
canonical: "https://documentation.chaos.com/space/VRHINO/1451983078/MCP+Servers"
format: markdown
---
This page provides information about the MCP Servers in V-Ray for Rhino. 


## **Overview**

---

The Model Context Protocol (MCP) is an open standard that lets an external AI agent talk to an application. V-Ray exposes two MCP servers, so an agent such as Claude Desktop or Claude Code can work directly in your scene instead of describing what you should click.

**Asset Editor MCP** gives the agent access to the V-Ray Asset Editor. It can list, create, rename, duplicate and delete assets, change their parameters, reference one asset into another, apply materials to the selection or to a layer, apply the bundled presets, read and change the render settings, render an asset preview or the current view, and read V-Ray's own tooltip text for any parameter before choosing a value.

**Chaos Cosmos MCP** gives the agent access to the Chaos Cosmos library, so it can search for content and import a package into the scene.

The MCP Servers section lists the address of each server. You copy the address and add it to your agent's configuration.

> ℹ️ An agent connected over MCP edits your scene directly. Most of its actions can be undone from Rhino's Undo, but some — applying a preset, deleting an asset — overwrite or remove data without a confirmation dialog. Review what the agent proposes before you let it run.



## **UI Path**

---

||V-Ray Asset Editor|| > **Settings** > **MPC Servers**

![Rhino8_VRay7.5_Settings_MPC.png](media://3bb1cd2a-cb6b-4c54-8d0d-54931cf83a30)



## **MCP Servers**

---

**Asset Editor MCP** – The address of the Asset Editor MCP server, by default <u>[http://127.0.0.1:7337/mcp](http://127.0.0.1:7337/mcp*)</u>. Use the button next to the field to copy it.

**Chaos Cosmos MCP** – The address of the Chaos Cosmos MCP server - <u>[http://127.0.0.1:30305/mcp](http://127.0.0.1:30305/mcp)</u>. Use the button next to the field to copy it.

Both servers listen on the local machine only. Nothing is exposed to the network.



## **Connecting an agent**

---

> ℹ️ The exact steps depend on your agent.

1. Start the host application and open the Asset Editor in it.
2. Go to Settings > MCP Servers > copy the URL <u>[http://127.0.0.1:7337/mcp](http://127.0.0.1:7337/mcp*)</u> when needed.

For Claude Code:

1. Install Claude Code.
  - In PowerShell: `irm https://claude.ai/install.ps1 | iex`

  - Or in CMD: `curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd`

2. Sign in and check if everything is ok in newly opened terminal with: `claude --version`
3. **Register the V-Ray server:** Run the following command in the terminal:

   `claude mcp add --transport http asset-editor http://127.0.0.1:7337/mcp -s user`

4. **Register the Cosmos server:** Run the following command in the terminal:

   `claude mcp add --transport http cosmos http://127.0.0.1:30305/mcp -s user`

**Note:** `-s user` stores it in the user config so it’s available in every project directory, not just the one the user is in. Drop `-s user` so the registered server will be only in the current folder.

5. Verify the mcp is connected with: `claude mcp list`

Claude:

1. Open the **Code** tab in Claude and start a conversation in the folder you want to work from.
2. Ask for what you need in plain words, for example:
  - `Create a blue transparent material and apply it to the selection.`

> ℹ️ The agent reads V-Ray's own parameter tooltips and the official V-Ray documentation for Rhino before it acts, so you do not need to paste links or parameter names into the conversation.



## **Several open documents**

---

A separate V-Ray instance runs for every open document, across Rhino and SketchUp, and all of them share one address. The first instance to start owns the port and forwards each call to the instance it is meant for, so your agent stays connected to a single address no matter how many documents are open. Because of this, the agent asks V-Ray which documents are open and picks one before it makes any change. If more than one open document could be what you mean, it should ask you which.

With “list the V-Ray instances“ (`list_instances` tool) all the documents with active V-Ray will be shown with the info for their document names, scene IDs, host application and its master status (owner of the port or not). A document that has never been saved is listed as “Untitled”.

If the instance that owns the port is closed, another one takes over within about a second. Your agent reconnects to the same address, the conversation continues, but the agent has to start a new session with the server, and the process IDs it had are no longer valid.

**Note: **The agents can work with multiple instances if it is specified what to do in which document (with unique `pid`).

> ℹ️ The default Asset Editor’s port is 7337. It can be overridden with the `VRAY_NEUI_MCP_PORT` environment variable. Instances only share a port with other instances set to the same value.



## **Turning the MCP servers off**

---

The Asset Editor MCP server follow the same switch as the other V-Ray AI features. With the `CHAOS_DISABLE_GEN_AI` environment variable set, it does not start, no agent can connect, and the MCP section is not shown in the Asset Editor’s UI Settings tab.



## **Notes**

---

- An asset preview the agent requests uses the same renderer as the Asset Editor's preview. On CUDA, the preview stops rendering while the V-Ray window is not in focus, so the agent may report the preview as stopped and show the last image it got.