MCP ExplorerExplorer

Blender

@ahujasidon 12 days ago
11690 MIT
FreeCommunity
Media Creation
#Blender#Claude AI#3D Modeling
Blender integration allowing prompt enabled 3D scene creation, modeling and manipulation.

Overview

What is Blender

BlenderMCP is an integration that connects Blender, a powerful 3D modeling software, with Claude AI using the Model Context Protocol (MCP). This integration enables Claude to assist users in creating and manipulating 3D models and scenes within Blender, enhancing the modeling experience with AI-driven prompts.

Use cases

Users can leverage BlenderMCP for various tasks such as generating low-poly models, creating intricate scenes, modifying existing objects, applying textures and materials, and even executing custom Python scripts in Blender. Practical applications include designing game assets, concept art, architectural visualizations, and experimental 3D art.

How to use

To utilize BlenderMCP, users need to install the addon.py file in Blender, configure the MCP server settings in Claude desktop, and establish a connection through the Blender interface. Users can then issue commands to Claude to perform specific actions like creating or modifying objects, downloading assets, or generating scenes based on given prompts.

Key features

Key features of BlenderMCP include two-way communication between Claude and Blender, object manipulation capabilities, control over materials, scene inspection, and the ability to execute Python code within Blender. Additionally, it integrates with Poly Haven for asset downloads and Hyper3D for AI-generated models.

Where to use

BlenderMCP is suitable for 3D artists, game developers, and designers who utilize Blender for modeling and scene creation. It can be used in various environments such as studios, educational settings, and individual projects where a blend of AI assistance and traditional modeling techniques improves productivity.

Content


BlenderMCP - Blender Model Context Protocol Integration

BlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.

Full tutorial

Join the Community

Give feedback, get inspired, and build on top of the MCP: Discord

Supporters

Top supporters:

CodeRabbit

All supporters:

Support this project

Release notes (1.2.0)

  • View screenshots for Blender viewport to better understand the scene
  • Search and download Sketchfab models

Previously added features:

  • Support for Poly Haven assets through their API
  • Support to generate 3D models using Hyper3D Rodin
  • For newcomers, you can go straight to Installation. For existing users, see the points below
  • Download the latest addon.py file and replace the older one, then add it to Blender
  • Delete the MCP server from Claude and add it back again, and you should be good to go!

Features

  • Two-way communication: Connect Claude AI to Blender through a socket-based server
  • Object manipulation: Create, modify, and delete 3D objects in Blender
  • Material control: Apply and modify materials and colors
  • Scene inspection: Get detailed information about the current Blender scene
  • Code execution: Run arbitrary Python code in Blender from Claude

Components

The system consists of two main components:

  1. Blender Addon (addon.py): A Blender addon that creates a socket server within Blender to receive and execute commands
  2. MCP Server (src/blender_mcp/server.py): A Python server that implements the Model Context Protocol and connects to the Blender addon

Installation

Prerequisites

  • Blender 3.0 or newer
  • Python 3.10 or newer
  • uv package manager:

If you’re on Mac, please install uv as

brew install uv

On Windows

powershell -c "irm https://astral.sh/uv/install.ps1 | iex" 

and then

set Path=C:\Users\nntra\.local\bin;%Path%

Otherwise installation instructions are on their website: Install uv

⚠️ Do not proceed before installing UV

Claude for Desktop Integration

Watch the setup instruction video (Assuming you have already installed uv)

Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:

{
  "mcpServers": {
    "blender": {
      "command": "uvx",
      "args": [
        "blender-mcp"
      ]
    }
  }
}

Cursor integration

For Mac users, go to Settings > MCP and paste the following

  • To use as a global server, use “add new global MCP server” button and paste
  • To use as a project specific server, create .cursor/mcp.json in the root of the project and paste
{
  "mcpServers": {
    "blender": {
      "command": "uvx",
      "args": [
        "blender-mcp"
      ]
    }
  }
}

For Windows users, go to Settings > MCP > Add Server, add a new server with the following settings:

{
  "mcpServers": {
    "blender": {
      "command": "cmd",
      "args": [
        "/c",
        "uvx",
        "blender-mcp"
      ]
    }
  }
}

Cursor setup video

⚠️ Only run one instance of the MCP server (either on Cursor or Claude Desktop), not both

