Blender 3D Automation & Rust MCP Driver
When to use
Use this skill whenever:
- Creating 3D models, primitives, environments, or procedural scenes in Blender.
- Executing headless CLI operations (
blender --background) with sub-millisecond dispatch viablender-rust-mcp. - Applying PBR materials (Principled BSDF with metallic, roughness, emission, and hex colors).
- Staging studio/cinematic cameras with automatic
Track Tofocus targets and focal lengths. - Configuring 3-point, sun, or studio lighting with physically based lumen/watt values.
- Exporting 3D assets to glTF/GLB, FBX, or OBJ for game engines (Godot, Unreal, Unity) or web (Three.js).
- Batch-rendering
.blendframes or stills using Cycles or EEVEE Next.
Design Principles
- Pure Native Rust Driver:
- Executes Blender headlessly (
blender.exe --background), streaming commands directly to standard input/output with zero background daemon and zero open network ports.
- Executes Blender headlessly (
- Physically Based Shading (PBR):
- Dielectric materials (plastic, wood, stone, glass) use
metallic: 0.0. - Pure conductors (gold, chrome, copper, aluminum) use
metallic: 1.0. - Never set metallic to intermediate values (e.g. 0.5) unless representing dirty or rusted metals.
- Roughness should range between
0.1(high polish) and0.8(chalk/clay). Avoid absolute 0.0 or 1.0.
- Dielectric materials (plastic, wood, stone, glass) use
- Lighting Energy Conventions:
- Sun lights:
3.0to8.0strength (directional sunlight). - Point / Area lights:
100.0 Wto2000.0 Wdepending on distance and indoor scale. - Avoid flat unshadowed ambient lighting; always establish a Key, Fill, and Rim contrast ratio.
- Sun lights:
- Photographic Camera Staging:
- Wide-angle / landscape:
24mm–35mm. - Standard / human eye:
50mm. - Portrait / product close-up:
85mm–105mm. - Always track a target object or coordinates for clean focal orientation.
- Wide-angle / landscape:
Step-by-Step Workflow
- Verify Connectivity:
- Call
blender_pingto detect active Blender binary and confirm headless runner availability.
- Call
- Inspect Active Scene:
- Call
blender_get_scene_infoto inspect existing objects, mesh counts, active camera, and render engine.
- Call
- Construct Geometry:
- For standard shapes: call
blender_create_primitive(cube, sphere, cylinder, plane, torus, monkey). - For procedural geometry or landscape generation: call
blender_execute_bpywith procedural vertex/modifier logic.
- For standard shapes: call
- Apply Shaders & Materials:
- Call
blender_apply_materialwith target object, hex color, metallic, roughness, and emission.
- Call
- Stage Camera & Lighting:
- Call
blender_setup_camerawith location coordinates, focus target, and focal length. - Call
blender_setup_lightingwith Key and Fill light sources.
- Call
- Render Preview:
- Call
blender_render_frame(usingBLENDER_EEVEE_NEXTfor fast previews orCYCLESfor photorealism).
- Call
- Save & Export:
- Call
blender_save_fileto preserve.blendstate, andblender_exportfor.glbor.fbxdelivery.
- Call
Specifics & Examples
1. Creating a Studio Product Scene
// Create primitive pedestal
{
"name": "blender_create_primitive",
"arguments": {
"primitive_type": "cylinder",
"name": "Pedestal",
"location": [0.0, 0.0, 0.5],
"scale": [1.5, 1.5, 0.5]
}
}
2. Applying Matte Dark Metal Material
{
"name": "blender_apply_material",
"arguments": {
"object_name": "Pedestal",
"material_name": "M_DarkMetal",
"color_hex": "#1E222A",
"metallic": 0.85,
"roughness": 0.25
}
}
3. Setting Up Cinematic Camera
{
"name": "blender_setup_camera",
"arguments": {
"location": [3.0, -3.5, 2.2],
"target": [0.0, 0.0, 0.5],
"focal_length": 85.0
}
}
4. Setting Up Key Sun & Rim Light
{
"name": "blender_setup_lighting",
"arguments": {
"light_type": "SUN",
"name": "Key_Sun",
"location": [4.0, -2.0, 6.0],
"energy": 5.0,
"color_hex": "#FFF5E6"
}
}
5. Executing Procedural BPY Script
# Calling blender_execute_bpy
import bpy
import math
# Create radial ring of cyber cubes
for i in range(8):
angle = (i / 8) * 2 * math.pi
x = math.cos(angle) * 3.0
y = math.sin(angle) * 3.0
bpy.ops.mesh.primitive_cube_add(size=0.6, location=(x, y, 1.0))
cube = bpy.context.active_object
cube.name = f"CyberCube_{i}"
out = {"created_cubes": 8, "radius": 3.0}
Common Mistakes
- Forgetting Render Engine Nuances: In Blender 4.x/5.x, EEVEE is updated to
BLENDER_EEVEE_NEXT. Do not hardcode legacyBLENDER_EEVEEoptions. - Extreme Light Intensities: Using 1000.0 energy on a
SUNlamp will completely wash out the scene. Sun energy is irradiance (5.0–10.0), while Point/Area lamps use luminous flux / Watts (100–2000).
Review Checklist
-
blender_pingconfirmed runner status. - All 3D coordinates use real-world metric scale.
- Materials adhere to PBR metallic (0.0 or 1.0) and roughness bounds.
- Camera is aimed at a target and focal length matches composition goals.
- Render output directory exists before dispatching
blender_render_frame. - Scene saved to
.blendfile.
Related Skills
rust-mcp-toolchaingithub-rust-mcpobsidian-rust-mcp