### create_light_rig Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a pre-built lighting rig with multiple lights arranged for common setups. ```APIDOC ## create_light_rig ### Description Create a pre-built lighting rig (multiple lights arranged for common setups). ### Method create_light_rig ### Signature create_light_rig(type: str, target: str = '', intensity: float = 1000.0) ### Parameters - **type** (str) - Required - Rig type. One of: THREE_POINT, STUDIO, RIM, OUTDOOR. - **target** (str) - Optional - Optional name of the object the rig should point at. - **intensity** (float) - Optional - Overall intensity of the lights, default 1000. ### Returns Confirmation dict with names of all created lights. ``` -------------------------------- ### Development Commands Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Development commands for installing with dev dependencies, running tests (1190 tests), running tests with coverage, linting, and formatting. ```bash # Install with dev dependencies uv pip install -e ".[dev]" # Run tests (1190 tests) uv run --extra dev pytest # Run tests with coverage uv run --extra dev pytest --cov=blenderwright # Lint ruff check src/ tests/ # Format ruff format src/ tests/ ``` -------------------------------- ### Install blenderwright in editable mode for development Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md For developers working on blenderwright itself, clone the repository and install it in editable mode with uv. After this, point your MCP client at `uv run --directory /path/to/blenderwright blenderwright` instead of `uvx blenderwright`. ```bash git clone https://github.com/HoldMyBeer-gg/blenderwright.git cd blenderwright uv pip install -e . ``` -------------------------------- ### Upgrade blenderwright addon with install_addon.py Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Upgrades the blenderwright addon from a zip install. The script finds your Blender installations and offers them as a numbered list when no path is given. Blender must be fully restarted after the upgrade. ```bash python install_addon.py upgrade ``` -------------------------------- ### get_object_info Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Gets detailed information about an object. ```APIDOC ## get_object_info(object_name: str) ### Description Get detailed information about an object. ### Method get_object_info ### Parameters - **object_name** (str) - Required - Name of the object. ### Returns Dict with type, location, rotation, scale, modifiers, materials, parent, children, and visibility info. ``` -------------------------------- ### Example Claude Code usage for blenderwright Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Example usage of blenderwright tools within Claude Code. These are natural-language commands you can issue to control Blender, such as creating objects, adding modifiers, analyzing meshes, and rendering animations. ```text $ claude > Create a red metallic sphere on a white plane with three-point lighting > Add a subdivision surface modifier to the sphere and set it to level 3 > Analyze the mesh quality of the sphere and fix any issues > Set up a turntable animation and render it to /tmp/turntable/ ``` -------------------------------- ### Add blenderwright MCP server to Claude Code Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Register the blenderwright MCP server with Claude Code. Ensure Blender is running with the addon server started before using the tools. ```bash claude mcp add blenderwright -- uvx blenderwright ``` -------------------------------- ### Doctor and uninstall blenderwright installs Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Companion commands for install_addon.py. Use doctor to list every blenderwright install and its location; uninstall removes them all (omit --yes for a dry run). Start with doctor if the addon behaves strangely, as a duplicate install under an old Blender version is the usual cause. ```bash python install_addon.py doctor # list every blenderwright install found, and where python install_addon.py uninstall --yes # remove them all (omit --yes for a dry run) ``` -------------------------------- ### Project Structure Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Project structure showing the MCP server, Blender addon, and tests directories with key files and module counts. ```text blenderwright/ ├── src/blenderwright/ # MCP server │ ├── server.py # FastMCP entry point │ ├── connection.py # TCP client to Blender (with busy-retry) │ ├── validators.py # Input validation │ ├── tools/ # 28 tool modules (191 tools) │ ├── resources/ # MCP resources (scene, objects, materials) │ └── prompts/ # 12 expert prompt templates ├── addon/ # Blender addon (zero external deps) │ ├── blender_manifest.toml # Blender 4.2+ Extension manifest │ ├── __init__.py # bl_info (legacy fallback) + register/unregister │ ├── server.py # TCP socket server (SO_KEEPALIVE) │ ├── dispatcher.py # Command routing + allowlist │ ├── thread_safety.py # Main-thread execution queue │ ├── render_guard.py # Render state tracking + crash recovery │ ├── ui_panel.py # N-panel UI (start/stop + port config) │ └── handlers/ # 23 handler modules └── tests/ # 1186 unit tests ``` -------------------------------- ### create_scene Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a new scene with the given name. ```APIDOC ## create_scene ### Description Create a new scene. ### Method create_scene ### Endpoint create_scene(name: str) ### Parameters - **name** (str) - Required - Name for the new scene. ### Response Returns Confirmation dict with the created scene name. ``` -------------------------------- ### enable_dyntopo Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Enables dynamic topology for adaptive sculpting resolution. ```APIDOC ## enable_dyntopo(object_name: str, detail_size: float = 12.0, detail_mode: str = 'RELATIVE') ### Description Enable dynamic topology (dyntopo) for adaptive sculpting resolution. Dyntopo adds and removes mesh detail dynamically as you sculpt, allowing unlimited detail where needed without uniform subdivision. ### Parameters - **object_name** (str) - Required - Name of the mesh object (must be in sculpt mode or will enter it). - **detail_size** (float) - Optional - Detail level (smaller = more detail). Range: 0.1-500.0. Defaults to 12.0. - **detail_mode** (str) - Optional - Detail mode. One of: RELATIVE, CONSTANT, BRUSH, MANUAL. Defaults to 'RELATIVE'. ### Returns Confirmation dict with dyntopo settings. ``` -------------------------------- ### set_frame_range Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Sets the start and end frames of the scene timeline. ```APIDOC ## set_frame_range ### Description Set the start and end frames of the scene timeline. ### Parameters - **start** (int) - Required - Start frame number. - **end** (int) - Required - End frame number. Must be greater than start. ### Returns Confirmation dict with the new frame range. ``` -------------------------------- ### create_principled_material Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Create a fully configured Principled BSDF material in one call. ```APIDOC ## create_principled_material ### Description Create a fully configured Principled BSDF material in one call. ### Method create_principled_material ### Parameters - **name** (str) - Required - Name for the new material. - **color** (list) - Optional - Base color as RGBA list, default [0.8, 0.8, 0.8, 1.0]. - **metallic** (float) - Optional - Metallic value 0.0-1.0, default 0.0. - **roughness** (float) - Optional - Roughness value 0.0-1.0, default 0.5. - **specular** (float) - Optional - Specular IOR level 0.0-1.0, default 0.5. - **emission_strength** (float) - Optional - Emission strength, default 0.0. - **emission_color** (list) - Optional - Emission color as RGBA list, default [1.0, 1.0, 1.0, 1.0]. - **alpha** (float) - Optional - Alpha value 0.0-1.0, default 1.0. - **transmission** (float) - Optional - Transmission weight 0.0-1.0, default 0.0. - **ior** (float) - Optional - Index of refraction, default 1.45. ### Returns Confirmation dict with material name and all set properties. ``` -------------------------------- ### create_procedural_material Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Build a complete procedural texture as a material in one call. ```APIDOC ## create_procedural_material ### Description Build a complete procedural texture as a material, in one call. It creates the full graph (coordinates, mapping, the pattern's texture nodes, a tuned colour ramp, and the Principled BSDF) and returns the node names so you can adjust anything afterwards. ### Method Function call ### Endpoint create_procedural_material(name: str, pattern: str, scale: float = 5.0, detail: float = 2.0, distortion: float = 0.0, roughness: float = 0.5, metallic: float = 0.0, colors: list | None = None, banded: bool = False, connect_to_bsdf: bool = True) ### Parameters - **name** (str) - Required - Name for the new material. - **pattern** (str) - Required - One of the supported patterns, e.g. 'fire', 'wood', 'veins'. - **scale** (float) - Optional - Feature size. Lower is bigger and broader, higher is finer and busier. 5.0 is a sensible default; try 1-3 for large forms and 20+ for fine detail. - **detail** (float) - Optional - Fractal octaves, 0-15. Higher adds finer sub-detail at the cost of render time. Applies to noise, cloud, wood, marble, plasma and fire. The cellular patterns (voronoi, veins, scales, sparks), stripes, weave and gradient have no detail socket and ignore it. - **distortion** (float) - Optional - Warps the pattern. Small values (0.5-2.0) make wood and marble look organic rather than machine-perfect. Applies to noise, cloud, stripes, wood, marble, plasma and fire. The cellular patterns, weave and gradient ignore it. - **roughness** (float) - Optional - Surface roughness 0-1 for the Principled BSDF. - **metallic** (float) - Optional - Metallic 0-1 for the Principled BSDF. - **colors** (list | None) - Optional - Optional list of RGB or RGBA colours for the ramp, in order. Omit to use the pattern's own tuned palette. - **banded** (bool) - Optional - Use CONSTANT ramp interpolation, giving hard-edged bands instead of smooth blending. Turns noise into discrete regions: scale plates, cracked mud, cel shading. - **connect_to_bsdf** (bool) - Optional - Wire the result into the Principled BSDF base colour so the material renders immediately. Set False to leave the pattern subtree unconnected for manual wiring. ### Response Returns Dict with the material name, the created node names, and ignored_params listing any arguments this pattern could not use. ``` -------------------------------- ### open_file Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Opens a .blend file. ```APIDOC ## open_file(filepath: str) ### Description Opens a .blend file. ### Method Function call ### Parameters - **filepath** (str) - Required - Absolute path to the .blend file. Must exist. ### Returns Dict with the opened file path. ``` -------------------------------- ### Upgrade blenderwright with explicit Blender path Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Upgrades the blenderwright addon by explicitly passing the Blender executable path. The script refuses to run while Blender is open, checks the path, removes all blenderwright installs across all Blender version directories, rebuilds the zip from addon/, and installs via Blender's extension machinery. ```bash # macOS - the binary inside the bundle, not the .app itself python install_addon.py upgrade /Applications/Blender.app/Contents/MacOS/Blender # Linux python install_addon.py upgrade /usr/local/bin/blender # Windows python install_addon.py upgrade "C:\Program Files\Blender Foundation\Blender 4.2\blender.exe" ``` -------------------------------- ### create_material Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Create a new material with a Principled BSDF shader node. ```APIDOC ## create_material ### Description Create a new material with a Principled BSDF shader node. ### Method create_material ### Parameters - **name** (str) - Required - Name for the new material. ### Returns Confirmation dict with the created material name. ``` -------------------------------- ### create_camera Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a new camera in the scene with specified properties. ```APIDOC ## create_camera ### Description Create a new camera in the scene. ### Method Function call ### Endpoint `create_camera(name: str = 'Camera', location: list = [0, 0, 0], rotation: list = [0, 0, 0], lens: float = 50.0)` ### Parameters - **name** (str) - Optional - Name for the camera, default "Camera". - **location** (list) - Optional - XYZ location as [x, y, z], default [0, 0, 0]. - **rotation** (list) - Optional - XYZ Euler rotation in radians as [x, y, z], default [0, 0, 0]. - **lens** (float) - Optional - Focal length in mm, default 50. ### Returns Confirmation dict with camera name and properties. ``` -------------------------------- ### booltool_auto_intersect Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Auto boolean intersect: keep only the overlapping volume of two objects. The target object is removed after the operation. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ```APIDOC ## booltool_auto_intersect ### Description Auto boolean intersect: keep only the overlapping volume of two objects. The target object is removed after the operation. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ### Method Function call ### Endpoint booltool_auto_intersect(object_name: str, target_name: str) ### Parameters - **object_name** (str) - Required - Name of the main object. - **target_name** (str) - Required - Name of the intersecting object (will be removed). ### Response Returns Confirmation dict with operation details. May include a 'warning' field if Bool Tool is not available and native fallback was used. ``` -------------------------------- ### list_procedural_patterns Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Lists all available procedural patterns with descriptions to help select the appropriate pattern for material creation. ```APIDOC ## list_procedural_patterns() ### Description List every procedural pattern with a description of what it looks like. Read this before calling create_procedural_material so you pick a pattern that matches the surface you are trying to make. ### Parameters None. ### Returns Dict with the sorted pattern names and a description of each. ``` -------------------------------- ### booltool_auto_difference Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Auto boolean difference: subtract the target object from the main object. The target object is used as a cutter and removed after the operation. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ```APIDOC ## booltool_auto_difference ### Description Auto boolean difference: subtract the target object from the main object. The target object is used as a cutter and removed after the operation. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ### Method Function call ### Endpoint booltool_auto_difference(object_name: str, target_name: str) ### Parameters - **object_name** (str) - Required - Name of the object to cut from. - **target_name** (str) - Required - Name of the cutter object (will be removed). ### Response Returns Confirmation dict with operation details. May include a 'warning' field if Bool Tool is not available and native fallback was used. ``` -------------------------------- ### suggest_extensions Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Suggests helpful Blender extensions for a planned task. ```APIDOC ## suggest_extensions ### Description Suggest helpful Blender extensions for a planned task. Analyzes the task description and recommends free Blender extensions that could improve the workflow. Already-installed extensions are excluded. ### Method suggest_extensions ### Endpoint suggest_extensions(task_description: str = '') ### Parameters - **task_description** (str) - Optional - Description of the planned task. If empty, returns all extensions not currently installed. ### Response Returns Dict with 'suggestions' list of recommended extensions and 'installed' list of already-installed extension IDs. ``` -------------------------------- ### create_light Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a new light in the scene with configurable type, name, location, energy, and color. ```APIDOC ## create_light ### Description Create a new light in the scene. ### Method create_light ### Signature create_light(type: str, name: str = '', location: list = [0, 0, 0], energy: float = 1000.0, color: list = [1.0, 1.0, 1.0]) ### Parameters - **type** (str) - Required - Light type. One of: POINT, SUN, SPOT, AREA. - **name** (str) - Optional - Optional name for the light. - **location** (list) - Optional - XYZ location as [x, y, z], default [0, 0, 0]. - **energy** (float) - Optional - Light energy/power, default 1000. - **color** (list) - Optional - RGB color as [r, g, b], default [1.0, 1.0, 1.0]. ### Returns Confirmation dict with light name and properties. ``` -------------------------------- ### booltool_auto_slice Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Auto boolean slice: split the main object using the target as a cutter. Creates two separate pieces from the intersection. The target object is removed after the operation. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ```APIDOC ## booltool_auto_slice ### Description Auto boolean slice: split the main object using the target as a cutter. Creates two separate pieces from the intersection. The target object is removed after the operation. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ### Method Function call ### Endpoint booltool_auto_slice(object_name: str, target_name: str) ### Parameters - **object_name** (str) - Required - Name of the object to slice. - **target_name** (str) - Required - Name of the cutter object (will be removed). ### Response Returns Confirmation dict with operation details. May include a 'warning' field if Bool Tool is not available and native fallback was used. ``` -------------------------------- ### set_shadow_settings Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Configures shadow settings for a light, including enabling shadows and adjusting softness. ```APIDOC ## set_shadow_settings ### Description Configure shadow settings for a light. ### Method set_shadow_settings ### Signature set_shadow_settings(object_name: str, use_shadow: bool = True, shadow_soft_size: float = 0.25) ### Parameters - **object_name** (str) - Required - Name of the light object. - **use_shadow** (bool) - Optional - Whether to enable shadows, default True. - **shadow_soft_size** (float) - Optional - Soft shadow radius, default 0.25. ### Returns Confirmation dict. ``` -------------------------------- ### booltool_auto_union Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Auto boolean union: merge two mesh objects into one. The target object is consumed and joined into the main object. This is useful for permanently joining meshes so parts don't float away from their bodies. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ```APIDOC ## booltool_auto_union ### Description Auto boolean union: merge two mesh objects into one. The target object is consumed and joined into the main object. This is useful for permanently joining meshes so parts don't float away from their bodies. Uses Bool Tool extension if installed, otherwise falls back to native boolean modifier (a warning will be included in the response). ### Method Function call ### Endpoint booltool_auto_union(object_name: str, target_name: str) ### Parameters - **object_name** (str) - Required - Name of the main object to keep. - **target_name** (str) - Required - Name of the object to merge into the main object. ### Response Returns Confirmation dict with operation details. May include a 'warning' field if Bool Tool is not available and native fallback was used. ``` -------------------------------- ### list_strips Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html List every strip in the sequencer. ```APIDOC ## list_strips ### Description List every strip in the sequencer. ### Method list_strips ### Parameters None ### Returns List of dicts with name, type, channel, and first and last frame. ``` -------------------------------- ### add_sound_strip Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Add an audio file to the sequencer as a sound strip. ```APIDOC ## add_sound_strip ### Description Add an audio file to the sequencer as a sound strip. ### Method add_sound_strip ### Parameters - **filepath** (str) - Required - Path to the audio file (.wav, .mp3, .flac, .ogg, .m4a, .aac, .opus). - **name** (str) - Optional - Optional name for the strip. - **channel** (int) - Optional - Sequencer channel, 1-128. - **frame_start** (int) - Optional - Timeline frame where the sound becomes audible. - **start_offset** (float) - Optional - Seconds to skip at the start of the audio file, so a clip can begin partway in. - **volume** (float) - Optional - Volume multiplier, 0-100. 1.0 leaves the audio unchanged. ### Returns Dict with the strip name and the frames it covers. ``` -------------------------------- ### list_lights Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Lists all light objects in the scene with their properties. ```APIDOC ## list_lights ### Description List all light objects in the scene. ### Method list_lights ### Signature list_lights() ### Parameters None. ### Returns List of dicts with light name, type, energy, color, and location. ``` -------------------------------- ### list_materials Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Lists all materials present in the current Blender file, returning their names and user counts. ```APIDOC ## list_materials() ### Description List all materials in the current Blender file. ### Parameters None. ### Returns List of dicts with material name and user count. ``` -------------------------------- ### get_scene_info Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Retrieves comprehensive information about the current scene. ```APIDOC ## get_scene_info ### Description Get full scene information including object tree, hierarchy, counts, frame range, fps, and render engine. ### Method get_scene_info ### Endpoint get_scene_info() ### Response Returns a dict with scene name, object list with hierarchy, object type counts, frame range (start, end, current), fps, and active render engine. ``` -------------------------------- ### create_object Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a primitive object in the scene. ```APIDOC ## create_object(type: str, name: str = '', location: list[float] | tuple[float, ...] = (0, 0, 0), rotation: list[float] | tuple[float, ...] = (0, 0, 0), scale: list[float] | tuple[float, ...] = (1, 1, 1)) ### Description Create a primitive object in the scene. ### Method create_object ### Parameters - **type** (str) - Required - Primitive type. One of: CUBE, SPHERE, UV_SPHERE, ICO_SPHERE, CYLINDER, CONE, TORUS, PLANE, CIRCLE, MONKEY, EMPTY. - **name** (str) - Optional - Optional name for the object. Auto-generated if empty. - **location** (list[float] | tuple[float, ...]) - Optional - XYZ position as a 3-element list/tuple. Defaults to origin. - **rotation** (list[float] | tuple[float, ...]) - Optional - XYZ Euler rotation in radians as a 3-element list/tuple. - **scale** (list[float] | tuple[float, ...]) - Optional - XYZ scale as a 3-element list/tuple. Defaults to (1,1,1). ### Returns Dict with the created object's name, type, and location. ``` -------------------------------- ### render_image Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Renders the current scene to an image file at the specified path. ```APIDOC ## render_image ### Description Render the current scene to an image file. ### Method render_image ### Endpoint render_image(filepath: str = '/tmp/render.png') ### Parameters - **filepath** (str) - Optional - Output file path for the rendered image. Must be an absolute path with a valid image extension (.png, .jpg, .exr, .tiff, .bmp). ### Returns Confirmation dict with the output file path. ``` -------------------------------- ### render_video Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Render the scene's frame range to a single video file, with sound. ```APIDOC ## render_video ### Description Render the scene's frame range to a single video file, with sound. Sequencer strips are used when there are any, so frames already rendered with render_animation can be assembled with a sound strip in seconds. With an empty sequencer the 3D scene is rendered. Playback speed follows the scene fps. ### Method render_video ### Parameters - **filepath** (str) - Optional - Output path. The extension must match the container: .mp4 for MPEG4, .mkv for MKV, .webm for WEBM. - **container** (str) - Optional - Video container. One of: MPEG4, MKV, WEBM. - **quality** (str) - Optional - Encoder quality preset, from LOWEST to LOSSLESS. - **audio_codec** (str) - Optional - Audio codec, or NONE for a silent video. WEBM accepts only OPUS or NONE. ### Returns Dict with the output path, frame range, and fps. ``` -------------------------------- ### list_scenes Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Lists all scenes in the current Blender file. ```APIDOC ## list_scenes ### Description List all scenes in the current Blender file. ### Method list_scenes ### Endpoint list_scenes() ### Response Returns a list of dicts, each containing the scene name and object count. ``` -------------------------------- ### set_output_format Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Sets the render output format and optionally the output file path. ```APIDOC ## set_output_format ### Description Set the render output format and optionally the output file path. ### Method set_output_format ### Endpoint set_output_format(format: str, filepath: str = '') ### Parameters - **format** (str) - Required - Output format. One of: PNG, JPEG, OPEN_EXR, TIFF, BMP. - **filepath** (str) - Optional - Optional output file path. Must be an absolute path. ### Returns Confirmation dict with the new output settings. ``` -------------------------------- ### Run blenderwright MCP server directly Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/README.md Run the blenderwright MCP server directly for any MCP-compatible client. The server uses stdio transport and connects to Blender's addon over TCP on `127.0.0.1:9876` (or your configured port). ```bash uvx blenderwright # or, after pip install blenderwright: blenderwright ``` -------------------------------- ### select_similar Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Grows the current selection to geometry that resembles it. ```APIDOC ## select_similar ### Description Grow the current selection to geometry that resembles it. Requires something to already be selected: it compares against that. ### Method Function call ### Endpoint `select_similar(object_name: str, type: str = 'FACE_AREA', threshold: float = 0.0)` ### Parameters - **object_name** (str) - Required - Name of the mesh object. - **type** (str) - Optional - What to compare. Face options: FACE_MATERIAL, FACE_AREA, FACE_SIDES, FACE_PERIMETER, FACE_NORMAL, FACE_COPLANAR, FACE_SMOOTH, FACE_FREESTYLE. Edge options: EDGE_LENGTH, EDGE_DIR, EDGE_FACES, EDGE_FACE_ANGLE, EDGE_CREASE, EDGE_BEVEL, EDGE_SEAM, EDGE_SHARP, EDGE_FREESTYLE. Vertex options: VERT_NORMAL, VERT_FACES, VERT_GROUPS, VERT_EDGES, VERT_CREASE. - **threshold** (float) - Optional - How close a match must be, 0.0 to 1.0. ### Returns Dict with how many elements were selected. ``` -------------------------------- ### create_text Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Create a 3D text object. ```APIDOC ## create_text ### Description Create a 3D text object. ### Method create_text ### Signature create_text(text: str, name: str = '', location: list[float] | tuple[float, ...] = (0, 0, 0), size: float = 1.0, font: str = '') ### Parameters - **text** (str) - Required - The text string to display. - **name** (str) - Optional - Optional name for the text object. - **location** (list[float] | tuple[float, ...]) - Optional - 3D location as (x, y, z). - **size** (float) - Optional - Font size. - **font** (str) - Optional - Optional path to a font file. Uses default Blender font if empty. ### Returns Dict with created text object name. ``` -------------------------------- ### create_collection(name: str, parent: str = '') Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a new collection, optionally nested under a parent collection. ```APIDOC ## create_collection(name: str, parent: str = '') ### Description Creates a new collection, optionally nested under a parent collection. ### Parameters - **name** (str) - Required - Name for the new collection. - **parent** (str) - Optional - Name of parent collection to nest under. Empty string uses the scene's root collection. ### Returns Dict with the created collection's name and parent. ``` -------------------------------- ### bake_physics Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Bake a physics simulation for an object. ```APIDOC ## bake_physics ### Description Bake a physics simulation for an object. ### Method bake_physics ### Endpoint bake_physics(object_name: str, physics_type: str = '') ### Parameters - **object_name** (str) - Required - Name of the object with physics. - **physics_type** (str) - Optional - Optional physics type to bake. If empty, bakes all physics on the object. ### Response Returns Confirmation dict. ``` -------------------------------- ### add_cloth_sim Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Add a cloth physics simulation to an object. ```APIDOC ## add_cloth_sim ### Description Add a cloth physics simulation to an object. ### Method add_cloth_sim ### Endpoint add_cloth_sim(object_name: str, quality: int = 5, mass: float = 0.3) ### Parameters - **object_name** (str) - Required - Name of the mesh object. - **quality** (int) - Optional - Simulation quality steps (1-80). - **mass** (float) - Optional - Mass of the cloth in kg. ### Response Returns Confirmation dict with cloth settings. ``` -------------------------------- ### import_file Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Imports a 3D file into Blender, supporting multiple formats. ```APIDOC ## import_file(filepath: str, type: str = '') ### Description Imports a 3D file into Blender. Supports FBX, OBJ, GLTF/GLB, USD, STL, PLY, Alembic (ABC), Collada (DAE), SVG, and X3D formats. Auto-detects format from file extension if type is empty. ### Method Function call ### Parameters - **filepath** (str) - Required - Absolute path to the file to import. Must exist. - **type** (str) - Optional - Format override. One of: FBX, OBJ, GLTF, USD, STL, PLY, ABC, DAE, SVG, X3D. Auto-detected from extension if empty. ### Returns Dict with imported file path and format. ``` -------------------------------- ### create_armature Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a new armature object. ```APIDOC ## create_armature ### Description Create a new armature object. ### Method create_armature ### Endpoint create_armature(name: str = 'Armature', location: list[float] | tuple[float, ...] = (0, 0, 0)) ### Parameters - **name** (str) - Optional - Name for the armature. Defaults to "Armature". - **location** (list[float] | tuple[float, ...]) - Optional - XYZ position for the armature. Defaults to origin. ### Returns Dict with the created armature's name and location. ``` -------------------------------- ### snap_to_grid Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Snaps an object's location to the nearest grid point. ```APIDOC ## snap_to_grid ### Description Snap an object's location to the nearest grid point. ### Method Function call ### Endpoint snap_to_grid(object_name: str, grid_size: float = 1.0) ### Parameters - **object_name** (str) - Required - Name of the object. - **grid_size** (float) - Optional - Size of the grid cells. Defaults to 1.0. ### Returns Dict with the object name and snapped location. ``` -------------------------------- ### point_camera_at Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Points a camera at an object or a specific location using a Track To constraint. ```APIDOC ## point_camera_at ### Description Point a camera at an object or a specific location using a Track To constraint. ### Method Function call ### Endpoint `point_camera_at(camera_name: str, target: str = '', location: list | None = None)` ### Parameters - **camera_name** (str) - Required - Name of the camera object. - **target** (str) - Optional - Name of an existing object to point at, as a string. For coordinates use `location` instead. Mutually exclusive with location. - **location** (list) - Optional - XYZ location to point at as [x, y, z]. Mutually exclusive with target. ### Returns Confirmation dict. ``` -------------------------------- ### check_3d_printability Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Documentation for the check_3d_printability function, which checks mesh printability using Blender's 3D Print Toolbox. ```APIDOC ## check_3d_printability ### Description Checks whether a mesh will 3D print, using Blender's 3D Print Toolbox. It catches defects such as bad contiguous edges, intersect faces, and thin faces, and also reports shell count, zero-area faces and edges, non-flat faces, sharp edges, and overhanging faces. ### Method Function call ### Endpoint `check_3d_printability(object_name: str, checks: list[str] | None = None, overhang_angle: float | None = None, min_thickness: float | None = None, sharp_angle: float | None = None, nonplanar_angle: float | None = None, zero_threshold: float | None = None)` ### Parameters #### Path Parameters - **object_name** (str) - Required - Name of the mesh object to check. #### Query Parameters - **checks** (list[str] | None) - Optional - Which checks to run - any of SOLID (non-manifold and bad contiguous edges), INTERSECT, DEGENERATE (zero faces and edges), THICKNESS, SHARP, OVERHANG, NONPLANAR. Omit or pass an empty list to run everything, which also reports shell count. Counts are only returned for checks that actually ran. - **overhang_angle** (float | None) - Optional - Overhang threshold in RADIANS. Faces steeper than this need support. 0.785 (45 degrees) is the usual FDM limit. Leave unset to keep the toolbox's current setting. - **min_thickness** (float | None) - Optional - Minimum wall thickness in Blender units. Set it to your nozzle width. Leave unset to keep the current setting. - **sharp_angle** (float | None) - Optional - Sharp-edge threshold in RADIANS. - **nonplanar_angle** (float | None) - Optional - Non-flat face threshold in RADIANS. - **zero_threshold** (float | None) - Optional - Area below which a face counts as zero-area. ### Response #### Success Response Returns a Dict with a count (and sample indices) per check that ran, plus `checks_run`, `issues_found`, and `print_blocking`: the defects that stop a print, as opposed to overhangs and sharp edges which are advisory. ``` -------------------------------- ### capture_viewport Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Renders the current viewport to a file or returns base64-encoded image data. ```APIDOC ## capture_viewport ### Description Render the viewport to a file or return as base64. ### Method Function call ### Endpoint `capture_viewport(filepath: str = '', width: int = 1920, height: int = 1080)` ### Parameters - **filepath** (str) - Optional - Absolute path for output image. If empty, returns base64-encoded image. - **width** (int) - Optional - Render width in pixels, default 1920. - **height** (int) - Optional - Render height in pixels, default 1080. ### Returns Dict with filepath or base64 image data. ``` -------------------------------- ### assign_material Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Assign a material to an object. ```APIDOC ## assign_material ### Description Assign a material to an object. ### Method assign_material ### Parameters - **object_name** (str) - Required - Name of the target object. - **material_name** (str) - Required - Name of the material to assign. ### Returns Confirmation dict. ``` -------------------------------- ### list_objects Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Lists all objects in the scene, optionally filtered by type. ```APIDOC ## list_objects ### Description List all objects in the scene, optionally filtered by type. ### Method list_objects ### Endpoint list_objects(type_filter: str = '') ### Parameters - **type_filter** (str) - Optional - Filter by object type (e.g., MESH, LIGHT, CAMERA, EMPTY). Empty string returns all objects. ### Returns List of dicts with object name, type, and location. ``` -------------------------------- ### set_viewport_overlay Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Documentation for the set_viewport_overlay function that toggles a viewport overlay setting. ```APIDOC ## set_viewport_overlay ### Description Toggles a viewport overlay setting. ### Method Function Call ### Endpoint set_viewport_overlay(overlay: str, enabled: bool) ### Parameters #### Function Parameters - **overlay** (str) - Required - Overlay property name. One of: show_wireframes, show_face_orientation, show_floor, show_axis_x, show_axis_y, show_axis_z, show_cursor, show_object_origins, show_relationship_lines, show_stats. - **enabled** (bool) - Required - Whether the overlay should be enabled. ### Response Returns Confirmation dict with the overlay name and state. ``` -------------------------------- ### knife_project Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Project a cutter object's outline onto a mesh to cut it. ```APIDOC ## knife_project(object_name: str, cutter_name: str) ### Description Project a cutter object's outline onto a mesh to cut it. The cutter object (curve or mesh) is projected from the viewport onto the target mesh, cutting new edges into it. ### Parameters - **object_name** (str) - Required - Name of the mesh to cut into. - **cutter_name** (str) - Required - Name of the cutter object (curve or mesh) to project. ### Returns Confirmation dict. ``` -------------------------------- ### render_animation Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Renders the animation sequence to image files with configurable output path and format. ```APIDOC ## render_animation ### Description Render the animation sequence to image files. ### Method render_animation ### Endpoint render_animation(filepath: str = '/tmp/render_', format: str = 'PNG') ### Parameters - **filepath** (str) - Optional - Output file path prefix for the rendered frames. Each frame will be saved with a frame number suffix. - **format** (str) - Optional - Output format. One of: PNG, JPEG, OPEN_EXR, TIFF, BMP. ### Returns Confirmation dict with output details. ``` -------------------------------- ### grid_fill Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Fill a closed edge loop with a grid of quads. ```APIDOC ## grid_fill(object_name: str, span: int = 1, offset: int = 0, selection: str = 'ALL') ### Description Fill a closed edge loop with a grid of quads. Creates a clean quad grid between edge loops. Better than fill_faces for maintaining good topology. ### Parameters - **object_name** (str) - Required - Name of the mesh object. - **span** (int) - Optional - Number of grid columns. Range: 1-1000. - **offset** (int) - Optional - Offset for the grid alignment. Range: 0-1000. - **selection** (str) - Optional - "ALL" to act on the whole mesh, or "CURRENT" to act only on what is already selected. Use the select_* tools to choose first. Defaults to "ALL". ### Returns Confirmation dict. ``` -------------------------------- ### list_recent_files Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Lists recently opened files from Blender preferences. ```APIDOC ## list_recent_files() ### Description Lists recently opened files from Blender preferences. ### Method Function call ### Parameters None ### Returns List of file path strings. ``` -------------------------------- ### add_fluid_sim Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Add a fluid physics simulation to an object. ```APIDOC ## add_fluid_sim ### Description Add a fluid physics simulation to an object. ### Method add_fluid_sim ### Endpoint add_fluid_sim(object_name: str, type: str = 'DOMAIN', domain_type: str = 'GAS') ### Parameters - **object_name** (str) - Required - Name of the object. - **type** (str) - Optional - Fluid type - DOMAIN (container), FLOW (emitter), or EFFECTOR (obstacle). - **domain_type** (str) - Optional - Domain simulation type - GAS (smoke/fire) or LIQUID. Only used when type is DOMAIN. ### Response Returns Confirmation dict with fluid settings. ``` -------------------------------- ### create_animation_path Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Creates a Follow Path constraint to animate an object along a curve. ```APIDOC ## create_animation_path ### Description Make an object follow a path (curve) using a Follow Path constraint. ### Parameters - **object_name** (str) - Required - Name of the object to animate along the path. - **path_object** (str) - Required - Name of the curve object to use as the path. ### Returns Confirmation dict with constraint details. ``` -------------------------------- ### smart_uv_project Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Applies Smart UV Project to a mesh object. Automatically unwraps the mesh using angle-based projection. ```APIDOC ## smart_uv_project ### Description Applies Smart UV Project to a mesh object. Automatically unwraps the mesh using angle-based projection. ### Method smart_uv_project ### Endpoint smart_uv_project(object_name: str, angle_limit: float = 66.0, island_margin: float = 0.0, area_weight: float = 0.0) ### Parameters #### Parameters - **object_name** (str) - Required - Name of the mesh object. - **angle_limit** (float) - Optional - Angle limit in degrees for splitting faces (0.0-89.0). - **island_margin** (float) - Optional - Margin between UV islands (0.0-1.0). - **area_weight** (float) - Optional - Weight given to face area for island arrangement (0.0-1.0). ### Returns Confirmation dict with object name and UV map info. ``` -------------------------------- ### select_objects Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Selects objects by name. ```APIDOC ## select_objects ### Description Select objects by name. ### Method select_objects ### Endpoint select_objects(names: list[str], deselect_others: bool = True) ### Parameters - **names** (list[str]) - Required - List of object names to select. - **deselect_others** (bool) - Optional - If True, deselect all other objects first. Defaults to True. ### Returns Dict with list of selected object names. ``` -------------------------------- ### focus_on_object Source: https://github.com/holdmybeer-gg/blenderwright/blob/main/docs/index.html Documentation for the focus_on_object function that frames the viewport on a specific object. ```APIDOC ## focus_on_object ### Description Frames/focuses the viewport on a specific object by selecting it and using View Selected to center the viewport on it. ### Method Function Call ### Endpoint focus_on_object(object_name: str) ### Parameters #### Function Parameters - **object_name** (str) - Required - Name of the object to focus on. ### Response Returns Confirmation dict. ```