How execute_blender_code Executes Arbitrary Python in Blender: Architecture Deep Dive
The execute_blender_code tool marshals Python code strings from the MCP server to a running Blender instance via TCP sockets, where the Blender add-on executes the code using Python's exec() function in an isolated namespace and returns captured stdout to the caller.
The execute_blender_code tool in the ahujasid/blender-mcp repository enables Model Context Protocol (MCP) clients to run arbitrary Python scripts inside Blender's embedded interpreter. This capability bridges external AI assistants with Blender's Python API (bpy), allowing real-time
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →