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.

Blender Python MCP Status


๐Ÿ“– Table of Contents


๐ŸŒŸ 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

CategoryCapabilities
๐ŸงŠ 3D Object ManagementCreate, modify, delete, and inspect objects (Cube, Sphere, Cylinder, Plane, Cone, Torus, and more)
๐ŸŽจ Materials & TexturesApply and edit materials, set colors (RGBA), adjust metallic/roughness/specular properties
๐Ÿ“ธ RenderingRender scenes with custom resolution, output path, and format settings
๐ŸŒ„ PolyHaven IntegrationBrowse and download high-quality HDRIs, textures, and 3D models from PolyHaven
๐Ÿค– AI 3D GenerationGenerate 3D models from text prompts using Hyper3D Rodin AI (supports both main site and fal.ai backends)
๐Ÿ’ป Code ExecutionExecute arbitrary Python code inside Blender for advanced automation
๐Ÿ” Scene InspectionGet detailed scene info โ€” object names, types, locations, rotations, scales, bounding boxes, and more

๐Ÿ“‹ Prerequisites

Before you begin, make sure you have the following installed:


๐Ÿš€ Installation

1. ๐Ÿงฉ Installing the Blender Addon

  1. Download the addon.py file from this repository.
  2. Open Blender.
  3. Go to Edit โ†’ Preferences โ†’ Add-ons.
  4. Click "Install..." and select the downloaded addon.py file.
  5. Enable the addon by checking the box next to "Interface: Blender MCP".
  6. You should now see a BlenderMCP panel in the 3D Viewport sidebar (N key 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

  1. Start the server โ€” Open Blender, go to the BlenderMCP panel in the sidebar, and click Start Server. The server listens on localhost:9876 by default.
  2. Connect from Claude โ€” Use Cursor, Claude Desktop, or any MCP-compatible client connected to the blender-mcp server.
  3. 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

IssueSolution
Server won't startMake sure no other process is using port 9876. Check the Blender console for error messages.
Connection refusedEnsure the Blender addon is enabled and the server is running (green status in the panel).
uvx not foundInstall the uv package manager: pip install uv or see the uv docs.
Addon not visiblePress N in the 3D Viewport to open the sidebar, then look for the BlenderMCP tab.
PolyHaven assets failCheck your internet connection. PolyHaven API requires network access.
Hyper3D generation failsVerify 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:

  1. Fork this repository.
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m "Add my feature"
  4. Push to the branch: git push origin feature/my-feature
  5. 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!