Skip to main content
Glama

blender-mcp

Blender .blend 파일을 생성하는 MCP 서버입니다. Blender에 두 가지 방식으로 접근합니다:

  • Headless — 모든 호출마다 새로운 blender --background 프로세스를 시작합니다. 결정적이며 항상 사용 가능하고 파일 생성에 적합한 방식입니다.

  • Live — 작은 Blender 애드온이 로컬 포트를 열어 서버가 이미 열려 있는 Blender 창을 제어할 수 있게 하며, 작업 과정을 실시간으로 볼 수 있습니다.

두 방식 모두 동일한 핸들러 코드를 실행하므로 스크립트는 어느 쪽이든 동일하게 동작합니다. 로컬 웹 UI를 통해 참조 이미지를 업로드하고 동일한 도구로 생성 작업을 실행할 수 있습니다.

요구 사항

Blender

4.2 이상 (5.1 기준으로 개발됨)

Python

서버용 3.12+ (Blender는 자체 Python 사용)

uv

의존성 및 가상 환경 관리

Related MCP server: blender-chatgpt-mcp

설정

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

.env 파일을 생략하면 서버는 PATH와 모든 드라이브의 표준 Program Files/Blender Foundation/Blender <version> 폴더를 검색하여 가장 최신 버전을 우선 사용합니다.

라이브 브리지 활성화

애드온은 설치되어 있지만 시작하기 전까지는 비활성화 상태입니다:

  1. Blender를 엽니다.

  2. 3D 뷰포트에서 N을 눌러 사이드바를 표시합니다.

  3. MCP 탭을 열고 Start MCP Bridge를 클릭합니다.

애드온 환경설정에서 Start listening on launch를 체크하면 매번 이 과정을 건너뛸 수 있습니다.

MCP 클라이언트 연결

.cursor/mcp.json은 이미 이 프로젝트에 서버를 등록해 놓았습니다. 모든 곳에서 사용하려면 해당 블록을 ~/.cursor/mcp.json에 복사하세요:

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

품질 워크플로우

생성 품질은 단일 스크립트 덤프가 아닌 확인 과정에서 비롯됩니다:

  1. list_references / view_reference — 먼저 가이드 이미지를 엽니다

  2. studio 또는 product 템플릿으로 create_blend

  3. 작은 run_script 단계로 구축; apply_material로 금속/플라스틱/고무/유리/나무 적용

  4. preview_views — 다각도 EEVEE 미리보기; view_image로 참조와 비교

  5. 수정 후 다시 미리보기

  6. 최종 render / render_and_view (최종본은 CYCLES만 사용; 반복 작업 중에는 EEVEE 사용)

로컬 웹 UI

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

참조 이미지를 업로드하고 프롬프트를 입력한 후 output/jobs/ 아래에서 작업을 탐색하세요.

  • .env에 BLENDER_MCP_LLM_API_KEY가 있는 경우 — 사이트는 동일한 Blender 도구를 호출하는 제한된 멀티모달 에이전트를 실행합니다 (OpenAI 호환 또는 BLENDER_MCP_LLM_PROVIDER를 통한 Anthropic).

  • 키가 없는 경우 — 업로드 및 작업 페이지는 여전히 작동합니다. Cursor에서 작업을 열고 MCP 에이전트에게 output/jobs/<id>/refs에서 빌드하도록 요청하세요.

도구

도구

목적

blender_status

설치, 출력/참조 디렉토리, 템플릿, 재질, 라이브 브리지 상태 확인

list_references / view_reference / add_reference

output/refs 아래의 가이드 이미지 라이브러리

create_blend

템플릿 + 선택적 스크립트로 새 파일 생성

run_script

임의의 bpy Python 코드 실행

apply_material

절차적 프리셋: 금속, 플라스틱, 고무, 유리, 나무

inspect_blend

씬 그래프 / 재질 / 카메라 / 조명 검사

preview_views

비평용 다각도 EEVEE 미리보기

render / render_and_view

정지 PNG 렌더링; 후자는 이미지를 반환하여 확인 가능

view_image / view_preview

시각 확인용 PNG 로드

viewport_screenshot

라이브 뷰포트 캡처

list_outputs

output/ 아래의 파일 목록

open_in_live_session

라이브 Blender 창에서 .blend 파일 열기

스크립트 작성

run_script와 create_blend의 script 인수는 bpy, mathutils, math, D (bpy.data), C (bpy.context)가 이미 바인딩된 네임스페이스에서 실행됩니다. result에 값을 할당하거나 emit(value)를 호출하여 데이터를 반환하세요.

템플릿

이름

제공 내용

empty

아무것도 없는 상태

default

Blender의 기본 시작 씬: 큐브, 카메라, 조명

studio

회색 바닥, 3점식 영역 조명, 50mm 카메라, 1920×1080

product

흰색 심리스 배경, 부드러운 조명, 85mm 제품 프레이밍

레이아웃

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/

테스트

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

참고 사항 및 제한 사항

  • run_script는 Blender 내에서 임의의 Python 코드를 실행합니다. 브리지는 루프백에서만 사용하세요.

  • 긴 렌더링은 완료될 때까지 라이브 UI를 차단합니다.

  • viewport_screenshot은 라이브 전용입니다.

  • Cycles는 Blender 환경설정에서 GPU 장치를 활성화하지 않으면 CPU를 사용합니다.

  • 웹 에이전트는 도구 호출과 이미지를 지원하는 멀티모달 모델이 필요합니다.

라이선스

MIT

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