Set up MCP Pro for Toolbag with Claude Code, Cursor or Claude Desktop
MCP Pro for Toolbag has two parts: the MCP server toolbag-mcp, a Python program your AI client starts, and the Toolbag plugin MCP Pro for Toolbag, a regular Marmoset Toolbag 5 Python plugin that opens a 127.0.0.1-only bridge inside Toolbag. This guide installs both, starts the bridge and connects your client. It follows INSTALL.md from the download and takes about ten minutes.
Requirements
- Marmoset Toolbag 5, licensed from Marmoset. Verified: Toolbag 5.03 (build 5033) on Windows 11. macOS has not been tested, and the install and launch scripts below are Windows PowerShell scripts.
- Python 3.10 or later for the server (
python --version). The plugin itself runs on Toolbag's embedded Python 3.12. - An MCP client: Claude Code, Cursor, Claude Desktop, Windsurf, Cline, or another client that can start a local stdio server.
Unzip the download to a permanent place, for example D:\tools\mcp-pro-for-toolbag. The AI client runs the server from there. No admin rights are needed.
mcp-pro-for-toolbag-v0.1.0/
server/ MCP server (Python package)
plugin/MCP Pro for Toolbag/ Toolbag plugin
scripts/ install_plugin.ps1, start_toolbag.ps1
examples/ scripted use without an AI client
README.md INSTALL.md CHANGELOG.md SECURITY.md LICENSE
1. Install the MCP server
Create a virtual environment in the unpacked folder and install the package into it:
python -m venv .venv
.venv\Scripts\pip install .
.venv\Scripts\toolbag-mcp --version
This also installs toolbag-cli, a small command-line client for checking the connection.
2. Install the Toolbag plugin
powershell -ExecutionPolicy Bypass -File scripts\install_plugin.ps1
It copies plugin\MCP Pro for Toolbag into Toolbag's user plugin folder, %LOCALAPPDATA%\Marmoset Toolbag 5\plugins\MCP Pro for Toolbag\. Options: -PluginsDir <path>, -Dev (a junction for plugin development), -Uninstall.
By hand: copy the folder plugin/MCP Pro for Toolbag with everything inside into the plugins folder, so that plugins/MCP Pro for Toolbag/__main__.py exists.
3. Start the bridge
Toolbag plugins do not start by themselves. Two ways:
A. Start Toolbag with the bridge (recommended, verified).
powershell -ExecutionPolicy Bypass -File scripts\start_toolbag.ps1
This runs toolbag.exe with the plugin's __main__.py on its command line (Toolbag executes a Python file given there at start-up) and waits until the bridge answers and Toolbag is ticking. -Scene C:\path\scene.tbscene opens a scene once the bridge is up; -Exe points at another toolbag.exe. A desktop shortcut with the same command line works too:
"C:\Program Files\Marmoset\Toolbag 5\toolbag.exe" "%LOCALAPPDATA%\Marmoset Toolbag 5\plugins\MCP Pro for Toolbag\__main__.py"
B. From Toolbag's menu. With Toolbag already open, choose Edit > Plugins > MCP Pro for Toolbag. The plugin starts the bridge and keeps running until Toolbag quits; choosing it again while it runs is harmless (the new copy takes over the same port and the old one stops).
The menu path follows Toolbag's plugin documentation. This release was verified by starting the same __main__.py from the command line, not by clicking the menu.
4a. Claude Code
Use the absolute path of toolbag-mcp in your virtual environment:
claude mcp add toolbag -- D:/tools/mcp-pro-for-toolbag/.venv/Scripts/toolbag-mcp.exe --mode default
Run claude mcp list to see the entry.
4b. Cursor
Cursor reads ~/.cursor/mcp.json, or .cursor/mcp.json in a project:
{
"mcpServers": {
"toolbag": {
"command": "D:/tools/mcp-pro-for-toolbag/.venv/Scripts/toolbag-mcp.exe",
"args": ["--mode", "default"]
}
}
}
4c. Claude Desktop
Add the same mcpServers entry to claude_desktop_config.json and restart Claude Desktop.
4d. Windsurf, Cline and others
Most MCP clients use the same command + args shape. They have not been individually tested. If your client caps or warns about the number of tools, use --mode lite (62 tools) or --mode minimal (24 tools).
5. Check the connection
~/.toolbag_mcp_pro/bridge.jsonappears (port, token, Toolbag's process id). The token file is readable by your user only..venv\Scripts\toolbag-cli statusprints Toolbag's version and the scene.curl http://127.0.0.1:60090/healthreturns{"ok": true, "ticks": ...}and the tick counter grows.- Toolbag's log (
%LOCALAPPDATA%\Marmoset Toolbag 5\log.txt) has a line[MCP Pro for Toolbag] bridge 0.1.0 listening on 127.0.0.1:60090.
In your AI client, ask it to call toolbag_connect: it reports the Toolbag and bridge versions and the scene.
6. Pick a mode
| Mode | Tools | For |
|---|---|---|
minimal | 24 | import, materials from folders, lighting preset, framing, preview, render, bake, export, main recipes |
lite | 62 | everyday work; small context |
default | 98 | everything except plugin development; works with clients that cap at about 100 tools |
full | 99 | everything, plus reload_bridge |
No mode contains a tool that runs arbitrary code. Server options: --port N (default from bridge.json, else 60090), --timeout S (default per-call timeout, 120), --wake nudge|activate|off (below), -v / -vv (log to stderr).
Toolbag must be awake. Toolbag 5 only runs plugin scripts while its window is the active window: once you click your terminal or AI app, the bridge cannot answer, even with Toolbag visible next to it. On Windows the MCP server handles this. With --wake nudge (the default, or TOOLBAG_MCP_WAKE in your client's env block) it sends Toolbag a window-activation message before each call while Toolbag is inactive: Toolbag answers within about a second and keeps running, keyboard focus stays in your app, and a minimized Toolbag is restored (no focus, same size). --wake activate also brings Toolbag to the front if that is not enough; --wake off leaves Toolbag's window alone, and calls then fail at once asking you to click Toolbag. On macOS (untested) keep Toolbag in front.
Long work and timeouts
Bakes, final renders, pass sheets, turnarounds, videos, texture-project exports and recipes run as jobs inside the bridge. Each such tool waits at most wait_timeout seconds (default 50, recipes 120) and then returns pending: true with a job_id; the AI calls wait_job(job_id) to collect the result, and list_jobs shows what is running. wait=false returns the job id at once. No single MCP call has to outlive your client's tool timeout.
While Toolbag bakes or renders, its window and the bridge are busy until that step finishes. That is a Toolbag property (long calls hold Python's lock), and it is the reason long tools are jobs.
First prompts
- "Bake
D:/art/crate_high.fbxontoD:/art/crate_low.fbxat 2K with normal, AO, curvature and thickness, and show me the maps." - "Import
D:/art/chair.fbx, use the Painter export inD:/art/chair_tex, light it like a studio product shot and render a 3/4 view at 1920x1080." - "Make portfolio shots of the helmet from front, three-quarter, side and top with a transparent background."
- "Render a turntable video of the model and export a Marmoset Viewer file."
Updating and uninstalling
Update: install the new server (pip install . again) and the new plugin (run the install script again), then restart Toolbag. toolbag_connect shows bridge.bridge_version.
Uninstall: scripts\install_plugin.ps1 -Uninstall (or delete the plugins\MCP Pro for Toolbag folder), delete .venv, optionally ~/.toolbag_mcp_pro, and remove the server entry from your client.
Troubleshooting
- "Cannot reach the Toolbag bridge": Toolbag is not running, or the plugin was not started (step 3). Toolbag's log shows Python errors of the plugin.
- TimeoutError, or the health ticks do not grow: Toolbag is busy (a bake or render), shows a dialog or sign-in window, or is not the active window and could not be woken (see Toolbag must be awake). Click Toolbag and answer any dialog; the bridge only works while Toolbag runs its periodic updates. After Toolbag was killed, the next start sometimes ran no plugin callbacks until Toolbag was looked at;
start_toolbag.ps1waits for ticks and tells you when that happens. - Ambiguous: names repeat in Toolbag (every bake group has
HighandLow). Use the#uidids fromlist_objects/find_objects. - Port in use: the bridge moves to 60091-60099 by itself. If you pinned
TOOLBAG_MCP_PORT, pass the same--porttotoolbag-mcp. - glTF import: Toolbag 5 imports FBX / OBJ / USD but not glTF / GLB.
Get MCP Pro for Toolbag
$15 once on itch.io (Early Access), updates included.