### Install uv on Linux Source: https://mcp-for-blender.com/quickstart Install the uv package manager using the official installer script. Do not install uv via pip; use the official installer. ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` -------------------------------- ### Install uv on Windows Source: https://mcp-for-blender.com/quickstart Install the uv package manager using the official PowerShell installer. Do not install uv via pip; use the official installer. ```powershell powershell -c "irm https://astral.sh/uv/install.ps1 | iex" ``` -------------------------------- ### Install the Blender addon Source: https://mcp-for-blender.com/quickstart Run the install command to install the MCP for Blender addon. After installation, enable it in Blender under Edit → Preferences → Add-ons. ```bash uvx mcp-for-blender install-addon ``` -------------------------------- ### Install server with pipx Source: https://mcp-for-blender.com/installation Install the MCP server using pipx instead of uv. This is the first step in the pipx installation workflow. ```bash pipx install mcp-for-blender ``` -------------------------------- ### Install uv on macOS Source: https://mcp-for-blender.com/quickstart Install the uv package manager using Homebrew. Do not install uv via pip; use the official installer. ```bash brew install uv ``` -------------------------------- ### Install uv on Windows (PowerShell) Source: https://mcp-for-blender.com/installation Use the official PowerShell installer to install uv on Windows. This is the recommended package manager for MCP for Blender. ```powershell powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ``` -------------------------------- ### Claude Desktop Configuration Example Source: https://mcp-for-blender.com/reference/configuration A complete JSON configuration for the Claude Desktop client, demonstrating how to define the MCP server command and provide environment variables for connectivity and API integration. ```json { "mcpServers": { "blender": { "command": "uvx", "args": ["mcp-for-blender"], "env": { "BLENDER_HOST": "localhost", "BLENDER_PORT": "9876", "DISABLE_TELEMETRY": "true", "BLENDERMCP_SKETCHFAB_API_KEY": "your-sketchfab-key", "BLENDERMCP_POLYPIZZA_API_KEY": "your-polypizza-key", "BLENDERMCP_HYPER3D_API_KEY": "your-hyper3d-key", "BLENDERMCP_HUNYUAN3D_SECRET_ID": "your-hunyuan-id", "BLENDERMCP_HUNYUAN3D_SECRET_KEY": "your-hunyuan-key", "BLENDERMCP_HUNYUAN3D_API_URL": "https://your-local-api.example.com" } } } } ``` -------------------------------- ### Codex MCP Configuration Source: https://mcp-for-blender.com/mcp-clients Register the server via CLI, manual TOML configuration, or environment variable setup. ```bash codex mcp add blender -- uvx blender-mcp ``` ```toml [mcp_servers.blender] command = "uvx" args = ["blender-mcp"] ``` ```toml [mcp_servers.blender] command = "uvx" args = ["blender-mcp"] env = { BLENDER_HOST = "localhost", BLENDER_PORT = "9876" } ``` -------------------------------- ### Combined asset generation and environment prompt Source: https://mcp-for-blender.com/use-cases/asset-creation Generate a custom asset and integrate it with library resources in one prompt. This example uses Hyper3D for the asset and Poly Haven for the floor and lighting. ```text Generate a stylised treasure chest using Hyper3D, then place it on a wooden floor with warm studio lighting ``` -------------------------------- ### Ensure pipx is on PATH Source: https://mcp-for-blender.com/installation Run this command to add pipx's binary directory to your PATH. This is the second step in the pipx installation workflow. ```bash pipx ensurepath ``` -------------------------------- ### Set Hunyuan3D Official API credentials via environment variables Source: https://mcp-for-blender.com/integrations/hunyuan3d Configure the Tencent Cloud SecretId and SecretKey for Official API mode before starting Blender. ```bash export BLENDERMCP_HUNYUAN3D_SECRET_ID="your-secret-id" export BLENDERMCP_HUNYUAN3D_SECRET_KEY="your-secret-key" ``` -------------------------------- ### MCP client config with environment variables Source: https://mcp-for-blender.com/installation Example JSON configuration for an MCP client that sets BLENDER_HOST and BLENDER_PORT environment variables. The server and addon must agree on the same host and port. ```json { "command": "uvx", "args": ["mcp-for-blender"], "env": { "BLENDER_HOST": "127.0.0.1", "BLENDER_PORT": "9876" } } ``` -------------------------------- ### Set Hunyuan3D Local API URL via environment variable Source: https://mcp-for-blender.com/integrations/hunyuan3d Configure the self-hosted Hunyuan3D API endpoint for Local API mode before starting Blender. ```bash export BLENDERMCP_HUNYUAN3D_API_URL="http://localhost:8080" ``` -------------------------------- ### Override addon install directory Source: https://mcp-for-blender.com/installation Set the BLENDERMCP_ADDONS_DIR environment variable before running the install command to override the addon install location. ```bash BLENDERMCP_ADDONS_DIR=/path/to/scripts/addons uvx mcp-for-blender install-addon ``` -------------------------------- ### Clear uv cache and refresh Source: https://mcp-for-blender.com/installation Run this command if the server fails to start after pinning Python. It clears the uv cache for mcp-for-blender and forces a refresh with uvx. ```bash uv cache clean mcp-for-blender && uvx --refresh mcp-for-blender ``` -------------------------------- ### Find pipx binary path Source: https://mcp-for-blender.com/installation Run this command to get the full path to the mcp-for-blender executable. Use this path as the "command" in your MCP client config with no "args". ```bash which mcp-for-blender ``` -------------------------------- ### Image-to-3D prompt with attached image Source: https://mcp-for-blender.com/use-cases/asset-creation Use this prompt to generate a 3D asset from an attached image file. The AI interprets the image and produces a textured model matching the visual style. ```text Generate a stylised potion bottle from the attached image ``` -------------------------------- ### Configure Antigravity MCP Server Source: https://mcp-for-blender.com/mcp-clients Supports environment variables alongside the command configuration. Restart Antigravity after updating. ```json { "mcpServers": { "blender": { "command": "uvx", "args": ["blender-mcp"], "env": { "BLENDER_HOST": "localhost", "BLENDER_PORT": "9876" } } } } ``` -------------------------------- ### Windows alternative: wrap uvx through cmd Source: https://mcp-for-blender.com/installation If the full path approach does not work on Windows, wrap the call through `cmd` in the MCP client configuration. Set the command to `cmd` with arguments `/c`, `uvx`, and `mcp-for-blender`. ```json { "command": "cmd", "args": ["/c", "uvx", "mcp-for-blender"] } ``` -------------------------------- ### Show detected addon paths Source: https://mcp-for-blender.com/installation Run this command to see which addon directories MCP for Blender detected on your system. ```bash uvx mcp-for-blender addon-paths ``` -------------------------------- ### Configure OpenCode MCP Server Source: https://mcp-for-blender.com/mcp-clients Uses a local server type with a command array. Save the config and restart OpenCode to apply changes. ```json { "mcpServers": { "blender": { "type": "local", "command": ["uvx", "blender-mcp"] } } } ``` -------------------------------- ### Find full path to uvx on macOS/Linux Source: https://mcp-for-blender.com/installation Run `which uvx` to find the full path to uvx. This is needed because GUI clients do not inherit the terminal PATH. ```bash which uvx ``` -------------------------------- ### Find full path to uvx on Windows Source: https://mcp-for-blender.com/installation Run `where uvx` to find the full path to uvx on Windows. This is needed because GUI clients do not inherit the terminal PATH. ```powershell where uvx ``` -------------------------------- ### Image-to-3D prompt with reference URL Source: https://mcp-for-blender.com/use-cases/asset-creation Provide a remote URL to generate a 3D asset from a reference image. Claude sends the URL to Hyper3D or Hunyuan3D for generation. ```text Create a futuristic helmet from this reference image: https://example.com/helmet.jpg ``` -------------------------------- ### Add MCP server to Claude Desktop Source: https://mcp-for-blender.com/quickstart Add the MCP for Blender server to Claude Desktop's MCP configuration. The server runs via uvx with the mcp-for-blender package. ```json { "mcpServers": { "blender": { "command": "uvx", "args": ["mcp-for-blender"] } } } ``` -------------------------------- ### Configure VS Code MCP Server Source: https://mcp-for-blender.com/mcp-clients Defines the blender server using stdio transport. Restart VS Code after saving the configuration. ```json { "servers": { "blender": { "type": "stdio", "command": "uvx", "args": ["blender-mcp"] } } } ``` -------------------------------- ### Text-to-3D prompt for garden gnome Source: https://mcp-for-blender.com/use-cases/asset-creation Use this prompt to generate a 3D model of a garden gnome via Hyper3D. Claude sends the prompt to the Rodin API and imports the textured mesh into the active Blender scene. ```text Generate a 3D model of a garden gnome ``` -------------------------------- ### JSON Command Structure Source: https://mcp-for-blender.com/concepts/how-it-works The format for sending commands to the Blender addon, consisting of a type and parameters. ```json { "type": "get_scene_info", "params": {} } ``` -------------------------------- ### Add MCP server to Codex Source: https://mcp-for-blender.com/quickstart Register the MCP for Blender server with Codex using the CLI command. ```bash codex mcp add blender -- uvx mcp-for-blender ``` -------------------------------- ### Cursor MCP Configuration Source: https://mcp-for-blender.com/mcp-clients Configure MCP settings in Cursor for macOS or Windows environments. ```json { "command": "uvx", "args": ["blender-mcp"] } ``` ```json { "command": "cmd", "args": ["/c", "uvx", "blender-mcp"] } ``` -------------------------------- ### Add MCP server to Claude Code Source: https://mcp-for-blender.com/quickstart Register the MCP for Blender server with Claude Code using the CLI command. ```bash claude mcp add blender uvx mcp-for-blender ``` -------------------------------- ### Pin Python 3.11 in MCP config Source: https://mcp-for-blender.com/installation Use this JSON configuration in your MCP client to force uv to use Python 3.11. The env variable UV_PYTHON_PREFERENCE=only-managed ensures uv only uses its managed Python versions. ```json { "command": "uvx", "args": ["--python", "3.11", "mcp-for-blender"], "env": { "UV_PYTHON_PREFERENCE": "only-managed" } } ``` -------------------------------- ### Claude Code MCP Registration Source: https://mcp-for-blender.com/mcp-clients Register the server automatically using the Claude CLI command. ```bash claude mcp add blender uvx blender-mcp ``` -------------------------------- ### Enable Safe Mode via Environment Variable Source: https://mcp-for-blender.com/reference/configuration Set the BLENDER_MCP_SAFE_MODE environment variable to 1 to enable script validation and block risky operations. ```bash export BLENDER_MCP_SAFE_MODE=1 ``` -------------------------------- ### JSON Response Structure Source: https://mcp-for-blender.com/concepts/how-it-works The format for responses returned by the Blender addon, containing a status and either a result or a message. ```json { "status": "success", "result": { ... } } ``` -------------------------------- ### Disable telemetry via DISABLE_TELEMETRY environment variable in MCP client config Source: https://mcp-for-blender.com/reference/telemetry Add DISABLE_TELEMETRY=true to the environment variables of your MCP client configuration to opt out of telemetry collection. This JSON config sets the environment variable for the blender server launched via uvx. ```json { "mcpServers": { "blender": { "command": "uvx", "args": ["mcp-for-blender"], "env": { "DISABLE_TELEMETRY": "true" } } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.