Installing the Blender Addon

  1. Download the addon.py file from this repo
  2. Open Blender
  3. Go to Edit > Preferences > Add-ons
  4. Click “Install…” and select the addon.py file
  5. Enable the addon by checking the box next to “Interface: Blender MCP”

Usage

Starting the Connection

BlenderMCP in the sidebar

  1. In Blender, go to the 3D View sidebar (press N if not visible)
  2. Find the “BlenderMCP” tab
  3. Turn on the Poly Haven checkbox if you want assets from their API (optional)
  4. Click “Connect to Claude”
  5. Make sure the MCP server is running in your terminal

Using with Claude

Once the config file has been set on Claude, and the addon is running on Blender, you will see a hammer icon with tools for the Blender MCP.

BlenderMCP in the sidebar

Capabilities

  • Get scene and object information
  • Create, delete and modify shapes
  • Apply or create materials for objects
  • Execute any Python code in Blender
  • Download the right models, assets and HDRIs through Poly Haven
  • AI generated 3D models through Hyper3D Rodin

Example Commands

Here are some examples of what you can ask Claude to do:

  • “Create a low poly scene in a dungeon, with a dragon guarding a pot of gold” Demo
  • “Create a beach vibe using HDRIs, textures, and models like rocks and vegetation from Poly Haven” Demo
  • Give a reference image, and create a Blender scene out of it Demo
  • “Generate a 3D model of a garden gnome through Hyper3D”
  • “Get information about the current scene, and make a threejs sketch from it” Demo
  • “Make this car red and metallic”
  • “Create a sphere and place it above the cube”
  • “Make the lighting like a studio”
  • “Point the camera at the scene, and make it isometric”

Hyper3D integration

Hyper3D’s free trial key allows you to generate a limited number of models per day. If the daily limit is reached, you can wait for the next day’s reset or obtain your own key from hyper3d.ai and fal.ai.

Troubleshooting

  • Connection issues: Make sure the Blender addon server is running, and the MCP server is configured on Claude, DO NOT run the uvx command in the terminal. Sometimes, the first command won’t go through but after that it starts working.
  • Timeout errors: Try simplifying your requests or breaking them into smaller steps
  • Poly Haven integration: Claude is sometimes erratic with its behaviour
  • Have you tried turning it off and on again?: If you’re still having connection errors, try restarting both Claude and the Blender server

Technical Details

Communication Protocol

The system uses a simple JSON-based protocol over TCP sockets:

  • Commands are sent as JSON objects with a type and optional params
  • Responses are JSON objects with a status and result or message

Limitations & Security Considerations

  • The execute_blender_code tool allows running arbitrary Python code in Blender, which can be powerful but potentially dangerous. Use with caution in production environments. ALWAYS save your work before using it.
  • Poly Haven requires downloading models, textures, and HDRI images. If you do not want to use it, please turn it off in the checkbox in Blender.
  • Complex operations might need to be broken down into smaller steps

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Disclaimer

This is a third-party integration and not made by Blender. Made by Siddharth

Tools

