Skip to main content
Glama
README.md
# Blender Studio MCP (`blender-studio-mcp`)

[![blender-studio-mcp MCP server](https://glama.ai/mcp/servers/bostudioserv-alt/blender-studio-mcp/badges/score.svg)](https://glama.ai/mcp/servers/bostudioserv-alt/blender-studio-mcp) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

Zero-dependency **Dual-Mode** Model Context Protocol (MCP) server connecting **Claude Code**, **Claude Desktop**, and any MCP client to **Blender 4.2+ / 5.x**.

## Why Dual-Mode?

Most Blender MCP bridges fail the moment Blender's GUI isn't open. `blender-studio-mcp` seamlessly supports **both** execution paths through one unified engine (`blender_ops.py`):

- **Live GUI Mode (`127.0.0.1:9876`)**: When Blender is open with the bundled addon enabled, commands execute on Blender's main thread in real time so you watch scenes build live in the 3D viewport.
- **Automatic Headless Mode (`blender --background`)**: When Blender GUI is closed (or `mode="headless"` / `blend_file` is passed), the server automatically invokes background Blender so CI pipelines, batch renders, and AI agents never block.

Zero npm runtime dependencies — pure Node.js standard library JSON-RPC 2.0 over `stdio`.

## Tools (17)

| Tool | Description |
| :--- | :--- |
| `blender_ping` | Inspect Blender version, Cycles GPU backend (OptiX/CUDA/HIP/OneAPI/Metal/CPU), and Live GUI connection status. |
| `blender_launch_gui` | Launch interactive Blender GUI detached so exiting MCP never closes your window. |
| `blender_get_scene_info` | List objects, transforms, dimensions, cameras, lights, materials, render engine, and frame range. |
| `blender_get_object_info` | Detailed transforms, world bounding box, vertex/polygon counts, modifiers, and materials for one object. |
| `blender_execute_python` | Run custom `bpy` scripts in Live or Headless mode with pre-injected studio helpers (`configure_cycles_gpu`, `apply_material_preset`, `hex_to_rgba`). |
| `blender_create_studio_scene` | Bootstrap a cyclorama/dark/light/transparent studio stage with 3-point softbox lighting, calibrated camera, AgX color management, and Cycles GPU. |
| `blender_create_object` | Create primitives (`cube`, `sphere`, `ico_sphere`, `cylinder`, `cone`, `torus`, `plane`, `monkey`, `text_3d`) with bevel/subsurf and PBR materials. |
| `blender_modify_object` | Transform, rename, duplicate, delete, toggle smooth shading, or add modifiers (`BEVEL`, `SUBSURF`, `SOLIDIFY`, `ARRAY`, `MIRROR`, `BOOLEAN`). |
| `blender_set_material` | Apply 14 Principled BSDF studio presets (`matte`, `glossy`, `plastic`, `rubber`, `metallic`, `chrome`, `silver`, `gold`, `copper`, `glass`, `frosted_glass`, `velvet`, `emission`, `clay`) or image textures. |
| `blender_import_svg_3d` | Import vector `.svg` brand logos, extrude to 3D with chamfered bevels, center on floor, apply PBR materials, and optionally keyframe a 360° turntable. |
| `blender_import_asset` | Import `.glb`, `.gltf`, `.fbx`, `.obj`, `.stl`, `.usd`, or `.blend` assets with optional floor-centering. |
| `blender_export_asset` | Export the scene or selection to `.glb`, `.gltf`, `.fbx`, `.obj`, `.stl`, `.usd`, or `.blend`. |
| `blender_capture_viewport` | Capture fast visual PNG previews for agent visual QA loops. |
| `blender_render_image` | Render production PNG/JPEG frames with Cycles GPU + OpenImageDenoise or EEVEE. |
| `blender_render_animation` | Render animation sequences and encode broadcast-ready H.264 `yuv420p` `+faststart` MP4. |
| `blender_polyhaven_search` | Search free CC0 Poly Haven HDRIs, PBR textures, and 3D models (no API key required). |
| `blender_polyhaven_apply_hdri` | Download, locally cache, and wire a CC0 Poly Haven HDRI into Blender World lighting. |

## Quick Start

### 1. Clone
```bash
git clone https://github.com/bostudioserv-alt/blender-studio-mcp.git
cd blender-studio-mcp
npm test
```

### 2. Connect to Claude Code
```bash
claude mcp add blender-studio -- node /absolute/path/to/blender-studio-mcp/server.mjs
```

### 3. Connect to Claude Desktop
Add to `claude_desktop_config.json`:
```json
{
  "mcpServers": {
    "blender-studio": {
      "command": "node",
      "args": ["/absolute/path/to/blender-studio-mcp/server.mjs"],
      "env": {
        "BLENDER_PATH": "/path/to/blender"
      }
    }
  }
}
```

### 4. Optional: Enable Live GUI Addon
1. In Blender, go to **Edit → Preferences → Add-ons → Install from Disk** and select `addon/blender_mcp_addon.py`.
2. Set `BLENDER_MCP_OPS_DIR=/absolute/path/to/blender-studio-mcp` (or copy `blender_ops.py` next to the addon).
3. Enable **Blender Studio MCP Bridge** — it listens on `127.0.0.1:9876` and exposes a sidebar control panel under **View3D → N → Studio MCP**.

## Environment Variables

| Variable | Default | Purpose |
| :--- | :--- | :--- |
| `BLENDER_PATH` | Auto-detected | Path to your `blender` executable. |
| `BLENDER_MCP_PORT` | `9876` | Local TCP port for Live GUI bridge. |
| `BLENDER_ASSETS_DIR` | `~/.blender-studio-mcp/polyhaven` | Local cache directory for downloaded CC0 Poly Haven HDRIs. |

## Companion Creative Studio MCP Servers
- [`google-ai-studio-mcp`](https://github.com/bostudioserv-alt/google-ai-studio-mcp) — 12-tool MCP server for Google AI Studio (multimodal chat, Arabic/English TTS, image/video/music, transcription).
- [`facebook-mcp`](https://github.com/bostudioserv-alt/facebook-mcp) — 11-tool MCP server for Facebook Page auditing, asset harvesting, and Official Meta Graph API publishing.
- [`sandboxed-photoshop-mcp`](https://github.com/bostudioserv-alt/sandboxed-photoshop-mcp) — Sandboxie-Plus isolated Photoshop MCP bridge + automated Design QA Gate.

## License
MIT

TDQS

B3.2/5.0

Scored across 17 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action (scene info vs object info vs create vs modify vs material vs import vs export vs render). The main soft spots are blender_capture_viewport vs blender_render_image (both yield images, differentiated only by speed/quality intent) and blender_execute_python, which is a catch-all that technically overlaps every other tool. Descriptions do enough to steer selection in practice.

Naming Consistency4/5

Nearly all tools follow a predictable blender_verb_noun pattern (get_scene_info, create_object, set_material, render_image), which is easy to scan. Deviations are minor: the polyhaven tools use a namespace-first form (blender_polyhaven_search, blender_polyhaven_apply_hdri) and a few are verb-only (blender_ping, blender_launch_gui). The convention is still readable and largely predictable.

Tool Count4/5

17 tools sits at the upper end of the comfortable range, but each maps to a real stage of a 3D studio workflow (scene bootstrap, object CRUD, materials, import/export, rendering, asset library). Nothing feels obviously redundant or padded. A slightly leaner surface could merge the two viewport/render capture paths, but the scope is defensible.

Completeness3/5

Core lifecycle is covered: create/modify/delete objects, assign materials, import/export, render stills and animations, and inspect scenes. However there are notable asymmetries and gaps: Poly Haven search returns HDRIs, textures, and models but only HDRI has an apply tool; there is no keyframe/animation authoring beyond the SVG turntable option; and camera/light placement outside the fixed studio preset requires falling back to blender_execute_python.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues