Unified Blender MCP
Unified Blender MCP lets AI clients inspect and control Blender through 15 tools over one Blender port, with safe code execution and local 3D-print design rules.
Inspect scene and object details.
Execute safe_mode-guarded
bpy/bmeshPython.Capture viewport screenshots.
Search and import assets from Poly Haven, Poly Pizza, and Sketchfab.
Create/transform primitives, add modifiers, and assign Principled BSDF materials.
Check meshes for 3D-printability and query/list 760 FDM design rules.
Export scenes or objects to STL, OBJ, GLB, or FBX.
Send raw commands to the Blender addon.
Connects to a Blender addon over TCP port 9876 to create and edit 3D objects, materials, modifiers, inspect scenes, capture viewport screenshots, execute bpy/bmesh code, check 3D-printability, and export models.
Searches and imports 3D assets from Sketchfab through the search_assets and import_asset tools.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Unified Blender MCP Create a low-poly mug and export it as STL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Unified Blender MCP menghubungkan Blender (3.x / 4.x) ke Gemini Web, ChatGPT, Claude Desktop, Claude Code, Cursor, Antigravity, Codex, dan n8n sehingga AI dapat membuat objek 3D, mengatur material Principled BSDF, memeriksa kelayakan 3D printing (berbasis 760 aturan desain FDM offline), mencari asset Poly Haven/Poly Pizza/Sketchfab, hingga mengekspor model (STL/GLB/OBJ/FBX) langsung di Blender.
Proyek ini menggabungkan kapabilitas ahujasid/mcp-for-blender dan seehiong/blender-mcp-bridge dalam satu addon (addon/addon.py), satu port Blender (9876), dan nol telemetry.
Quickstart
Prasyarat: Python 3.10+, uv, Blender 3.x / 4.x, dan cloudflared (hanya jika menghubungkan AI web remote seperti Gemini Web/ChatGPT).
# 1. Clone repo (atau Download ZIP dari GitHub)
git clone https://github.com/AdikaRafi/unified-blender-mcp.git
cd unified-blender-mcp
# 2. Verifikasi server tanpa membuka Blender
uv run --with "mcp>=1.26.0,<2" unified_mcp.py --self-test
# Output: UNIFIED_SELF_TEST_OK tools=15 safe_mode=True design_rules=OKSelanjutnya:
Pasang
addon/addon.pydi Blender, tekanN> tab MCP for Blender > Start MCP Server (port9876).Jalankan mode HTTP + Tunnel (untuk Gemini Web / ChatGPT / n8n) atau hubungkan langsung lewat
stdio(untuk Claude Desktop / Claude Code / Cursor / Antigravity / Codex).
Related MCP server: Blender-MCP
Instalasi (Windows, macOS, Linux)
1. Ambil Kode Proyek
Via Git (semua OS):
git clone https://github.com/AdikaRafi/unified-blender-mcp.git cd unified-blender-mcpTanpa Git (pemula): klik tombol Code > Download ZIP di GitHub, lalu ekstrak ke folder lokal (misalnya
D:\BlenderMCP\di Windows atau~/BlenderMCP/di macOS/Linux).
2. Install uv dan cloudflared
cloudflared hanya diperlukan untuk AI web remote (Gemini Web / ChatGPT). Untuk AI lokal (stdio), cukup install uv.
winget install --id astral-sh.uv -e
winget install --id Cloudflare.cloudflared -eSetelahwinget install selesai, tutup PowerShell lalu buka jendela PowerShell baru agar perintah uv dan cloudflared terbaca oleh Windows.
(Opsional ngrok: winget install --id Ngrok.Ngrok -e lalu ngrok config add-authtoken <TOKEN>.)
brew install uv
brew install cloudflared(Opsional tanpa Homebrew untuk uv: curl -LsSf https://astral.sh/uv/install.sh | sh. Opsional ngrok: brew install ngrok.)
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME/.local/bin/env"
# Install cloudflared (Debian/Ubuntu)
curl -fsSL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -o /tmp/cloudflared.deb
sudo dpkg -i /tmp/cloudflared.debUntuk Arch Linux: sudo pacman -S uv cloudflared. Untuk ARM64 / distro lain, unduh binary resmi dari Cloudflare cloudflared releases.
Pasang Addon Blender
Langkah ini sama untuk Windows, macOS, dan Linux (cukup sekali saja):
Buka Blender > Edit > Preferences > Add-ons.
Install file
addon/addon.py:Blender 4.2+: klik ikon panah kecil di pojok kanan atas panel Add-ons > Install from Disk...
Blender 3.x / 4.1: klik tombol Install... di kanan atas.
Pilih
addon/addon.pydari folder proyek > klik Install Add-on.Centang kotak Interface: MCP for Blender agar aktif.
Di 3D Viewport, tekan
N> klik tab MCP for Blender > pastikan port9876> klik Start MCP Server.
Menjalankan Server & Tunnel
Windows (1-Klik via start.ps1)
Buka folder proyek di File Explorer, ketik powershell di address bar > Enter, lalu jalankan:
powershell -ExecutionPolicy Bypass -File start.ps1Gunakan-SecretPath untuk endpoint acak (/mcp-<hex>), -Provider ngrok untuk ngrok, atau -Provider local untuk menjalankan HTTP lokal (127.0.0.1:9878/mcp) tanpa tunnel.
macOS & Linux (2 Terminal atau Background)
Jalankan server Streamable HTTP di Terminal 1:
uv run --with "mcp>=1.26.0,<2" unified_mcp.py --transport http --port 9878(Tambahkan --secret-path jika ingin URL acak /mcp-<hex>.)
Lalu buka Cloudflare Quick Tunnel di Terminal 2:
cloudflared tunnel --url http://127.0.0.1:9878Salin URL https://<random-subdomain>.trycloudflare.com yang muncul di terminal dan biarkan kedua proses tetap berjalan selama sesi AI + Blender aktif.
Koneksi AI Client
A. Gemini Web (gemini.google.com)
Buka gemini.google.com > Setelan / Konektor > + Kustom (Server MCP).
Masukkan URL tunnel dan tambahkan
/mcpdi belakangnya (tanpa garis miring di akhir):https://contoh-random-kata.trycloudflare.com/mcp(Jika memakai
--secret-path/-SecretPath, gunakan path/mcp-xxxxxxxxpersis seperti yang tercetak di terminal.)Selesaikan koneksi dan uji dengan prompt di bagian Contoh Prompt & Workflow.
B. ChatGPT, n8n, atau Remote MCP Client Lain
Gunakan URL yang sama (https://<domain-tunnel>/mcp) dengan transport Streamable HTTP.
C. Claude Code (CLI 1-Perintah, Semua OS)
claude mcp add unified-blender -- uv run --with "mcp>=1.26.0,<2" /ABSOLUTE/PATH/TO/unified-blender-mcp/unified_mcp.py --transport stdioD. Claude Desktop, Cursor, Antigravity, atau Codex (Lokal stdio)
Client desktop/IDE di mesin yang sama tidak membutuhkan tunnel. Tambahkan konfigurasi berikut (sesuaikan path absolut folder proyek):
Lokasi config Claude Desktop:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"unified-blender": {
"command": "uv",
"args": [
"run",
"--with",
"mcp>=1.26.0,<2",
"/ABSOLUTE/PATH/TO/unified-blender-mcp/unified_mcp.py",
"--transport",
"stdio"
]
}
}
}(Di Windows gunakan forward slash, misalnya D:/BlenderMCP/unified-blender-mcp/unified_mcp.py.)
Contoh Prompt & Workflow
Skenario | Contoh Prompt ke AI | Tools yang Terlibat |
Modeling & Material | "Cek isi scene sekarang, buat meja kayu 1.2m x 0.6m dengan 4 kaki, beri bevel halus dan material kayu cokelat, lalu ambil viewport screenshot." |
|
Cek 3D Print (FDM) | "Cari aturan toleransi snap-fit untuk PLA, lalu periksa apakah objek |
|
Asset Library | "Cari tekstur kayu oak di Poly Haven dan impor ke scene aktif." |
|
Export Produksi | "Ekspor objek |
|
Rekam Sesi ke JSON (--record):
uv run --with "mcp>=1.26.0,<2" unified_mcp.py --transport http --record logs/session.jsonSemua panggilan tool beserta timestamp dan argumennya disimpan ke logs/session.json untuk audit atau reproduksi.
Perbandingan Fitur
Kemampuan |
|
| Unified Blender MCP |
Eksekusi | Ya | Tidak | Ya ( |
Structured modeling, material, 3D-print & export | Tidak | Ya | Ya (lewat port |
760 FDM 3D-print design rules (offline lokal) | Tidak | Ya | Ya ( |
Asset library (Poly Haven, Poly Pizza, Sketchfab) | Ya | Tidak | Ya |
Streamable HTTP | Tidak | Ya | Ya (siap tunnel, bebas |
Native | Ya | Tidak | Ya |
Session command recording ( | Tidak | Ya | Ya |
Jumlah port Blender dibutuhkan | 1 ( | 1 ( | 1 ( |
Telemetry / Supabase | Opt-in | 0 | 0 |
Arsitektur
Seluruh tool terstruktur (create_primitive, transform_object, add_modifier, assign_material, check_3d_print, export_model) berjalan deterministik melalui satu socket TCP addon Blender (127.0.0.1:9876) dengan proteksi thread lock (_blender_lock) dan timeout respons 180 detik, sehingga cukup satu addon dan satu port saja.
Daftar 15 Tools
Core, Visual & Asset Libraries (berbasis mcp-for-blender)
Tool | Fungsi |
| Ringkasan scene Blender aktif (objek, lampu, kamera, material) |
| Detail transform, mesh, dan material satu objek |
| Eksekusi Python |
| Ambil tangkapan viewport 3D untuk verifikasi visual |
| Cari asset di |
| Unduh & impor asset dari |
| Pass-through ke command addon lain di port |
Structured Modeling, 3D-Print & Knowledge Base (berbasis blender-mcp-bridge)
Tool | Fungsi |
| Buat mesh dasar ( |
| Atur |
| Tambah modifier ( |
| Buat atau update material Principled BSDF dan pasang ke objek |
| Cek manifold/watertight, non-manifold edges, volume, dimensi, dan overhang |
| Ekspor scene atau objek tertentu ke |
| Cari 760 aturan desain FDM 3D printing secara lokal (tanpa membuka Blender) |
| Daftar 9 topik ( |
Opsi CLI & Environment Variables
unified_mcp.py
Flag | Default | Fungsi |
|
| Mode transport MCP ( |
|
| Port HTTP lokal saat |
|
| Endpoint path HTTP MCP |
|
| Gunakan path acak |
|
| Host socket addon Blender |
|
| Port socket addon Blender |
|
| Matikan AST allowlist |
| none | Rekam urutan tool call sesi ke file JSON |
|
| Jalankan verifikasi mandiri tanpa membuka Blender |
start.ps1 (Windows)
Parameter | Default | Fungsi |
|
| Pilih |
|
| Port HTTP lokal |
|
| Port socket addon Blender |
|
| Aktifkan |
|
| Path file JSON untuk merekam sesi |
Environment Variables
Variable | Default | Fungsi |
|
| Override host TCP addon Blender |
|
| Override port TCP addon Blender |
|
| Path kustom database aturan desain 3D printing |
Keamanan, Privasi & Batasan
Model Keamanan safe_mode
execute_blender_code otomatis melewati validator AST vendor/safe_mode.py untuk melindungi dari prompt injection (misalnya teks berbahaya di deskripsi asset eksternal):
Diizinkan:
bpy,bmesh,mathutils, modul stdlib Python murni, render (bpy.ops.render.*), simpan/buka.blend, dan operator import/export.Diblokir:
os,sys,subprocess,socket,eval/exec/compile/open, dunder escape (__subclasses__/__globals__), persistensi (bpy.app.handlers,bpy.app.timers, drivers), serta operator eksekusi/instalasi (bpy.ops.script.*,bpy.ops.text.*,bpy.ops.preferences.*,bpy.ops.extensions.*,wm.append/wm.link).0 Telemetry: Tidak mengirim prompt, UUID, screenshot, atau data scene ke server pihak ketiga mana pun.
Batasan (Limitations)
Lingkup
safe_mode: Validator menjaga jalur MCP (unified_mcp.py), bukan OS sandbox penuh di sekitar proses Blender. Port TCP addon (127.0.0.1:9876) tetap menerima koneksi lokal mentah di mesin yang sama.Satu Koneksi Aktif per Operasi: Koneksi ke Blender menggunakan lock sinkron (
_blender_lock) dengan timeout respons 180 detik; operasi berat yang melewati 180 detik akan timeout.Launcher Otomatis Tunnel:
start.ps1hanya untuk Windows; pengguna macOS dan Linux menjalankanuv rundancloudflaredsecara terpisah seperti di bagian Menjalankan Server & Tunnel.
Verifikasi Cepat (Tanpa Blender)
uv run --with "mcp>=1.26.0,<2" unified_mcp.py --self-testOutput yang diharapkan:
Loaded 760 design rules from .../data/design-rules.json
UNIFIED_SELF_TEST_OK tools=15 safe_mode=True design_rules=OKTroubleshooting
Masalah | Penyebab & Solusi |
| Gunakan Download ZIP pada Langkah 1. |
| Buka ulang terminal setelah instalasi. Di Linux, jalankan |
| Pastikan |
AI menjawab | Blender belum terbuka atau addon belum aktif. Tekan |
Gemini Web gagal konek ke URL | Pastikan URL diawali |
| Validator |
Struktur Repositori
unified-blender-mcp/
├── addon/
│ └── addon.py # Addon Blender siap install (TCP port 9876)
├── unified_mcp.py # Server MCP utama (stdio + Streamable HTTP /mcp, 15 tools)
├── start.ps1 # Launcher Windows + Cloudflare Tunnel / ngrok / local
├── pyproject.toml # Metadata paket & dependensi (mcp>=1.26.0,<2)
├── vendor/
│ ├── safe_mode.py # AST allowlist dari ahujasid/mcp-for-blender (GPLv3)
│ └── design_rules.py # Engine query aturan 3D-print dari seehiong/blender-mcp-bridge (MIT)
├── data/
│ └── design-rules.json # 760 aturan desain FDM 3D printing (9 topik, offline)
├── assets/readme/
│ ├── hero.svg # Header visual README (SVG)
│ └── architecture.svg # Diagram arsitektur 1-port dual-transport (SVG)
├── LICENSE # GPL-3.0-or-later
└── THIRD_PARTY_NOTICES.md # Atribusi lisensi kedua repositori referensiKontribusi, Referensi & Lisensi
Kontribusi
Pull request dan laporan bug diterima melalui GitHub Issues. Sebelum mengirim PR, pastikan uv run --with "mcp>=1.26.0,<2" unified_mcp.py --self-test lulus tanpa error.
Referensi & Kredit
ahujasid/mcp-for-blender (GPL-3.0-or-later): protokol socket TCP addon Blender (
port 9876),addon/addon.py, eksekusibpy, asset library, dan validator ASTsafe_mode.py.seehiong/blender-mcp-bridge (MIT): pola Streamable HTTP
/mcp, structured modeling & 3D-print checks, session recording, sertadesign_rules.pydandata/design-rules.json.
Lisensi
Didistribusikan di bawah lisensi GNU General Public License v3.0 (GPL-3.0-or-later). Lihat LICENSE dan THIRD_PARTY_NOTICES.md.
Available Tools
15 toolsadd_modifierC
Add a Blender modifier (SUBSURF, BEVEL, BOOLEAN, SOLIDIFY, ARRAY, MIRROR, etc.) with optional JSON params.
Inputs: object_name (required), modifier_type (required), name, params_json. Returns: result
assign_materialC
Create or update a Principled BSDF material and assign it to a Blender object.
Inputs: object_name (required), material_name (required), metallic, roughness, +1 more. Returns: result
check_3d_printC
Inspect mesh printability: manifold/watertight check, non-manifold edges, volume, dimensions, and overhangs.
Inputs: object_name (required), overhang_deg. Returns: result
create_primitiveC
Create a 3D mesh primitive: cube, sphere, cylinder, cone, torus, plane, or monkey.
Inputs: primitive_type (required), name, scale, location, +1 more. Returns: result
execute_blender_codeB
Execute Python (bpy/bmesh) code inside Blender (protected by safe_mode AST allowlist by default).
Inputs: code (required). Returns: result
export_modelC
Export scene or a single named object to STL, OBJ, GLB, or FBX.
Inputs: filepath (required), file_format, object_name. Returns: result
get_object_infoB
Get detailed transform, mesh, and material info for a named Blender object.
Inputs: object_name (required). Returns: result
get_scene_infoA
Get current Blender scene summary (objects, lights, camera, materials).
Inputs: no named parameters. Returns: result
get_viewport_screenshotB
Capture current Blender 3D viewport screenshot for visual verification.
Inputs: max_size. Returns: result
import_assetC
Download and import an asset from 'polyhaven', 'polypizza', or 'sketchfab' into Blender.
Inputs: source (required), asset_id (required), asset_type, resolution. Returns: result
list_design_topicsA
List all available 3D-printing design-rule topics and rule counts.
Inputs: no named parameters. Returns: result
query_design_rulesC
Query local FDM 3D-printing design rules (clearances, walls, overhangs, threads, snap-fits).
Inputs: unit, limit, query, topic, +1 more. Returns: result
search_assetsB
Search 3D assets/textures/HDRIs on 'polyhaven', 'polypizza', or 'sketchfab'.
Inputs: query (required), source (required), limit. Returns: result
send_blender_command_rawC
Send any raw command supported by the Blender MCP addon on port 9876.
Inputs: command_type (required), params_json. Returns: result
transform_objectC
Set exact location, rotation (radians), and/or scale on a named Blender object.
Inputs: object_name (required), scale, location, rotation. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools map cleanly to a distinct resource+action (create_primitive, transform_object, add_modifier, assign_material, export_model). The one real overlap is execute_blender_code versus send_blender_command_raw, which are both generic escape hatches for arbitrary operations and could easily be misselected. get_scene_info versus get_object_info are distinguishable by scope.
Every tool follows a consistent snake_case verb_noun pattern (get_scene_info, create_primitive, add_modifier, query_design_rules). No camelCase or bare-noun outliers, and the domain prefixes (check_3d_print, list_design_topics) read naturally.
Fifteen tools for a full 3D modeling/printing server is well-scoped and each tool covers a distinct capability. Nothing appears redundant or padding.
Strong coverage of creation, inspection, materials, assets, and export, but the object lifecycle stops short of deletion/removal and there is no rendering tool (only a viewport screenshot). Both gaps are partially workable via execute_blender_code, but that is a fallback rather than a first-class operation.
Maintenance
Related MCP Connectors
Connect your AI assistant to Blender for 3D modeling, Geometry Nodes, materials, lighting, animation, rendering and export. Inspect real scenes and viewport images, refine the result and restore checkpoints. OAuth connects your chat to Blender Bridge Desktop on an online Windows 10/11 x64 computer running Blender 4.2+. The chat can run on another device. Requires an active Blender Bridge account; 7-day trial available. AI model access is separate.
Blender-as-a-service for agents: search 3D assets, run Blender Python, or brief the studio agent.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Cloud Blender for AI agents: build, inspect, render and animate 3D scenes over remote MCP. Keep editable .blend projects and export GLB or STL. Make your first 3D asset free—30 compute minutes per UTC month, no credit card. First 100 eligible Free account owners to use all 30 minutes in one UTC month by December 31, 2026 UTC receive one calendar month of beta free: 4 compute hours per UTC month, 2 concurrent workers per deployment, 2 deployments, 2048×2048 renders at up to 256 samples, and 10 GiB storage. Existing usage counts toward the 4-hour allowance. Limited to 100 rewards; expires January 1, 2027 00:00 UTC. Free resumes afterward without an automatic charge. Examples, eligibility and terms: https://sceneplane.online/launch?utm_source=glama&utm_medium=directory&utm_campaign=first100
Related MCP Servers
- AlicenseBqualityCmaintenanceConnects Blender to AI through the Model Context Protocol to enable prompt-assisted 3D modeling and scene manipulation. It supports object creation, material control, and arbitrary Python code execution directly within the Blender environment.22MIT
- AlicenseAqualityDmaintenanceConnects Blender 3D to AI assistants via the Model Context Protocol, enabling natural language driven 3D scene creation, manipulation, and rendering.15MIT
- FlicenseNot gradedqualityDmaintenanceConnects AI assistants to Blender 3D for natural language 3D modeling, scene inspection, material creation, and rendering.-
- AlicenseNot gradedqualityBmaintenanceConnects an AI agent to Blender 5.2 LTS over stdio, letting it read the scene hierarchy, create and transform primitive meshes, assign Principled BSDF materials, delete objects, save .blend files, and run raw bpy scripts through 12 tools. A two-process socket bridge keeps bpy calls on Blender's main thread, so no pip packages or admin rights are needed inside Blender.MIT