ITM-Hackathon
March 11, 2026 ยท View on GitHub
๐จ BlenderMCP โ Blender Model Context Protocol Integration
Connect Blender to Claude AI through the Model Context Protocol (MCP) and unlock prompt-assisted 3D modeling, scene creation, and manipulation โ all from natural language.
๐ Table of Contents
- Overview
- Features
- Prerequisites
- Installation
- Usage
- Architecture
- Troubleshooting
- Contributing
- Credits
๐ Overview
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 โ simply describe what you want, and watch it come to life in Blender.
โจ Features
| Category | Capabilities |
|---|---|
| ๐ง 3D Object Management | Create, modify, delete, and inspect objects (Cube, Sphere, Cylinder, Plane, Cone, Torus, and more) |
| ๐จ Materials & Textures | Apply and edit materials, set colors (RGBA), adjust metallic/roughness/specular properties |
| ๐ธ Rendering | Render scenes with custom resolution, output path, and format settings |
| ๐ PolyHaven Integration | Browse and download high-quality HDRIs, textures, and 3D models from PolyHaven |
| ๐ค AI 3D Generation | Generate 3D models from text prompts using Hyper3D Rodin AI (supports both main site and fal.ai backends) |
| ๐ป Code Execution | Execute arbitrary Python code inside Blender for advanced automation |
| ๐ Scene Inspection | Get detailed scene info โ object names, types, locations, rotations, scales, bounding boxes, and more |
๐ Prerequisites
Before you begin, make sure you have the following installed:
- Blender 3.0 or newer โ Download Blender
- Python 3.10 or newer โ Download Python
- uv package manager โ Install uv
๐ Installation
1. ๐งฉ Installing the Blender Addon
- Download the
addon.pyfile from this repository. - Open Blender.
- Go to Edit โ Preferences โ Add-ons.
- Click "Install..." and select the downloaded
addon.pyfile. - Enable the addon by checking the box next to "Interface: Blender MCP".
- You should now see a BlenderMCP panel in the 3D Viewport sidebar (
Nkey to toggle).
2. ๐ฑ๏ธ Cursor Integration
Run blender-mcp without installing it permanently through uvx:
-
Go to Cursor Settings โ MCP and paste this as a command:
uvx blender-mcp -
For Windows users, add a new server in Settings โ MCP with the following configuration:
{ "mcpServers": { "blender": { "command": "cmd", "args": [ "/c", "uvx", "blender-mcp" ] } } }
3. ๐ฅ๏ธ Claude Desktop Integration
To use BlenderMCP with the Claude Desktop app, add the following to your Claude Desktop MCP configuration:
{
"mcpServers": {
"blender": {
"command": "uvx",
"args": ["blender-mcp"]
}
}
}
๐ ๏ธ Usage
- Start the server โ Open Blender, go to the BlenderMCP panel in the sidebar, and click Start Server. The server listens on
localhost:9876by default. - Connect from Claude โ Use Cursor, Claude Desktop, or any MCP-compatible client connected to the
blender-mcpserver. - Give natural-language commands โ Examples:
- "Create a red sphere at position (2, 0, 1)"
- "Add a metallic gold material to the cube"
- "Render the scene at 1920ร1080"
- "Download an HDRI from PolyHaven and set it as the world background"
- "Generate a 3D model of a medieval sword using Hyper3D"
๐๏ธ Architecture
โโโโโโโโโโโโโโโโ MCP โโโโโโโโโโโโโโโโโโโโ
โ Claude AI โโโโโโโโโโโโโโโโโโโโโบโ blender-mcp โ
โ (LLM) โ (stdio / SSE) โ (MCP Server) โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโโ
โ TCP :9876
โผ
โโโโโโโโโโโโโโโโโโโโ
โ Blender Addon โ
โ (addon.py) โ
โ Socket Server โ
โโโโโโโโโโโโโโโโโโโโ
- Claude AI sends high-level commands via MCP.
- blender-mcp (the MCP server) translates them into JSON commands.
- addon.py (running inside Blender) receives commands over a local TCP socket and executes them in Blender's Python environment.
โ Troubleshooting
| Issue | Solution |
|---|---|
| Server won't start | Make sure no other process is using port 9876. Check the Blender console for error messages. |
| Connection refused | Ensure the Blender addon is enabled and the server is running (green status in the panel). |
uvx not found | Install the uv package manager: pip install uv or see the uv docs. |
| Addon not visible | Press N in the 3D Viewport to open the sidebar, then look for the BlenderMCP tab. |
| PolyHaven assets fail | Check your internet connection. PolyHaven API requires network access. |
| Hyper3D generation fails | Verify your API key is set correctly in the addon preferences. A free trial key is included by default. |
๐ค Contributing
Contributions are welcome! If you'd like to improve BlenderMCP:
- Fork this repository.
- Create a feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m "Add my feature" - Push to the branch:
git push origin feature/my-feature - Open a Pull Request and describe your changes.
๐ฅ Credits
Made with โค๏ธ by Team Aditya & Shubham
Built for the ITM Hackathon
If you find this project useful, give it a โญ on GitHub!