Skip to main content
Glama

BlenderMCP Pro

A secure MCP (Model Context Protocol) server for AI-driven 3D modeling in Blender. Connects any MCP-compatible AI client (Claude, etc.) to Blender through a safe, validated tool interface.

Architecture

AI Client (Claude, etc.)
    |
    | MCP Protocol (stdio)
    v
server/          -- FastMCP server with async TCP client
    |
    | TCP (127.0.0.1:9876, JSON-RPC 2.0, length-prefixed)
    v
addon/           -- Blender addon with TCP server & dispatcher
    |
    v
Blender Python API (bpy)

Key design principle: Zero exec()/eval() -- every operation maps to a static handler function with per-parameter input validation. No arbitrary code execution.

Related MCP server: Blender MCP Server

Tools (37)

Category

Count

Tools

Scene

7

get_info, list_objects, get_object, get_hierarchy, set_unit_system, manage_collection, set_active_object

Mesh

9

create_primitive, create_custom, edit_geometry, get_geometry, set_smooth_shading, separate, join, set_origin, analyze_profile

Object

8

set_transform, get_transform, duplicate, delete, parent, unparent, move_to_collection, apply_transform

Material

4

create, assign, get_info, update

Modifier

3

add, configure, apply

Viewport

5

screenshot, set_camera, auto_screenshot, screenshot_cleanup

Selection

1

set

Notable Tools

  • mesh_edit_geometry -- Chained edit-mode operations (extrude, bevel, loop cut, scale, etc.) with smart selection (by position, normal, Z-range)

  • mesh_analyze_profile -- Deep mesh analysis for reverse-engineering construction (Z-slice profiles, symmetry detection, material zones, loose parts)

  • mesh_create_custom -- Create meshes from raw vertex/face data

  • auto_screenshot -- Automatic viewport captures after every modifying operation

Setup

1. Install the Blender Addon

# Build the addon zip
python build_addon.py

# Or install directly (finds Blender automatically)
python install_addon.py

Then enable "BlenderMCP Pro" in Blender Preferences > Add-ons.

2. Install the MCP Server

pip install -e .

3. Configure Your AI Client

Add to your MCP client config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "blendermcp": {
      "command": "blendermcp"
    }
  }
}

See claude_desktop_config_example.json for a full example.

4. Connect

  1. Open Blender

  2. In the addon panel, click "Start Server"

  3. Start your MCP client

  4. The AI can now control Blender

Running Tests

pip install -e ".[dev]"
pytest tests/ -v

Project Structure

addon/              Blender addon (TCP server, handlers, UI)
  handlers/         One module per tool category
  connection.py     TCP server & message framing
  dispatcher.py     Method routing
  validation.py     Input validation
server/             MCP server (FastMCP, async TCP client)
  tools/            One module per tool category
  blender_client.py Async TCP client
  auto_screenshot.py Screenshot management
shared/             Wire protocol, constants, error codes
tests/              pytest unit tests
training/           Training data tools (bulk analyzer, generators)

Training Data Tools

The training/ directory contains tools for generating and analyzing 3D modeling data:

  • bulk_analyze.py -- Headless Blender script to batch-analyze FBX/OBJ/GLB files into JSON profiles

  • generate_training_data.py -- Procedural generator for MCP tool-call training sequences (38 object categories, no LLM needed)

  • fbx_to_recipe.py -- Converts 3D files into exact mesh_create_custom reconstruction recipes

# Analyze a directory of FBX files
blender --background --python training/bulk_analyze.py -- --input ./models/ --output ./templates/

# Generate 10K training samples
python training/generate_training_data.py --count 10000 --format chatml --split --output ./generated/

License

MIT

Available Tools

36 tools
material_assignC

Assign a material to a Blender object.

Inputs: object_name (required), material_name (required), slot_index. Returns: result

material_createC

Create a new Blender material with PBR properties.

Inputs: name (required), base_color (required), alpha, emission, +4 more. Returns: result

material_get_infoC

Get information about a Blender material.

Inputs: material_name (required). Returns: result

material_updateC

Update properties of an existing Blender material.

Inputs: material_name (required), alpha, emission, metallic, +4 more. Returns: result

mesh_analyze_profileA