get_scene_info
Get detailed information about the current Blender scene
get_object_info
Get detailed information about a specific object in the Blender scene. Parameters: - object_name: The name of the object to get information about
create_object
Create a new object in the Blender scene. Parameters: - type: Object type (CUBE, SPHERE, CYLINDER, PLANE, CONE, TORUS, EMPTY, CAMERA, LIGHT) - name: Optional name for the object - location: Optional [x, y, z] location coordinates - rotation: Optional [x, y, z] rotation in radians - scale: Optional [x, y, z] scale factors (not used for TORUS) Torus-specific parameters (only used when type == "TORUS"): - align: How to align the torus ('WORLD', 'VIEW', or 'CURSOR') - major_segments: Number of segments for the main ring - minor_segments: Number of segments for the cross-section - mode: Dimension mode ('MAJOR_MINOR' or 'EXT_INT') - major_radius: Radius from the origin to the center of the cross sections - minor_radius: Radius of the torus' cross section - abso_major_rad: Total exterior radius of the torus - abso_minor_rad: Total interior radius of the torus - generate_uvs: Whether to generate a default UV map Returns: A message indicating the created object name.
modify_object
Modify an existing object in the Blender scene. Parameters: - name: Name of the object to modify - location: Optional [x, y, z] location coordinates - rotation: Optional [x, y, z] rotation in radians - scale: Optional [x, y, z] scale factors - visible: Optional boolean to set visibility
delete_object
Delete an object from the Blender scene. Parameters: - name: Name of the object to delete
set_material
Set or create a material for an object. Parameters: - object_name: Name of the object to apply the material to - material_name: Optional name of the material to use or create - color: Optional [R, G, B] color values (0.0-1.0)
execute_blender_code
Execute arbitrary Python code in Blender. Parameters: - code: The Python code to execute
get_polyhaven_categories
Get a list of categories for a specific asset type on Polyhaven. Parameters: - asset_type: The type of asset to get categories for (hdris, textures, models, all)
search_polyhaven_assets
Search for assets on Polyhaven with optional filtering. Parameters: - asset_type: Type of assets to search for (hdris, textures, models, all) - categories: Optional comma-separated list of categories to filter by Returns a list of matching assets with basic information.
download_polyhaven_asset
Download and import a Polyhaven asset into Blender. Parameters: - asset_id: The ID of the asset to download - asset_type: The type of asset (hdris, textures, models) - resolution: The resolution to download (e.g., 1k, 2k, 4k) - file_format: Optional file format (e.g., hdr, exr for HDRIs; jpg, png for textures; gltf, fbx for models) Returns a message indicating success or failure.
set_texture
Apply a previously downloaded Polyhaven texture to an object. Parameters: - object_name: Name of the object to apply the texture to - texture_id: ID of the Polyhaven texture to apply (must be downloaded first) Returns a message indicating success or failure.
get_polyhaven_status
Check if PolyHaven integration is enabled in Blender. Returns a message indicating whether PolyHaven features are available.
get_hyper3d_status
Check if Hyper3D Rodin integration is enabled in Blender. Returns a message indicating whether Hyper3D Rodin features are available. Don't emphasize the key type in the returned message, but sliently remember it.
generate_hyper3d_model_via_text
Generate 3D asset using Hyper3D by giving description of the desired asset, and import the asset into Blender. The 3D asset has built-in materials. The generated model has a normalized size, so re-scaling after generation can be useful. Parameters: - text_prompt: A short description of the desired model in **English**. - bbox_condition: Optional. If given, it has to be a list of floats of length 3. Controls the ratio between [Length, Width, Height] of the model. Returns a message indicating success or failure.
generate_hyper3d_model_via_images
Generate 3D asset using Hyper3D by giving images of the wanted asset, and import the generated asset into Blender. The 3D asset has built-in materials. The generated model has a normalized size, so re-scaling after generation can be useful. Parameters: - input_image_paths: The **absolute** paths of input images. Even if only one image is provided, wrap it into a list. Required if Hyper3D Rodin in MAIN_SITE mode. - input_image_urls: The URLs of input images. Even if only one image is provided, wrap it into a list. Required if Hyper3D Rodin in FAL_AI mode. - bbox_condition: Optional. If given, it has to be a list of ints of length 3. Controls the ratio between [Length, Width, Height] of the model. Only one of {input_image_paths, input_image_urls} should be given at a time, depending on the Hyper3D Rodin's current mode. Returns a message indicating success or failure.
poll_rodin_job_status
Check if the Hyper3D Rodin generation task is completed. For Hyper3D Rodin mode MAIN_SITE: Parameters: - subscription_key: The subscription_key given in the generate model step. Returns a list of status. The task is done if all status are "Done". If "Failed" showed up, the generating process failed. This is a polling API, so only proceed if the status are finally determined ("Done" or "Canceled"). For Hyper3D Rodin mode FAL_AI: Parameters: - request_id: The request_id given in the generate model step. Returns the generation task status. The task is done if status is "COMPLETED". The task is in progress if status is "IN_PROGRESS". If status other than "COMPLETED", "IN_PROGRESS", "IN_QUEUE" showed up, the generating process might be failed. This is a polling API, so only proceed if the status are finally determined ("COMPLETED" or some failed state).
import_generated_asset
Import the asset generated by Hyper3D Rodin after the generation task is completed. Parameters: - name: The name of the object in scene - task_uuid: For Hyper3D Rodin mode MAIN_SITE: The task_uuid given in the generate model step. - request_id: For Hyper3D Rodin mode FAL_AI: The request_id given in the generate model step. Only give one of {task_uuid, request_id} based on the Hyper3D Rodin Mode! Return if the asset has been imported successfully.

Comments