dcc-mcp-blender
llms.txt45 starsChanged 2 months agoMITView on GitHub
One-page cheat sheet. dcc-mcp-blender — Embed a standards-compliant MCP Streamable HTTP server directly inside Blender. Version: 0.1.20 <!-- x-release-please-version --> License: MIT Repo: https://github.com/dcc-mcp/dcc-mcp-blender Python: >=3.10 (bundled with Blender) Blender: 4.5+ (CI covers 4.5.13 and 5.2.1) Core dep: dcc-mcp-core>=0.20.0,<0.21.0 Headless bootstrap: Key methods: register_builtin_actions(), start(), stop(), build_capability_manifest(loaded_only=False). Agent workflow (skills-first — default): 1. search_skills / search_tools — find the domain skill. 2. load_skill("blender-animation") — activate tools with inputSchema + annotations. 3. Call the concrete tool (e.g. blender_animation__set_keyframe). Reserve blender_scripting__execute_python for…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dcc-blender-assembly-pitfallsSkill
- dcc-mcp-blender-setupSkill
The file
We split this llms.txt into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 74
Call the concrete tool (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt 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
# llms.txt — dcc-mcp-blender Core Reference for AI Agents
> One-page cheat sheet.
---
## Project
**dcc-mcp-blender** — Embed a standards-compliant MCP Streamable HTTP server directly inside Blender.
**Version:** 0.1.20 <!-- x-release-please-version -->
**License:** MIT
**Repo:** https://github.com/dcc-mcp/dcc-mcp-blender
**Python:** >=3.10 (bundled with Blender)
**Blender:** 4.5+ (CI covers 4.5.13 and 5.2.1)
**Core dep:** `dcc-mcp-core>=0.20.0,<0.21.0`
---
## Quick Start
```python
import dcc_mcp_blender
handle = dcc_mcp_blender.start_server()
# Direct MCP host → handle.mcp_url() (OS-assigned); gateway → http://127.0.0.1:9765/mcp
handle.shutdown()
```
Headless bootstrap:
```bash
blender --background --python src/dcc_mcp_blender/blender_bootstrap.py
```
---
## Core API
### Module-Level Functions
```python
start_server(
port: Optional[int] = None,
server_name: str = "blender-mcp",
register_builtins: bool = True,
extra_skill_paths: Optional[List[str]] = None,
include_bundled: bool = True,
enable_gateway_failover: bool = True,
) -> McpServerHandle
stop_server() -> None
```
### BlenderMcpServer Constructor
```python
BlenderMcpServer(
port: Optional[int] = None,
server_name: str = "blender-mcp",
server_version: str = "0.1.20", # x-release-please-version
enable_gateway_failover: bool = True,
metrics_enabled: Optional[bool] = None, # env: DCC_MCP_BLENDER_METRICS=1
job_storage_path: Optional[str] = None, # env: DCC_MCP_BLENDER_JOB_STORAGE
)
```
Key methods: `register_builtin_actions()`, `start()`, `stop()`, `build_capability_manifest(loaded_only=False)`.
---
## Skill Discovery & Loading
Agent workflow (skills-first — **default**):
1. `search_skills` / `search_tools` — find the domain skill.
2. `load_skill("blender-animation")` — activate tools with `inputSchema` + annotations.
3. Call the concrete tool (e.g. `blender_animation__set_keyframe`).
Reserve `blender_scripting__execute_python` for **escape hatches** (no skill yet, bulk in-Blender loops, bpy-only API). Operators can block arbitrary execution with `DCC_MCP_BLENDER_DISABLE_EXECUTE_PYTHON=1` or `DCC_MCP_BLENDER_DISABLE_ARBITRARY_SCRIPT=1`.
Tool naming: `{skill_name.replace("-","_")}__{script_stem}` (e.g. `blender_scene__new_scene`).
---
## Key Files
| File | Purpose |
|------|---------|
| `src/dcc_mcp_blender/server.py` | `BlenderMcpServer`, builtin skill discovery, metrics, jobs |
| `src/dcc_mcp_blender/dispatcher/` | Thread-affinity dispatchers + cancellation |
| `src/dcc_mcp_blender/api.py` | Skill authoring helpers (`blender_success`, `blender_error`, `with_main_thread`) |
| `src/dcc_mcp_blender/host.py` | Host adapter (GUI vs headless mode) |
| `src/dcc_mcp_blender/context_snapshot.py` | Scene context provider |
| `src/dcc_mcp_blender/skills/` | 25+ built-in skill packages (200+ typed MCP tools) |
| `src/dcc_mcp_blender/skills/SKILLS_INDEX.md` | Staged loading guide and task-to-skill chains |
| `README.md` | Human overview |
| `docs/blender-mcp-comparison.md` | Blender MCP (`mcp-for-blender`) vs dcc-mcp-blender comparison |
| `AGENTS.md` | Progressive disclosure map |
---
## Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| `DCC_MCP_BLENDER_PORT` | OS-assigned | Optional fixed instance TCP port |
| `DCC_MCP_BLENDER_SERVER_NAME` | `blender-mcp` | MCP init name |
| `DCC_MCP_BLENDER_SKILL_PATHS` | — | Blender skill search roots |
| `DCC_MCP_SKILL_PATHS` | — | Global fallback skill search roots |
| `DCC_MCP_BLENDER_SEMANTIC_INDEX` | `0` | `1`=hybrid BM25+vector skill search |
| `DCC_MCP_BLENDER_SEMANTIC_EMBEDDER` | `hashed` | `onnx` for dense embeddings |
| `DCC_MCP_BLENDER_METRICS` | `false` | `true`=Prometheus `/metrics` |
| `DCC_MCP_BLENDER_JOB_STORAGE` | *(auto)* | Render-job SQLite persistence dir |
| `DCC_MCP_BLENDER_READINESS_TIMEOUT_SECS` | — | Advisory timeout for readiness probe |
| `DCC_MCP_BLENDER_DISABLE_EXECUTE_PYTHON` | `false` | `1`/`true`/`yes`/`on` — refuse `execute_python` |
| `DCC_MCP_BLENDER_DISABLE_ARBITRARY_SCRIPT` | `false` | Same tokens — refuse all arbitrary script execution |
| `DCC_MCP_BLENDER_PROJECT_TOOLS` | — | `0` to opt out of project tools |
| `DCC_MCP_BLENDER_RESOURCES` | — | `0` to opt out of MCP resource publishing |
| `DCC_MCP_BLENDER_STRICT_SKILL_SCAN` | `false` | Raise on invalid skill YAML |
| `DCC_MCP_BLENDER_ENABLE_WORKFLOWS` | `true` | Enable workflow orchestration surface |
| `DCC_MCP_BLENDER_ENABLE_GATEWAY_FAILOVER` | `true` | Enable gateway failover |
---
## Available Tool Categories
| Skill Package | Key Tools |
|---------------|-----------|
| blender-scene | `new_scene`, `open_scene`, `save_scene`, `list_objects`, `get_scene_info` |
| blender-objects | `create_object`, `delete_object`, `move/rotate/scale`, `get_selection`, `set_selection` |
| blender-mesh / blender-mesh-ops | `add_modifier`, `apply_modifier`; opt-in `modeling` group for primitive, loft/lathe, extrude/bevel/inset, Boolean, array/mirror, pivot, UV, and material verbs |
| blender-uv-ops | `create_uv_map`, `unwrap_uvs`, `pack_uvs`, `project_uvs` |
| blender-rigging | `create_armature`, `create_bone`, `add_constraint`, `bind_mesh_to_armature`, `retarget_animation` |
| blender-pose-library | `list_poses`, `save_pose`, `load_pose` |
| blender-interchange | `import_fbx/obj/usd`, `export_gltf/usd/alembic`, `batch_export` |
| blender-materials / blender-shader-nodes | `create_material`, `create_node`, `connect_nodes`, `set_principled_input`, `export_materialx`, `import_materialx` |
| blender-material-library | `save/load/delete_material_preset`, `assign_texture`, `list_images`, `load_image`, `pack_image`, `unpack_image`, `image_file_status`, `list_image_tiles` |
| blender-texture-bake | `bake_textures`, `bake_ambient_occlusion`, `transfer_maps` |
| blender-render | `render_scene`, `set_render_settings`, `capture_viewport`, `set_view_layer_passes`, `set_render_denoise`, `set_render_output`, `set_render_region`, `get_render_status` |
| blender-render-farm | `submit_render_job`, `get_render_job_status`, `cancel_render_job` |
| blender-animation | `set_keyframe`, `set_frame_range`, `bake_animation`, `list_nla_tracks`, `add_nla_strip`, `set_nla_strip`, `list_action_fcurves` |
| blender-lighting / blender-light-rig | `create_light`, `set_light_linking`, `set_light_ies`, `create_three_point_light_rig`, `create_hdri_world`, `animate_hdri_rotation` |
| blender-camera | `create_camera`, `set_active_camera`, `set_camera_properties` |
| blender-physics | `add_rigid_body`, `add_cloth_modifier`, `add_force_field`, `bake_simulation`, `add_fluid_modifier`, `set_fluid_settings`, `add_dynamic_paint_modifier`, `add_dynamic_paint_surface`, `set_particle_hair`, `set_particle_children`, `set_particle_instance`, `bake_particle_system` |
| blender-geometry-nodes | `create_geometry_node_group`, `set_geometry_node_modifier_input` |
| blender-scripting | `execute_python`, `execute_script_file`, `get_blender_info` |
| blender-dev | `reload_modules`, `list_addons`, `install_addon`, `remove_addon`, `refresh_addons`, `capture_ui_snapshot`, `start_debug_server`, `get_python_environment` |
| blender-validation | `run_scene_checks`, `validate_mesh/materials/animation`, `get_validation_report` |
| blender-pipeline | `get/tag/clear_asset_metadata`, `set_project_context`, `create_publish_manifest` |
| blender-shot-export | `get_shot_info`, `export_camera` |
| blender-export-preset | `list/save/load/delete_export_preset` |
| blender-collection | `create_collection`, `link_to_collection`, `list_collections` |
| blender-node-graph | `list_all_node_graphs`, `list_compositor_nodes`, `get_compositor_node_tree` |
| blender-compositor | `setup_compositor_tree`, `create_compositor_node`, `connect_compositor_nodes`, `set_compositor_node_value`, `list_compositor_node_types` |
| blender-import-to-scene | `import_to_scene` |
**glTF / GLB export vertex counts:** `export_gltf` writes more vertices than Blender
reports in-host: glTF stores one vertex per unique normal + UV, so hard-edged /
flat-shaded meshes split most (cube 8 -> 24, ~3x; measured 3-part model 554 -> 2200,
~4x; more for meshes with many UV islands or per-vertex color/skin splits) and
smooth-shaded meshes approach 1x. UV seams, tangents, vertex colors, skin weights and
multi-material boundaries also split vertices, so a smooth-shaded mesh can still land
above 1x. A mismatch is expected, not an export defect. `export_gltf` returns no
vertex / face / material metrics; validate downstream with `import_file` +
`get_mesh_info` or `blender-validation` (`validate_mesh`,
`validate_export_readiness`).
See `src/dcc_mcp_blender/skills/SKILLS_INDEX.md` for staged loading guidance, task-to-skill chains, and side-effect profiles.
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.