Deep analysis of a mesh object for reverse-engineering construction recipes.

Analyzes the mesh and returns:

  • Bounding box (min, max, center, dimensions)

  • Z-slice profiles (radius/width at each height level)

  • Material zones (which materials cover which Z ranges)

  • Face normal distribution (up/down/north/south/east/west)

  • Loose parts count (separate mesh islands)

  • Symmetry detection (X and Y axis mirror symmetry)

  • Section identification (distinct parts by radius changes)

  • Modifier stack

Use this to understand the construction of reference models before building similar objects from scratch.

Args: object_name: name of the mesh object to analyze num_slices: number of Z-height slices for profile (default 20)

Inputs: object_name (required), num_slices. Returns: result

mesh_create_customB

Create a mesh from raw vertex, edge, and face data.

Args: vertices: list of [x, y, z] vertex positions faces: list of vertex index lists defining faces edges: optional list of [v1, v2] vertex index pairs defining edges name: name for the new mesh object

Inputs: faces (required), vertices (required), name, edges. Returns: result

mesh_create_primitiveB

Create a Blender mesh primitive.

Supported primitive types and their specific parameters:

  • CUBE: size (side length)

  • UV_SPHERE: segments, ring_count, radius

  • ICO_SPHERE: radius, subdivisions (via segments)

  • CYLINDER: vertices, radius, depth

  • CONE: vertices, radius1 (bottom), radius2 (top), depth

  • TORUS: major_radius, minor_radius, major_segments, minor_segments

  • PLANE: size

  • CIRCLE: vertices, radius

  • GRID: x_subdivisions, y_subdivisions, size

Common parameters for all types:

  • name: custom object name

  • location: [x, y, z] world position

  • rotation: [x, y, z] rotation in radians

  • scale: [x, y, z] scale factors

Inputs: type (required), name, size, depth, +15 more. Returns: result

mesh_edit_geometryA

Perform edit-mode geometry operations on a mesh.

Can run a single operation OR chain multiple steps in one edit-mode session.

SINGLE OPERATION: set 'operation' and 'selection'. CHAINED OPERATIONS: set 'steps' as a list of step dicts, each with 'operation', 'selection', and operation-specific params.

Operations: EXTRUDE, EXTRUDE_ALONG_NORMALS, INSET, BEVEL, SUBDIVIDE, DISSOLVE, MERGE, LOOP_CUT, SCALE, TRANSLATE, ROTATE, BRIDGE, FILL, SPIN (lathe/revolve - revolve profile around axis, params: steps, angle, axis, center), DELETE (remove selected geometry, params: delete_type=VERTS/EDGES/FACES/ONLY_FACE)

Smart selection (USE THESE instead of guessing face indices!): {"type": "face", "position": "top"} — topmost face(s) by Z {"type": "face", "position": "bottom"} — bottommost face(s) by Z {"type": "face", "position": "front"} — front face(s) (min Y) {"type": "face", "position": "back"} — back face(s) (max Y) {"type": "face", "position": "left"} — left face(s) (min X) {"type": "face", "position": "right"} — right face(s) (max X) {"type": "face", "normal": [0,0,1]} — faces pointing in direction {"type": "face", "z_greater": 0.5} — faces with center above Z {"type": "face", "z_less": 0.5} — faces with center below Z {"type": "vert", "z_range": [0.4, 0.6]} — verts in Z range {"type": "vert", "position": "top"} — topmost verts {"type": "face", "indices": "all"} — all faces {"type": "all"} — everything

Example steps for building a lamp post base: steps=[ {"operation": "EXTRUDE", "selection": {"type":"face","position":"top"}, "direction":[0,0,0.1]}, {"operation": "SCALE", "selection": {"type":"face","position":"top"}, "scale_vector":[0.8,0.8,1]}, {"operation": "EXTRUDE", "selection": {"type":"face","position":"top"}, "direction":[0,0,0.3]}, {"operation": "SCALE", "selection": {"type":"face","position":"top"}, "scale_vector":[0.6,0.6,1]}, ]

Args: object_name: name of the mesh object to edit operation: single operation name (not needed if using steps) selection: selection dict for single operation steps: list of step dicts for chained operations offset: distance for extrude operations thickness: thickness for inset depth: depth for inset width: width for bevel segments: segments for bevel cuts: cuts for loop_cut/subdivide edge_index: edge index for loop_cut orientation factor: slide factor for loop_cut (-1 to 1) direction: [x,y,z] for extrude/translate scale_vector: [x,y,z] for scale angle: radians for rotate axis: X/Y/Z for rotate

Inputs: object_name (required), axis, cuts, angle, +15 more. Returns: result

mesh_get_geometryB

Read mesh geometry data from an object.

Args: object_name: name of the mesh object include_normals: whether to include vertex normals include_uvs: whether to include UV coordinates

Inputs: object_name (required), include_uvs, include_normals. Returns: result

mesh_joinC

Join multiple mesh objects into one.

Args: object_names: list of mesh object names to join (first becomes the target)

Inputs: object_names (required). Returns: result

mesh_separateC

Separate a mesh into multiple objects.

Args: object_name: name of the mesh object to separate method: separation method - BY_MATERIAL, BY_LOOSE_PARTS, or BY_SELECTION

Inputs: object_name (required), method. Returns: result

mesh_set_originB

Set the origin point of a mesh object.

Args: object_name: name of the mesh object origin_type: origin calculation method - ORIGIN_GEOMETRY (geometry to origin), ORIGIN_CENTER_OF_MASS, ORIGIN_CENTER_OF_VOLUME, ORIGIN_CURSOR, GEOMETRY_ORIGIN (origin to geometry)

Inputs: object_name (required), origin_type. Returns: result

mesh_set_smooth_shadingB

Set smooth or flat shading on a mesh object.

Args: object_name: name of the mesh object smooth: True for smooth shading, False for flat shading auto_smooth_angle: angle threshold in degrees for auto smooth normals

Inputs: object_name (required), smooth, auto_smooth_angle. Returns: result

modifier_addC

Add a modifier to a Blender object.

Common modifier types: SUBSURF, MIRROR, ARRAY, BEVEL, BOOLEAN, SOLIDIFY, DECIMATE, SMOOTH, EDGE_SPLIT, WIREFRAME, CURVE, SHRINKWRAP, SIMPLE_DEFORM, LATTICE, ARMATURE, PARTICLE_SYSTEM, OCEAN, CLOTH, COLLISION

Inputs: type (required), object_name (required), name, properties. Returns: result

modifier_applyB

Apply a modifier to a Blender object, making its effect permanent.

Inputs: object_name (required), modifier_name (required). Returns: result

modifier_configureC

Configure properties of an existing modifier on a Blender object.

Inputs: properties (required), object_name (required), modifier_name (required). Returns: result

object_apply_transformB

Apply the transform of a Blender object, making current transforms the new basis.

Inputs: name (required), scale, location, rotation. Returns: result

object_deleteC

Delete one or more Blender objects by name.

Inputs: names (required), delete_children. Returns: result

object_duplicateC

Duplicate a Blender object.

Inputs: name (required), linked, offset, new_name. Returns: result

object_get_transformC

Get the transform (location, rotation, scale) of a Blender object.

Inputs: name (required), space. Returns: result

object_move_to_collectionC

Move a Blender object to a specified collection.

Inputs: name (required), collection (required). Returns: result

object_parentC

Set the parent of a Blender object.

Inputs: child (required), parent (required), keep_transform. Returns: result

object_set_transformC

Set the transform (location, rotation, scale) of a Blender object.

Inputs: name (required), scale, location, rotation. Returns: result

object_unparentC

Remove the parent of a Blender object.

Inputs: child (required), keep_transform. Returns: result

scene_get_hierarchyA

Get the parent-child hierarchy of objects in the scene as an indented tree.

Args: root: Optional root object name. If provided, shows hierarchy starting from that object. If omitted, shows the full scene hierarchy.

Inputs: root. Returns: result

scene_get_infoA

Get current Blender scene information including name, frame range, FPS, units, object count, and render engine.

Inputs: no named parameters. Returns: result

scene_get_objectC

Get detailed information about a specific object in the Blender scene.

Args: name: The exact name of the object to inspect.

Inputs: name (required). Returns: result

scene_list_objectsB

List objects in the current Blender scene with optional filtering.

