跳到正文
DEV Community· Deduped·· 2 小時前AI 評分61

Claude Code 如何透過 MCP for Blender 按文字提示建立 Blender 場景

Build a Blender scene from a text prompt with Claude Code

AI 導讀

MCP for Blender 可讓 Claude Code、Codex 等支援 MCP 的 AI 應用直接操作 Blender,按文字提示建立物件、套用材質並以渲染檢查場景。

正文

Deduped

Blocking out a scene in Blender by hand means hours of menus and modifiers. MCP for Blender lets Claude Code, Codex or another AI app drive Blender directly: it creates objects, places them, applies materials and checks its own work with renders. The short version is on the Deduped use-case page. Below is the route with the commands from the README.

What you need

Blender installed, an AI app that supports MCP, and macOS or Linux for the one-line installer. This walkthrough comes from the README, not a test run, so check the repo for newer instructions.

One-command setup

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

If you already have uv, this does the same thing:

uvx mcp-for-blender setup

The setup asks which MCP clients to configure. It adds a blender entry to each and saves a .bak copy of every config it touches, so you can roll back.

Manual route for Claude Code or Codex

If the automatic setup misses your client, add the server yourself:

claude mcp add blender uvx mcp-for-blender
codex mcp add blender -- uvx mcp-for-blender
uvx mcp-for-blender install-addon

The last command installs and enables the Blender addon.

Start the connection

Fully quit and reopen your AI app, then open Blender. The addon starts its server, and the AI app can now see it.

Ask for a scene

Be concrete. A prompt shape that works:

Using ahujasid/mcp-for-blender, build a low-poly campsite at dusk in the open Blender file: create the objects, apply materials, set up a camera and light, then show me renders from two angles and list what you created.

Make it check itself

Ask for multi-angle views or a render after each pass. Models misplace things in 3D often, and a render makes the mistake obvious. Then iterate in plain language: "move the tent left of the fire", "make the sky warmer".

Safety note

The server can run Python inside Blender, so save your file first, and use safe mode if you want to limit what it runs. Do not point it at a project you cannot restore.

For another creative workflow with an agent, see the HyperFrames product video walkthrough.

Want the setup commands for 50 AI repos people actually ship with? Get the free AI Repos That Actually Ship pack: https://dedupedai.com/ship-pack/?utm_source=devto&utm_medium=article&utm_campaign=shippack

來源:DEV Community · dev.to