Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
SkillCẩn thậnẢnh, video & âm thanhDễ cho người mới

mcp-for-blender

ahujasid · ahujasid/mcp-for-blender

Kết nối phần mềm mô hình 3D Blender với bất kỳ LLM nào, cho phép AI tạo và thao tác cảnh 3D thông qua ngôn ngữ tự nhiên.

Community plugin to control Blender 3D with any LLM of your choice. Not affiliated with the official Blender Foundation.

31k sao2.8kGiấy phép: MITCập nhật 12 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Tạo mô tả cảnh 3D từ một lời nhắc văn bản.
  • Điều chỉnh các đối tượng trong cảnh Blender bằng các lệnh ngôn ngữ tự nhiên.
  • Tự động hóa các tác vụ mô hình 3D lặp đi lặp lại với sự hỗ trợ của AI.

Thử hỏi agent của bạn

  • “Tạo một mô hình xe hơi cổ điển trong Blender, sau đó đặt nó vào một cảnh đường sa mạc.”
  • “Điều chỉnh ánh sáng trong cảnh Blender hiện tại để mô phỏng hiệu ứng hoàng hôn.”
  • “Tạo một căn phòng nội thất với một cái bàn, hai cái ghế và một cửa sổ nhìn ra khu rừng.”

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Trình cài đặt tải script từ xa và chạy thẳng bằng shell.install.sh

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

MCP for Blender

Connect Blender to any LLM

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more

Disclaimer: This is a third-party integration and not made by Blender

Prompt-assisted 3D modeling, scene creation, and manipulation — driven by AI.

Supporters

CodeRabbit Guillermo Rauch

All supporters: Support this project


Quickstart

Note: the PyPI package blender-mcp is now mcp-for-blender. Existing setups keep working — uvx blender-mcp still runs the server and no config change is required. New installs should use mcp-for-blender. What changed and why

One command sets up your AI apps and the Blender addon:

macOS / Linux

curl -LsSf https://www.mcp-for-blender.com/install.sh | sh

Windows (PowerShell)

powershell -ExecutionPolicy ByPass -c "irm https://www.mcp-for-blender.com/install.ps1 | iex"

Already have uv? Run uvx mcp-for-blender setup instead.

It installs uv if needed, finds the MCP clients on your machine (Claude Desktop, Claude Code, Codex, Cursor, VS Code, Devin Desktop/Windsurf, OpenCode, Antigravity), and lets you pick which to set up. Then it installs the Blender addon and enables it. Your existing config is kept: it only adds a blender entry and saves a .bak of each file it changes.

Then fully quit and reopen your AI app (on Windows, quit it from the system tray), open Blender, and ask it to build something. The addon starts its server when Blender opens.

Manual setup, in case the automatic setup doesn't work

Three steps: install uv, point your MCP client at the server, install the Blender addon.

1. Install uv

# macOS
brew install uv

# Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

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

Warning: Do not proceed before installing uv. Use the official installer — not pip install uv.

2. Add the MCP server to your client

Claude Desktop — Settings → Developer → Edit Config

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

Claude Code

claude mcp add blender uvx mcp-for-blender

Codex

codex mcp add blender -- uvx mcp-for-blender

Cursor / VS Code / OpenCode / Antigravity

See MCP Client Setup below for per-client instructions and one-click install buttons.

3. Install the Blender addon

uvx mcp-for-blender install-addon

Then in Blender: Edit → Preferences → Add-ons → enable Interface: MCP for Blender.

4. Connect

The addon starts its server when Blender opens. To check, press N in the 3D viewport → open the MCP for Blender tab (click Start MCP Server if it isn't running). That's it — ask Claude to build something.

Note: Only run one instance of the MCP server (either Cursor or Claude Desktop), not both.


Table of Contents


Features

Two-way communicationConnect Claude AI to Blender through a socket-based server
Object manipulationCreate, modify, and delete 3D objects in Blender
Material controlApply and modify materials and colors
Visual verificationMulti-angle, camera, wireframe, X-ray and animation-strip views, plus renders, so the AI checks its own work
Code executionThe AI writes Blender Python directly
Asset & model generationPoly Haven assets, Sketchfab models, Poly Pizza low-poly models, and AI-generated 3D models via Tripo, Hyper3D Rodin and Hunyuan3D

Premium

Generate AI 3D models (Hunyuan3D, Tripo, Hyper3D Rodin) straight into Blender without bringing your own API keys. More details

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

Automatic setup

Xem mã nguồn trên GitHub