This MCP server allows for bidirectional communication between Blender and AI assistants like Cursor AI through the Model Context Protocol. It enables AI to programmatically control Blender, creating and manipulating 3D objects through a socket connection.
1. Download or clone the repository
2. Double-click install.bat
3. Follow the installer prompts
1. Download or clone the repository
2. Open Terminal and navigate to the repository folder
3. Make the install script executable: chmod +x install.sh
4. Run the installer: ./install.sh
5. Follow the installer prompts
If the automatic installer doesn't work:
Copy addon.py
to your Blender addons directory:
C:\Program Files\Blender Foundation\Blender\[version]\scripts\addons\
/Applications/Blender.app/Contents/Resources/scripts/addons/
or ~/Library/Application Support/Blender/[version]/scripts/addons/
/usr/share/blender/scripts/addons/
or ~/.config/blender/scripts/addons/
Rename the file to blendermcp.py
Enable the addon in Blender:
Capture the current viewport as an image with the get_viewport_image
command:
{
"type": "get_viewport_image",
"params": {
"width": 512,
"height": 512,
"format": "JPEG"
}
}
Get detailed performance and scene statistics from Blender:
{
"type": "get_scene_metrics",
"params": {}
}
This returns information about polygon count, objects, memory usage, and more.
Stream continuous viewport updates in real-time:
{
"type": "start_live_preview",
"params": {
"port": 9877,
"fps": 10
}
}
This starts a separate server for receiving continuous viewport updates.
The installer automatically tests the connection by creating a sphere above the default cube. If you see a sphere appear, the installation was successful!
You can also run the included test scripts:
test_blendermcp.py
- Basic connection testtest_viewport.py
- Test advanced viewport and metrics featuresTo configure Cursor:
uvx blender-mcp
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "cube" '{"command":"uvx","args":["blender-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cube": {
"command": "uvx",
"args": [
"blender-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"cube": {
"command": "uvx",
"args": [
"blender-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect