execute_blender_code

Tools · 3D · MIT

What it does

Runs Python the model writes inside the user's open Blender, with the full bpy API, and returns whatever it printed. This is the tool that does the modeling, lighting, animation and rendering; everything else supports it. There is no guard by default: the script runs with the user's own rights, so it can read and write files, start programs and use the network. Safe mode narrows that.

Get it

MCP tool; call it from an agent with the server connected. execute_blender_code(code="import bpy; print(len(bpy.data.objects))")

Source on GitHub
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

License notes are on the pack's page

From

MCP for Blender

Everything from MCP for Blender in the gallery

Back to the Asset Library