Args: type_filter: Filter by object type (e.g. MESH, LIGHT, CAMERA, CURVE, EMPTY, ARMATURE). name_pattern: Filter objects whose name contains this substring (case-insensitive). collection: Filter objects belonging to this collection name.

Inputs: collection, type_filter, name_pattern. Returns: result

scene_manage_collectionB

Create, delete, or rename a collection in the scene.

Args: action: The action to perform: 'create', 'delete', or 'rename'. name: The name of the collection to act on. parent: Parent collection name (used with 'create' to nest the new collection). new_name: New name for the collection (required for 'rename' action).

Inputs: name (required), action (required), parent, new_name. Returns: result

scene_set_active_objectB

Set the active (selected) object in the Blender scene.

Args: name: The exact name of the object to make active.

Inputs: name (required). Returns: result

scene_set_unit_systemC

Configure the scene unit system and scale.

Args: system: Unit system to use (NONE, METRIC, or IMPERIAL). scale: Global scale factor for units. length_unit: Length display unit (e.g. KILOMETERS, METERS, CENTIMETERS, MILLIMETERS, MILES, FEET, INCHES).

Inputs: scale, system, length_unit. Returns: result

selection_setA

Set the selection of objects in Blender.

Args: names: List of object names to select. type_filter: Filter by object type (e.g. MESH, CURVE, LIGHT). pattern: Glob pattern to match object names. action: Selection action - SET, ADD, REMOVE, TOGGLE, DESELECT_ALL.

Inputs: names, action, pattern, type_filter. Returns: result

viewport_auto_screenshotA

Enable or disable automatic screenshots after every scene-modifying tool call.

When enabled, every tool that changes the scene (create, edit, delete, transform, material assign, etc.) will automatically capture a viewport screenshot. The AI should Read the screenshot file to review its work.

Screenshots are saved in per-session directories with sequential numbering.

Args: enabled: True to enable, False to disable width: Screenshot width (default 512 for speed) height: Screenshot height (default 512 for speed)

Inputs: width, height, enabled. Returns: result

viewport_screenshotB

Take a screenshot of the Blender viewport and save to disk.

Returns the file path so you can view it with the Read tool. Default resolution is 512x512 for fast AI feedback.

Inputs: width, height, output_path. Returns: result

viewport_screenshot_cleanupA

Clean up screenshot files to free disk space.

Args: mode: Cleanup mode: - "old_sessions": Delete all sessions except the current one - "specific": Delete a specific session by name - "list": Just list all sessions without deleting session_name: Required when mode is "specific"

Inputs: mode, session_name. Returns: result

viewport_set_cameraC

Set the viewport camera position, target, and lens properties.

Inputs: target (required), location (required), lens, camera_name. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 36 tools

    Disambiguation4/5

    Tools are organized into clear functional groups (mesh, scene, object, material, modifier, viewport) with largely distinct purposes. Minor confusion is possible between scene_set_active_object and selection_set, and mesh_set_origin vs object_apply_transform could overlap conceptually, but descriptions differentiate them adequately.

    Naming Consistency4/5

    Nearly all tools follow a consistent prefix_verb_noun pattern (mesh_create_primitive, object_set_transform, material_assign, modifier_apply). The only deviation is selection_set, which flips to verb_noun, a small inconsistency in an otherwise predictable scheme.

    Tool Count3/5

    36 tools is heavy, but each category (mesh, object, material, modifier, viewport) covers a genuine distinct area of Blender control. Still, several tools (e.g. viewport_screenshot_cleanup, scene_set_unit_system) are niche for a core modeling workflow, pushing it past the comfortable range.

    Completeness4/5

    Core modeling lifecycle is well covered: mesh creation/editing/analysis, object transforms, parenting, materials, and modifiers all have create/read/update paths. Gaps exist around material deletion, rendering/export, lighting/camera creation, and animation/keyframing, which limit the 'Pro' surface for full scene production.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that enables AI assistants to control Blender through 108 specialized tools for 3D modeling, animation, and rendering. It provides a secure, thread-safe interface to execute validated operations in Blender using natural language commands.
      276
      206
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables any MCP client to drive Blender 5.2 LTS through natural language, with tools for scene inspection, object creation and transformation, material and modifier handling, rendering, viewport capture, and guarded Python execution.
      2
      MIT