Safe mode (BLENDER_MCP_SAFE_MODE)
Tools · A check on the result · MIT
- What it does
An optional checker, off by default, that reads every script the model sends before it reaches Blender and rejects it if it imports anything beyond bpy, bmesh, mathutils and a few pure-Python modules, or uses eval, exec, open, handlers, timers, drivers, add-on installs, text-block scripts, appending from another .blend, quitting Blender or overwriting the startup file. It is a filter on the model's scripts, not a sandbox: in our test it let through saving preferences, deleting every object, opening another .blend, loading any image from disk and saving the file to any path. It does not cover the socket, which any program on the machine can call directly.
- Get it
Set BLENDER_MCP_SAFE_MODE=1 in the server's env block in the MCP config. A blocked script comes back to the model with the reason and the line.
- Needs (the whole pack)
Blender 3.0 or newer, open with a window. Python 3.10 and uv. No key for the core tools or Poly Haven. The model generators need paid keys.
- License
MIT, plus a separate terms file for data collection
- From