Skip to main content
Glama

blender-mcp

Ein MCP-Server, der Blender-.blend-Dateien erstellt. Er greift auf zwei Arten auf Blender zu:

  • Headless – jeder Aufruf startet einen neuen blender --background-Prozess. Deterministisch, immer verfügbar und die richtige Wahl zum Generieren von Dateien.

  • Live – ein kleines Blender-Addon öffnet einen lokalen Port, sodass der Server das bereits geöffnete Blender-Fenster steuern kann und Sie zusehen können.

Beide Wege führen denselben Handler-Code aus, sodass ein Skript in beiden Fällen identisch funktioniert. Eine lokale Web-Oberfläche ermöglicht das Hochladen von Referenzbildern und das Ausführen von Generierungsaufträgen mit denselben Werkzeugen.

Anforderungen

Blender

4.2 oder neuer (entwickelt mit 5.1)

Python

3.12+ für den Server (Blender bringt sein eigenes mit)

uv

Abhängigkeits- und Venv-Verwaltung

Related MCP server: blender-chatgpt-mcp

Einrichtung

uv sync                                        # create .venv and install
cp .env.example .env                           # then set BLENDER_MCP_EXECUTABLE
uv run python scripts/build_addon.py --install # build + install the Blender addon

Wenn Sie .env auslassen, durchsucht der Server Ihren PATH und die standardmäßigen Program Files/Blender Foundation/Blender <version>-Ordner auf jedem Laufwerk und bevorzugt die neueste gefundene Version.

Aktivieren der Live-Bridge

Das Addon ist installiert, aber inaktiv, bis Sie es starten:

  1. Öffnen Sie Blender.

  2. Drücken Sie N im 3D-Viewport, um die Seitenleiste anzuzeigen.

  3. Öffnen Sie den MCP-Tab und klicken Sie auf Start MCP Bridge.

Aktivieren Sie Start listening on launch in den Addon-Einstellungen, um diesen Schritt jedes Mal zu überspringen.

Verbinden eines MCP-Clients

.cursor/mcp.json registriert den Server bereits für dieses Projekt. Um ihn überall verfügbar zu machen, kopieren Sie diesen Block in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "blender": {
      "command": "uv",
      "args": ["run", "--directory", "C:\\Users\\josef\\Projects\\blender-mcp", "blender-mcp"]
    }
  }
}

Qualitäts-Workflow

Die Generierungsqualität kommt vom Hinsehen, nicht von einem einzigen Skript-Dump:

  1. list_references / view_reference – zuerst Referenzbilder öffnen

  2. create_blend aus studio oder product

  3. In kleinen run_script-Schritten aufbauen; apply_material für Metall/Plastik/Gummi/Glas/Holz

  4. preview_views – mehrwinklige EEVEE-Vorschauen; mit view_image mit Referenzen vergleichen

  5. Korrigieren, erneut vorschauen

  6. Finales render / render_and_view (CYCLES nur für Finale; EEVEE während Iterationen)

Lokale Web-Oberfläche

uv run blender-mcp-web
# open http://127.0.0.1:8765

Laden Sie Referenzbilder hoch, geben Sie einen Prompt ein und durchsuchen Sie Aufträge unter output/jobs/.

  • Mit BLENDER_MCP_LLM_API_KEY in .env – die Seite führt einen begrenzten multimodalen Agenten aus, der dieselben Blender-Werkzeuge aufruft (OpenAI-kompatibel oder Anthropic über BLENDER_MCP_LLM_PROVIDER).

  • Ohne einen Schlüssel – Uploads und Auftragsseiten funktionieren trotzdem; öffnen Sie den Auftrag in Cursor und bitten Sie den MCP-Agenten, aus output/jobs/<id>/refs zu bauen.

Werkzeuge

Tool

Zweck

blender_status

Installation, Ausgabe/Referenz-Ordner, Vorlagen, Materialien, Live-Bridge

list_references / view_reference / add_reference

Referenzbildbibliothek unter output/refs

create_blend

Neue Datei aus einer Vorlage + optionalem Skript

