Marmoset Toolbag 5 MCP Server
Enables AI assistants to control Marmoset Toolbag 5 for 3D rendering, lighting, scene management, and more via natural language.
README
šØ Marmoset Toolbag 5 ā MCP Server
Control Marmoset Toolbag 5 from any MCP-compatible AI client (Claude Desktop, Cursor, Windsurf, Agent Zero, etc.).
No more being the middle-man ā your AI assistant talks directly to Marmoset.
Architecture
āāāāāāāāāāāāāāāāāāāā stdio āāāāāāāāāāāāāāāāāāāā HTTP āāāāāāāāāāāāāāāāāāāāāāāā
ā Claude Desktop āāāāāāāāāāāāāāāāāŗā MCP Server āāāāāāāāāāāāāŗā MCP Bridge Plugin ā
ā Cursor / etc. ā (MCP) ā server.py ā :8765 ā (inside Toolbag) ā
ā ā ā (your machine) ā ā auto-loads on start ā
āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāā
Two components:
- MCP_Bridge.py ā A Toolbag plugin that auto-loads when Marmoset starts. Exposes the
msetPython API over a local HTTP server with a status UI panel. - server.py ā An MCP server that runs on your machine. Translates MCP tool calls into HTTP requests to the bridge plugin.
Quick Start
Step 1: Install the Marmoset Plugin
Copy bridge.py to your Marmoset Toolbag plugins folder and rename it:
Windows:
copy bridge.py "C:\Program Files\Marmoset Toolbag 5\data\plugins\MCP_Bridge.py"
macOS:
cp bridge.py "/Applications/Marmoset Toolbag 5.app/Contents/Resources/data/plugins/MCP_Bridge.py"
Restart Marmoset Toolbag. The plugin loads automatically and shows a status panel:
āā MCP Bridge āāāāāāāāāāāāāāāāāāā
ā Status: ā Running ā
ā Endpoint: http://127.0.0.1:8765 ā
ā Actions: 23 ā
ā Requests: 0 ā
ā ā
ā [ Stop Server ] ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
You can toggle the server on/off with the button. No need to run scripts manually ever again.
Step 2: Set up the MCP Server (Miniconda)
Create a dedicated conda environment:
conda create -n marmoset-mcp python=3.11 -y
conda activate marmoset-mcp
pip install mcp[cli] httpx
Test that the server can start:
python server.py
Step 3: Connect your MCP client
Claude Desktop
Edit your claude_desktop_config.json:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"marmoset": {
"command": "C:/Users/YOU/miniconda3/envs/marmoset-mcp/python.exe",
"args": ["C:/path/to/server.py"]
}
}
}
Important: Use the full path to the conda environment's
python.exeso Claude Desktop picks up the right packages. Find it with:conda activate marmoset-mcp where python # Windows which python # macOS/Linux
Restart Claude Desktop. You'll see a šØ tool icon with Marmoset tools.
Cursor
Add to .cursor/mcp.json in your project or global Cursor settings:
{
"mcpServers": {
"marmoset": {
"command": "C:/Users/YOU/miniconda3/envs/marmoset-mcp/python.exe",
"args": ["C:/path/to/server.py"]
}
}
}
Custom Bridge URL
If the bridge runs on a different port or machine:
python server.py --bridge-url http://192.168.1.50:8765
Available MCP Tools (23 tools)
š Connection
| Tool | Description |
|---|---|
ping |
Check if the Marmoset bridge is running |
š¬ Scene Management
| Tool | Description |
|---|---|
get_scene_info |
Object counts, types, scene bounds |
list_objects |
List all objects (optional type filter) |
import_model |
Import FBX, OBJ, etc. |
frame_scene |
Frame entire scene in camera |
frame_object |
Frame a specific object |
rename_object |
Rename any scene object |
remove_object |
Delete an object from the scene |
š” Lighting
| Tool | Description |
|---|---|
list_lights |
List all lights with full properties |
add_light |
Create directional, spot, or omni lights |
modify_light |
Change any light property (color, temperature, position, shadows, gels, etc.) |
š· Camera & Post-Processing
| Tool | Description |
|---|---|
set_camera |
Position, rotation, FOV, focal length |
set_post_effects |
Tone mapping, bloom, vignette, grain, contrast, clarity |
set_depth_of_field |
DOF focus distance, f-stop, bokeh |
set_lens |
Distortion, chromatic aberration, lens flares, motion blur |
š Environment
| Tool | Description |
|---|---|
set_sky |
Sky brightness, rotation, procedural sky (time, latitude, turbidity, etc.) |
load_sky |
Load a .tbsky file |
import_sky_image |
Import HDR/EXR environment map |
set_fog |
Fog color, density, opacity |
š¼ļø Rendering
| Tool | Description |
|---|---|
set_render_settings |
Ray tracing, shadows, AO, reflections, caustics |
render_image |
Render single image at specified resolution + samples |
render_images |
Render all cameras/passes |
ā” Advanced
| Tool | Description |
|---|---|
execute_script |
Run arbitrary Python code inside Toolbag |
Built-in Prompts
The MCP server includes contextual prompt templates that guide the AI:
setup_cinematic_lightingā 3-point cinematic lighting rigsetup_studio_portraitā Portrait/character showcase lightingrender_for_portfolioā Portfolio-quality render workflow
Example Conversations
Once connected, just talk naturally:
You: "Set up cinematic lighting for my character"
AI: Inspects scene ā creates key/fill/rim lights ā configures post-effects
You: "Make it more dramatic with warmer tones"
AI: Adjusts light brightness ratios and color temperatures
You: "Render at 4K with ray tracing"
AI: Enables RT, sets quality, renders at 3840Ć2160
You: "Import my character from C:/exports/hero.fbx and set up a studio portrait"
AI: Imports model ā frames it ā builds portrait lighting rig
Workflow: iClone 8 / Character Creator ā Marmoset
Export from iClone 8 / CC4
- Export as FBX (Binary, recommended)
- Enable Embed Textures or export textures to a subfolder
- Use iClone/CC default coordinate system
Import & Render in Marmoset (via AI)
- "Import C:/exports/my_character.fbx"
- "Set up studio portrait lighting"
- "Add some rim light from the left, increase bloom"
- "Render 4K PNG with transparency"
Plugin Configuration
Edit these constants at the top of bridge.py if needed:
| Setting | Default | Description |
|---|---|---|
BRIDGE_HOST |
"127.0.0.1" |
Bind address (use "0.0.0.0" for remote access) |
BRIDGE_PORT |
8765 |
HTTP port |
Troubleshooting
| Issue | Solution |
|---|---|
| "Cannot connect to bridge" | Check the MCP Bridge plugin panel in Marmoset ā status should say "ā Running" |
| Plugin doesn't appear | Verify the file is in the correct data/plugins/ folder and named .py |
| Bridge port conflict | Change BRIDGE_PORT in bridge.py and use --bridge-url for server.py |
| Light creation fails | Toolbag may need at least one light in the scene first ā add one manually, then the AI can duplicate/modify it |
| Claude Desktop can't find packages | Use the full conda python path in the config, not just "python" |
| Slow responses | The plugin queues commands on Toolbag's main thread via onPeriodicUpdate. Close heavy scenes for faster response |
| Script errors | Check Toolbag's Python Console (Edit ā Python Console) for error details |
Security Note
The bridge listens on 127.0.0.1 (localhost only) by default. To allow remote access, change BRIDGE_HOST in bridge.py to "0.0.0.0" ā but only on trusted networks.
License
MIT ā Free to use, modify, and distribute.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.