dcc-mcp-blender-setup
Skill71 starsChanged 2 months agoMITView on GitHub
Set up dcc-mcp-blender for an agent or operator: install Blender Python dependencies with Blender's bundled interpreter, install a startup bridge, generate MCP host configuration, and run a first live-tool smoke prompt.
- Installs packages
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- dcc-blender-assembly-pitfallsSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use this skill when a user wants an agent to prepare a machine so any MCP host can use dcc-mcp-blender with Blender.
- Very specific: line 31
If the user says "帮我参考 dcc-mcp/dcc-mcp-blender/install.md 去安装", read the root install.md first, then follow this skill.
- Distinctive: line 46
Use the installed adapter lifecycle as the canonical agent path.
- Distinctive: line 106
Use PyPI instead of the local checkout with that legacy path:
- Distinctive: line 112
If discovery fails, ask the user for the full Blender Python path and re-run:
- Very specific: line 118
If Blender's bundled site-packages is read-only, select the user-site fallback:
- Very specific: line 130
Do not omit --python-use-system-env: Blender otherwise ignores packages installed by pip with --user.
- Very specific: line 155
When editing an existing MCP config, preserve unrelated servers.
- Distinctive: line 188
After pip setup and MCP JSON generation, tell the user:
- Very specific: line 192
Use dcc-mcp-cli list to confirm the Blender instance and exact URL.
- Distinctive: line 211
Ask the MCP host to run this prompt after Blender is open and registered:
- Very specific: line 239
No server after launch: verify the startup script under the per-user scripts/startup directory, check Blender's system console, and verify …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
dcc-mcp-blender setup
Use this skill when a user wants an agent to prepare a machine so any MCP
host can use dcc-mcp-blender with Blender.
This is an operator skill, not a Blender runtime skill. Do not load it through the Blender MCP server. Run it from the repository checkout or copy its steps into another agent's instructions.
If the user says "帮我参考 dcc-mcp/dcc-mcp-blender/install.md 去安装", read the
root install.md first, then follow this skill.
Goal
End with:
dcc-mcp-blenderand its pip dependencies installed into the target Blender bundled-Python environment.- An MCP host config snippet that points to the Blender MCP server.
- A Blender 5.x-compatible startup bridge that starts the embedded server.
- A live smoke prompt that proves the agent can discover and call Blender tools.
Fast Path
Use the installed adapter lifecycle as the canonical agent path. First resolve the exact Blender executable/application and its target Python interpreter, then inspect the non-mutating plan:
dcc-mcp-blender install --json --dry-run --dcc-path <absolute-blender-path> --python <absolute-python-path>Review the resolved host, version, profile, interpreter, file steps, and
machine-executable next_steps. If they are correct, execute the same plan and
verify typed readiness:
dcc-mcp-blender install --json --yes --dcc-path <absolute-blender-path> --python <absolute-python-path>
dcc-mcp-blender verify --json --dcc-path <absolute-blender-path> --python <absolute-python-path>Exit 40 after install means the staged, receipted host integration was
written but host.ping could not yet prove a live Blender instance. Follow the
returned next_steps; do not report the adapter as directly usable yet.
The lifecycle command:
- Probes Blender 4.5+ and the exact target Python before writing.
- Resolves the per-user Blender scripts profile without changing the host installation directory.
- Stages and atomically replaces the owned startup script with rollback.
- Writes an ownership receipt used by
status,verify,upgrade, and receipt-onlyuninstall. - Captures bootstrap failures and verifies a live instance with typed
host.pingrather than a process or port-only check.
See the repository root install.md for all platforms, stable exit codes, and
repair/troubleshooting flows.
Legacy compatibility path
The checkout-local script remains available for operators that still need the pre-SOP pip/setup flow:
python skills/dcc-mcp-blender-setup/scripts/setup_dcc_mcp_blender.pyThis compatibility script:
- Finds Blender's bundled Python from
--blender-python/--python,BLENDER_PYTHON,DCC_MCP_BLENDER_PYTHON, ablenderlauncher onPATH, or common install locations on Windows/macOS/Linux (<blender>/<major.minor>/python/bin/python(.exe)). - Installs this checkout into Blender's Python:
python -m pip install -e ..dcc-mcp-blenderships no optional extras, so the package is installed plainly anddcc-mcp-coreis resolved transitively. - Verifies
import dcc_mcp_blender. - Writes a Blender 5.x-compatible
dcc_mcp_blender_startup.pywithregister()/unregister()hooks into the per-userscripts/startupdirectory. - Writes a reusable MCP JSON snippet and smoke prompt under
.dcc-mcp/agent-setup/.
Use PyPI instead of the local checkout with that legacy path:
python skills/dcc-mcp-blender-setup/scripts/setup_dcc_mcp_blender.py --source pypiIf discovery fails, ask the user for the full Blender Python path and re-run:
python skills/dcc-mcp-blender-setup/scripts/setup_dcc_mcp_blender.py --blender-python "C:\Program Files\Blender Foundation\Blender 4.5\4.5\python\bin\python.exe"If Blender's bundled site-packages is read-only, select the user-site fallback:
python skills/dcc-mcp-blender-setup/scripts/setup_dcc_mcp_blender.py --source pypi --userThen launch Blender with the required matching flag:
blender --python-use-system-envDo not omit --python-use-system-env: Blender otherwise ignores packages
installed by pip with --user.
Blender 4.5+ Extension ZIP installs (Option 1 in
README.md) are an alternative path. They bundledcc-mcp-corein an isolated environment and must not be combined with this pip/startup-script setup.
MCP Configuration
Blender instances use OS-assigned ports. Configure the MCP host with the stable local gateway:
{
"mcpServers": {
"blender": {
"url": "http://127.0.0.1:9765/mcp"
}
}
}Multiple Blender instances register their exact endpoints automatically; use
dcc-mcp-cli list when a direct URL is required.
When editing an existing MCP config, preserve unrelated servers. Merge only the
blender server entry unless the user asks for a different server name.
The setup script enforces this when --mcp-config <path> is given (JSON
mcpServers or Codex TOML mcp_servers):
- It keeps every existing server and field, allocates a free name when the requested name is taken by an unrelated product, and is idempotent.
- Root inline
mcp_serverskeys are resolved through the same key-path parser used by the scanner, so bare, single-quoted, double-quoted and escaped-quoted spellings all merge in place instead of producing a duplicate declaration. - Product identity is scoped to a single server and uses the parsed, exact
urlvalue or an explicitdcc-mcp-blender/dcc_mcp_blendermarker. A sibling's URL or marker never leaks into another server, and a URL such as.../mcp-otheris not mistaken for.../mcp. - An existing product entry is a no-op: its name and every field (including
its own
url,command,args,env, timeouts and custom keys) survive verbatim in both JSON and TOML. A changed--mcp-urlnever rewrites it. - On Python 3.11+ (or with the
tomlibackport) a real TOML parser is authoritative and validates both input and merged output. On stock Python 3.7 the fallback scanner is root-scoped and refuses multiline strings, nestedmcp_serverstables and other ambiguous input rather than guessing. TOML files must use a.tomlsuffix; invalid input is refused, never saved. - Written strings are TOML-escaped (Unicode kept literal, control characters and DEL escaped), and writes are guarded against changes since planning, preserve file mode and follow symlinks, and stage privately before an atomic replace. Errors propagate and never report false success.
--dry-runprints the selected name without writing.--mcp-configmay not point at the generatedmcp-streamable-http.jsonsnippet (that path is refused). No real config is touched unless--mcp-configis explicit.
User Hand-Off: Start Blender
After pip setup and MCP JSON generation, tell the user:
- Open Blender with the launch command printed by the setup script.
- The installed
dcc_mcp_blender_startup.pystarts the server automatically. - Use
dcc-mcp-cli listto confirm the Blender instance and exact URL.
The stable gateway URL is http://127.0.0.1:9765/mcp.
For a manual troubleshooting start from Blender's Python console:
import dcc_mcp_blender
dcc_mcp_blender.start_server()Or run headless:
blender --background --python src/dcc_mcp_blender/blender_bootstrap.pyFirst Live Smoke Prompt
Ask the MCP host to run this prompt after Blender is open and registered:
Use the Blender MCP server. First call dcc_capability_manifest with loaded_only=false.
Then load the blender-geometry skill, create a sphere named mcp_setup_smoke_sphere
with radius 2, list scene objects, and tell me the MCP URL and created object name.
Use typed tools where available and avoid execute_python unless no typed tool fits.Expected behavior:
- The agent discovers capabilities without dumping every schema.
- The agent loads
blender-geometry. - The agent calls
blender_geometry__create_sphere. - The new object appears in the Blender scene.
blender_scene__list_objectsor another scene query confirms it exists.
Troubleshooting
- Blender Python not found: ask for the exact Blender version and the
<blender>/<major.minor>/python/bin/python(.exe)path, then pass--blender-python. - Pip bootstrap fails: run
<blender_python> -m ensurepip --upgrade, then repeat the install. - MCP connection refused: Blender is not running, the add-on is not enabled, or the embedded server has not started yet.
- Tool missing: call
dcc_capability_manifestorsearch_skills, thenload_skill("<skill-name>"). - No server after launch: verify the startup script under the per-user
scripts/startupdirectory, check Blender's system console, and verify firewall/localhost rules.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

