Skip to main content
Glama

blender_execute_code

Execute custom Python code with Blender's bpy API to perform complex 3D operations, create custom workflows, and access advanced functionality not covered by standard tools.

Instructions

Execute Python code using Blender's bpy API.

Provides escape hatch for complex operations not covered by other tools. Use full bpy API access.

Args:

  • code (string): Python code to execute using bpy API (max 100KB)

  • timeout (optional): Execution timeout in milliseconds (1000-180000, default: 180000)

Returns: Execution result with any output or error message

Examples:

  • List objects: [obj.name for obj in bpy.data.objects]

  • Create custom mesh: bpy.ops.mesh.primitive_cube_add(location=(1, 2, 3))

  • Get object location: bpy.data.objects['Cube'].location[:]

Use when: Complex operations, custom workflows, bpy API access Don't use when: Simple operations covered by dedicated tools

Security: Code is validated for dangerous patterns. System commands are restricted. Performance: Long-running code may hit timeout limits (default 3 minutes)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPython code using bpy API
timeoutNoExecution timeout (ms)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/olbboy/claudekit-blender-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server