run_script

Beliebiges bpy-Python

apply_material

Prozedurale Voreinstellungen: Metall, Plastik, Gummi, Glas, Holz

inspect_blend

Szenengraph / Materialien / Kameras / Lichter

preview_views

Mehrwinklige EEVEE-Vorschauen zur Kritik

render / render_and_view

Standbild PNG; letzteres gibt das Bild zum Ansehen zurück

view_image / view_preview

Ein PNG für die visuelle Analyse laden

viewport_screenshot

Live-Viewport-Erfassung

list_outputs

Dateien unter output/

open_in_live_session

Eine .blend im Live-Blender-Fenster öffnen

Skripte schreiben

run_script und das script-Argument von create_blend werden in einem Namensraum ausgeführt, in dem bpy, mathutils, math, D (bpy.data) und C (bpy.context) bereits gebunden sind. Senden Sie Daten zurück, indem Sie result zuweisen oder emit(value) aufrufen.

Vorlagen

Name

Was Sie erhalten

empty

Gar nichts

default

Blenders Start-Szene: Würfel, Kamera, Licht

studio

Grauer Boden, Dreipunkt-Beleuchtung, 50-mm-Kamera, 1920×1080

product

Weißer nahtloser Hintergrund, weiches Licht, 85-mm-Produktrahmung

Layout

addon/blender_mcp_addon/   Blender extension + shared handlers (incl. preview_views)
src/blender_mcp/
  server.py                MCP tools
  refs.py                  reference image library
  materials.py             procedural material presets
  templates.py             starter scenes
  agent/                   bounded multimodal generation loop
  web/                     FastAPI UI (templates + static)
  headless.py / bridge.py  Blender process / live socket
scripts/                   build, install, verification
output/                    .blend files, renders, refs/, jobs/

Testen

uv run pytest -m "not blender"   # fast
uv run pytest                    # includes real Blender runs
uv run python scripts/check_server.py
uv run python scripts/verify_live_bridge.py

Hinweise und Einschränkungen

  • run_script führt beliebiges Python innerhalb von Blender aus. Halten Sie die Bridge auf Loopback.

  • Lange Render-Vorgänge blockieren die Live-Oberfläche, bis sie abgeschlossen sind.

  • viewport_screenshot ist nur live verfügbar.

  • Cycles verwendet die CPU, es sei denn, Sie aktivieren ein GPU-Gerät in den Blender-Einstellungen.

  • Der Web-Agent benötigt ein multimodales Modell, das Tool-Aufrufe und Bilder unterstützt.

Available Tools

16 tools
add_referenceA

Copy an image file into the reference library under output/refs.

Args: source_path: Existing image on disk (absolute or under the output folder). name: Optional destination filename. group: Optional subfolder name for organising guides.

Inputs: source_path (required), name, group.

apply_materialA

Apply a procedural material preset (metal, plastic, rubber, glass, wood) to a mesh.

Args: object_name: Mesh object name in the scene. preset: One of the presets from blender_status.materials. color: Optional RGB or RGBA floats 0-1. blend_file: Open this file first (forces headless). save_as: Save after applying. target: "auto", "live" or "headless".

Inputs: preset (required), object_name (required), color, target, +2 more.

blender_statusC

Report the Blender install, output folder, live-bridge state, templates and materials.

Inputs: no named parameters.

create_blendA

Create a new .blend file from a starter template and save it.

Args: path: Destination, relative to the output folder unless absolute. A ".blend" suffix is added when missing. template: empty, default, studio, or product. script: Optional extra bpy code run after the template. compress: Write a compressed .blend.

Inputs: path (required), script, compress, template.

inspect_blendA

Describe a scene: objects, transforms, materials, cameras, lights and render settings.

Args: blend_file: Inspect this file. Leave empty to inspect the live session instead. include_objects: Include the per-object breakdown, not just the counts. target: Where to look when no file is given.

Inputs: target, blend_file, include_objects.

list_outputsC

List the files produced so far in the output folder.

Inputs: pattern.

list_referencesA

List reference guide images under output/refs (optionally one group folder).

Inputs: group.

open_in_live_sessionB

Load a .blend into the Blender window the user has open, so they can see it.

Inputs: blend_file (required).

preview_viewsB

Render multi-angle EEVEE previews (front, three_quarter, side, top) for critique.

Args: blend_file: .blend to open and preview. output_dir: Folder under output/ for the PNGs. width: Preview width. height: Preview height. samples: Low sample count for speed. engine: Prefer EEVEE. target: Usually headless.

Inputs: blend_file (required), width, engine, height, +3 more.

renderA

Render a still image and write it to disk. Prefer render_and_view so you see it.

Args: output: PNG destination, relative to the output folder unless absolute. blend_file: Render this file rather than the live session. Forces a headless run. engine: "EEVEE", "CYCLES" or "WORKBENCH". EEVEE for iteration; CYCLES for finals. samples: Sample count. Keep it low for previews. width: Output width in pixels. height: Output height in pixels. frame: Frame to render. Defaults to the scene's current frame. transparent: Render the world background as alpha. target: "auto", "live" or "headless".

Inputs: frame, width, engine, height, +5 more.

render_and_viewC

Render a still and return the image so you must look at it.

Args: output: PNG destination under the output folder. blend_file: Optional .blend to open first. engine: Prefer EEVEE while iterating. samples: Sample count. width: Width in pixels. height: Height in pixels. target: "auto", "live" or "headless".

Inputs: width, engine, height, output, +3 more.

run_scriptA

Run Python against Blender's bpy API.

bpy, mathutils, math, D and C are pre-bound. Assign to result or call emit(value) to send data back; print() output is captured too.

Args: code: The Python to execute. blend_file: Open this .blend first. Supplying it forces a headless run. save_as: Save the file here when the script finishes. target: "auto", "live" or "headless".

Inputs: code (required), target, save_as, blend_file.

view_imageC

Load a rendered image so it can actually be looked at.

Args: path: Image path, relative to the output folder unless absolute.

Inputs: path (required).

viewport_screenshotB

Capture the live Blender window's 3D viewport as it currently looks.

Requires the MCP Bridge addon to be running in an open Blender session.

Inputs: output.

view_previewB

Look at one preview PNG from preview_views or a render.

Args: path: Image path relative to output or absolute.

Inputs: path (required).

view_referenceB

Look at a reference/guide image so you can match it while modeling.

Args: path: Path relative to output/refs, or absolute.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool targets a distinct action: status, references (list/view/add), file creation, scripting, material application, scene inspection, rendering (with variants for preview and view), screenshot, output listing, and live session opening. Even similar tools like render and render_and_view are clearly differentiated by purpose and parameters.

    Naming Consistency5/5

    All tool names use snake_case with a verb_noun pattern (e.g., list_references, create_blend, apply_material). The naming is predictable and follows a consistent structure, making it easy for an agent to infer functionality from the name.

    Tool Count5/5

    With 16 tools, the set covers a broad range of Blender operations—file management, references, materials, rendering, scripting, and inspection—without being overwhelming. The count is well-scoped for its domain: enough to handle common tasks without unnecessary duplication.

    Completeness3/5

    The tool surface covers many essential tasks but lacks direct tools for object creation (e.g., adding primitives), transformation (move/rotate/scale), or animation. While run_script can fill these gaps via Python, the explicit tool set leaves notable gaps for a modeling server, forcing agents to fall back to scripting for basic operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for AI-assisted Blender automation, providing layered tools for perception, declarative and imperative writing, and fallback operations.
      29
      126 PyPI
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI assistants like Codex or ChatGPT to inspect and control a local Blender scene, including creating objects, editing materials, setting cameras and lights, rendering previews, and saving safe copies of .blend files.
      1
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      MCP server that controls Blender via HTTP bridge, enabling 3D modeling, animation, and export operations from Cursor agent.
      32
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Blender that connects to the official Blender Lab add-on, exposing 27 tools for scene manipulation, object editing, materials, rendering, and Python execution through the add-on's actual wire protocol.
      27
      1
      MIT