Skip to content
AlphaToolBox3D is in early alpha: features are incomplete and things can break. Use it at your own risk and keep copies of your files. Report a problem
ToolBox3D

Docs · MCP

MCP quick start

MCP (the Model Context Protocol) lets an AI assistant work in ToolBox3D with you: it reads the scene, runs the same operations as the menus and toolboxes, runs Python and looks at the viewport to check its work. Everything it does goes into the normal undo history.

Illustration

How it works

Your AI client starts a small program on your computer, the ToolBox3D MCP server, from the npm package @toolbox3d/mcp@0.1.0 (it runs with npx, so there is nothing to download by hand; the Windows app also ships it beside itself). The server waits on a local port (9876 unless you change it). When MCP is on in ToolBox3D, the editor connects to that port and proves it is yours with a token. Nothing leaves your computer: the connection is local, and the editor in your browser tab does the work.

Let your agent set it up

The quickest way: pick your AI client, press Copy and send the prompt to it. Your agent registers the server, has you turn on MCP in ToolBox3D and checks the connection. Inside ToolBox3D, Help › Help › MCP has the same card with your token already filled in.

Copy and send this to your agent

Set up the ToolBox3D MCP server in Claude Code for me, so you can work in my ToolBox3D scene.
1. Check that Node.js 18 or newer is installed (node --version). If it is missing, ask me to install it from nodejs.org first.
2. The ToolBox3D token is PASTE-YOUR-TOKEN. If it still reads PASTE-YOUR-TOKEN, ask me for it: in ToolBox3D, Settings, MCP, turn on Enable MCP and press Copy beside Token.
3. Register it for all my projects:
   claude mcp add-json toolbox3d --scope user '{ "type": "stdio", "command": "npx", "args": ["-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"], "env": { "TOOLBOX3D_MCP_TOKEN": "PASTE-YOUR-TOKEN" } }'
   On native Windows (not WSL) use "command": "cmd", "args": ["/c", "npx", "-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"] instead of the npx command. Check it with: claude mcp list
4. Make sure MCP is on in ToolBox3D (toolbox3d.app/editor or the desktop app): Settings, MCP, Enable MCP. If the browser asks to let toolbox3d.app access apps on this device, I choose Allow.
5. Start a new Claude Code session so it loads the server, then call the toolbox3d get_status tool and tell me whether ToolBox3D is connected. If it is still waiting, wait for me to finish step 4 and call it again.
Set up the ToolBox3D MCP server in Claude Desktop for me, so you can work in my ToolBox3D scene.
1. Check that Node.js 18 or newer is installed (node --version). If it is missing, ask me to install it from nodejs.org first.
2. The ToolBox3D token is PASTE-YOUR-TOKEN. If it still reads PASTE-YOUR-TOKEN, ask me for it: in ToolBox3D, Settings, MCP, turn on Enable MCP and press Copy beside Token.
3. Add it to Claude Desktop's config file (Windows: %APPDATA%\Claude\claude_desktop_config.json, macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; create the file if it is missing). Under "mcpServers", keeping any servers already there, add:
   "toolbox3d": { "command": "npx", "args": ["-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"], "env": { "TOOLBOX3D_MCP_TOKEN": "PASTE-YOUR-TOKEN" } }
   On Windows use "command": "cmd", "args": ["/c", "npx", "-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"] instead of the npx command.
4. Make sure MCP is on in ToolBox3D (toolbox3d.app/editor or the desktop app): Settings, MCP, Enable MCP. If the browser asks to let toolbox3d.app access apps on this device, I choose Allow.
5. Ask me to quit Claude Desktop completely (tray icon, Quit) and open it again, then call the toolbox3d get_status tool and tell me whether ToolBox3D is connected. If it is still waiting, wait for me to finish step 4 and call it again.
Set up the ToolBox3D MCP server in Codex CLI for me, so you can work in my ToolBox3D scene.
1. Check that Node.js 18 or newer is installed (node --version). If it is missing, ask me to install it from nodejs.org first.
2. The ToolBox3D token is PASTE-YOUR-TOKEN. If it still reads PASTE-YOUR-TOKEN, ask me for it: in ToolBox3D, Settings, MCP, turn on Enable MCP and press Copy beside Token.
3. Register it:
   codex mcp add toolbox3d --env TOOLBOX3D_MCP_TOKEN=PASTE-YOUR-TOKEN -- npx -y @toolbox3d/mcp@0.1.0 --port 9876
   On Windows, if the server does not start, put cmd /c before npx. Check it with: codex mcp list
4. Make sure MCP is on in ToolBox3D (toolbox3d.app/editor or the desktop app): Settings, MCP, Enable MCP. If the browser asks to let toolbox3d.app access apps on this device, I choose Allow.
5. Start a new Codex session so it loads the server, then call the toolbox3d get_status tool and tell me whether ToolBox3D is connected. If it is still waiting, wait for me to finish step 4 and call it again.
Set up the ToolBox3D MCP server in Cursor for me, so you can work in my ToolBox3D scene.
1. Check that Node.js 18 or newer is installed (node --version). If it is missing, ask me to install it from nodejs.org first.
2. The ToolBox3D token is PASTE-YOUR-TOKEN. If it still reads PASTE-YOUR-TOKEN, ask me for it: in ToolBox3D, Settings, MCP, turn on Enable MCP and press Copy beside Token.
3. Add it to Cursor's global MCP file ~/.cursor/mcp.json (create it if it is missing). Under "mcpServers", keeping any servers already there, add:
   "toolbox3d": { "type": "stdio", "command": "npx", "args": ["-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"], "env": { "TOOLBOX3D_MCP_TOKEN": "PASTE-YOUR-TOKEN" } }
4. Make sure MCP is on in ToolBox3D (toolbox3d.app/editor or the desktop app): Settings, MCP, Enable MCP. If the browser asks to let toolbox3d.app access apps on this device, I choose Allow.
5. Ask me to open Cursor Settings, MCP and switch toolbox3d on, then call the toolbox3d get_status tool and tell me whether ToolBox3D is connected. If it is still waiting, wait for me to finish step 4 and call it again.
Set up the ToolBox3D MCP server in VS Code for me, so you can work in my ToolBox3D scene.
1. Check that Node.js 18 or newer is installed (node --version). If it is missing, ask me to install it from nodejs.org first.
2. The ToolBox3D token is PASTE-YOUR-TOKEN. If it still reads PASTE-YOUR-TOKEN, ask me for it: in ToolBox3D, Settings, MCP, turn on Enable MCP and press Copy beside Token.
3. Add it to VS Code:
   code --add-mcp '{ "name": "toolbox3d", "type": "stdio", "command": "npx", "args": ["-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"], "env": { "TOOLBOX3D_MCP_TOKEN": "PASTE-YOUR-TOKEN" } }'
4. Make sure MCP is on in ToolBox3D (toolbox3d.app/editor or the desktop app): Settings, MCP, Enable MCP. If the browser asks to let toolbox3d.app access apps on this device, I choose Allow.
5. Run MCP: List Servers in VS Code and start toolbox3d, then call the toolbox3d get_status tool and tell me whether ToolBox3D is connected. If it is still waiting, wait for me to finish step 4 and call it again.
Set up the ToolBox3D MCP server in Gemini CLI for me, so you can work in my ToolBox3D scene.
1. Check that Node.js 18 or newer is installed (node --version). If it is missing, ask me to install it from nodejs.org first.
2. The ToolBox3D token is PASTE-YOUR-TOKEN. If it still reads PASTE-YOUR-TOKEN, ask me for it: in ToolBox3D, Settings, MCP, turn on Enable MCP and press Copy beside Token.
3. Add it to Gemini CLI's user settings ~/.gemini/settings.json (create it if it is missing). Under "mcpServers", keeping any servers already there, add:
   "toolbox3d": { "command": "npx", "args": ["-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"], "env": { "TOOLBOX3D_MCP_TOKEN": "PASTE-YOUR-TOKEN" } }
4. Make sure MCP is on in ToolBox3D (toolbox3d.app/editor or the desktop app): Settings, MCP, Enable MCP. If the browser asks to let toolbox3d.app access apps on this device, I choose Allow.
5. Start a new Gemini CLI session so it loads the server, then call the toolbox3d get_status tool and tell me whether ToolBox3D is connected. If it is still waiting, wait for me to finish step 4 and call it again.

Rather do it yourself? Follow the four steps below.

1. Install Node.js

The server runs through npx, which comes with Node.js 18 or newer. Check with node --version in a terminal; install Node.js if the command is missing.

2. Turn on MCP

  1. Open toolbox3d.app/editor in Chrome, Edge or Firefox.
  2. Open Settings and choose the MCP tab.
  3. Turn on Enable MCP. ToolBox3D creates a token and shows Waiting for the MCP server until your client starts the server.
  4. Select Copy Configuration.

Turn on Read-only if the assistant should only look: it can then read the scene, take screenshots and run read-only operations, but not change anything or run Python.

Interface Control (on by default, and on again each time you enable MCP) lets the assistant click, type and drag in ToolBox3D's own interface, the way you would. Turn it off in Settings ▸ MCP if you want the assistant to work through operations only.

Python is off until you turn it on. With it on, the assistant can run Python scripts in ToolBox3D. In the desktop app a script can read and write your files and start programs, so turn it on only for an assistant you trust.

3. Add ToolBox3D to your client

Claude Desktop, Cursor and other clients with a JSON configuration

Paste the copied configuration into the client's MCP settings. In Claude Desktop, open Settings › Developer › Edit Config; in Cursor, Settings › MCP. If the file already has an mcpServers section, add the toolbox3d entry to it. It looks like this, with your own token:

{
  "mcpServers": {
    "toolbox3d": {
      "command": "npx",
      "args": ["-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"],
      "env": { "TOOLBOX3D_MCP_TOKEN": "your-token-from-settings" }
    }
  }
}

On Windows, Claude Desktop and some other clients cannot start npx directly: use "command": "cmd" with "args": ["/c", "npx", "-y", "@toolbox3d/mcp@0.1.0", "--port", "9876"]. Restart the client. In ToolBox3D the status changes to Connected.

Claude Code

Select Copy Claude Code Command in Settings › MCP and run it in a terminal. It looks like this:

claude mcp add toolbox3d -e TOOLBOX3D_MCP_TOKEN=your-token-from-settings -- npx -y @toolbox3d/mcp@0.1.0 --port 9876

4. Try it

Ask the assistant something small first, then build up:

  • “What is in my ToolBox3D scene?”
  • “Switch to the Model editor, add a cube called Crate, bevel its edges and show me a screenshot.”
  • “Write a Python script that places ten posts in a row, then undo it.”

Python the assistant runs appears in the Script Editor's MCP tab, so you can read it, keep it or run it again yourself.

What the assistant can do

ToolWhat it does
get_statusWhether ToolBox3D is connected, the active editor and whether edits are allowed. It answers even when ToolBox3D is not connected, so it is the first thing to call when something fails.
get_scene_infoEvery object with its name, path, kind, parent and transform, plus counts, materials, animation clips and the selection. The deep mode adds mesh topology, bounds, bones and clip details.
get_object_infoOne object in detail: kind, parent, transform, visibility, selection, its mesh's topology, bounds and materials.
get_viewport_screenshotAn image of the 3D view as you see it, or two to four images orbiting around the scene (the view is put back afterwards).
list_operations, describe_operationFind operations (the same ones the menus, toolboxes and Python use) and read their parameters, defaults, ranges and units.
run_operationRun an operation exactly as the UI does, as one undo step. An operation another editor owns switches to that editor first.
run_pythonRun a Python script with the toolbox3d package. The script shows in the Script Editor's MCP tab and the whole run is one undo step. Needs Settings ▸ MCP ▸ Python on.
switch_editor, preview_switchChange editor (Previewer, Model, Control Rig, Animation, Texture Paint). When the switch would raise Changes Detected, preview_switch lists those rows first and the assistant answers them, or asks you.
undo, redoStep back and forward through the active editor's history, your own steps included.
drive_uiFind widgets on screen and, with Interface Control on, click, type, press keys, drag, hover, scroll and zoom like an artist. Settings, saving, exporting and running Script Editor code are always refused.

The assistant refers to objects by name or path, the same way you see them in the Outliner.

Without a window: --headless

Started with --headless (add it to the server's args), the server runs ToolBox3D's operations itself, with no editor open, against a document of its own. An assistant can then set up, paint, bake on the CPU and export textures on a machine with nothing else running. It can also build material graphs (create materials, add and connect nodes, set parameters), render a node's output as an image, export a material's texture maps, and give a material to Texture Paint as a live fill. Three tools exist only in this mode: open_file opens a model or project from disk, save_project saves it as a ToolBox3D project (.tb3d) and write_export writes files to a folder: a finished texture export, a rendered node image, or the maps of the last material map export. On a machine with a graphics card the headless server runs ToolBox3D itself with no window, so lit material previews render as in the app; without one it does the CPU work only and says so for lit previews. The server reads and writes files only inside the folders it is given: --root <folder> for one it may read and write, --read-root and --write-root for one way only (each may be repeated). Any path outside them is refused before anything is read or written. Viewport screenshots and Python are refused with the reason: a script could reach files outside those folders, so run scripts with tbpy.

Privacy and safety

  • MCP is off until you turn it on, and you can turn it off at any time in Settings › MCP.
  • The server listens only on your own computer (127.0.0.1) and accepts only an editor that knows the token. New Token cuts off every client until you paste the new configuration.
  • One ToolBox3D window connects at a time.
  • An assistant cannot change your ToolBox3D settings or switch Read-only off. Python only runs with Settings ▸ MCP ▸ Python on; it can then do what your own scripts can, such as saving files. Turn on Read-only when you only want answers.
  • What the assistant sees (scene data and screenshots) goes to your AI provider under that provider's terms.

Troubleshooting

  • Waiting for the MCP server stays on: start or restart your AI client; it starts the server. Check that the port in Settings › MCP matches --port in the configuration, and that node --version works in a terminal.
  • Refused with a token message: copy the configuration again and restart the client. The token changes when you select New Token.
  • Refused because another window is connected: close the other ToolBox3D tab or window, or turn MCP off there.
  • In the browser, Chrome may ask whether toolbox3d.app may access apps on this device. Choose Allow. Safari does not allow these local connections; use Chrome, Edge or Firefox.
  • Ask the assistant to call get_status: it reports what the server sees even when ToolBox3D is not connected.