Blender MCP Server
Servidor MCP de Blender
Un servidor de Protocolo de Contexto de Modelo (MCP) para administrar y ejecutar scripts de Blender.
Características
Agregar, editar, ejecutar y eliminar scripts de Python de Blender
Ejecutar scripts en un entorno Blender sin interfaz gráfica
Ver resultados de ejecución y errores
Metadatos del script de seguimiento (fecha de creación, última modificación, número de ejecuciones)
Related MCP server: Blender MCP Bridge
Requisitos
Python 3.7+
Blender instalado y accesible
Biblioteca MCP (
pip install mcp)
Uso
Iniciar el servidor:
python server.pyConéctese al servidor mediante un cliente MCP (como Claude Desktop)
Utilice las herramientas proporcionadas para administrar scripts:
add_script(name, content)- Agregar un nuevo scriptedit_script(name, content)- Editar un script existenteexecute_script(name, blend_file=None)- Ejecuta un script en Blender, especificando opcionalmente un archivo .blendremove_script(name)- Eliminar un script
Acceda a recursos para obtener información:
scripts://list- Obtener la lista de scripts disponiblesscript://{name}- Obtener el contenido de un script específicoresult://{name}- Obtener el resultado de la ejecución de un script
Ejemplos
Ejemplo básico
# Add a simple script
add_script("hello_cube", '''
import bpy
# Clear existing objects
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete()
# Create a cube
bpy.ops.mesh.primitive_cube_add(size=2, location=(0, 0, 0))
print("Cube created!")
''')
# Execute the script
execute_script("hello_cube")
# Get the result
# Access using: result://hello_cubeTrabajar con archivos Blend
# Add a script that works with a blend file
add_script("analyze_scene", '''
import bpy
# Print information about the current scene
print(f"Current Blender version: {bpy.app.version_string}")
print(f"Current file: {bpy.data.filepath}")
# List all objects in the scene
print("\\nObjects in the scene:")
for obj in bpy.data.objects:
print(f" - {obj.name} ({obj.type})")
''')
# Execute with a specific blend file
execute_script("analyze_scene", blend_file="/path/to/your/project.blend")
# Get the result
# Access using: result://analyze_sceneCómo funciona
Cuando se agrega un script, se almacena en el directorio
script_files/scriptsCuando se ejecuta, el script se ejecuta en una instancia de Blender sin cabeza.
Si se especifica un archivo de mezcla, Blender abrirá ese archivo antes de ejecutar el script
De lo contrario, se utiliza una escena de Blender vacía predeterminada.
La salida y los errores se capturan y almacenan en el directorio
script_files/resultsLos metadatos sobre los scripts se rastrean en
script_files/metadata.json
Instalación
Clonar este repositorio
Instalar la biblioteca MCP:
pip install mcpAsegúrese de que Blender esté instalado y sea accesible desde su PATH
Licencia
Instituto Tecnológico de Massachusetts (MIT)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceA server that integrates Blender with local AI models via the Model Context Protocol, allowing users to control Blender using natural language prompts for 3D modeling tasks.111
- AlicenseAqualityCmaintenanceEnables remote control of Blender via the Model Context Protocol, allowing users to execute Python scripts, query scene data, and generate 3D models from images. It provides a bridge for AI clients to interact directly with Blender's internal environment and automate 3D content creation.36MIT
- Alicense-qualityCmaintenanceEnables AI to control Blender 3D through the Model Context Protocol, allowing Python execution, scene state queries, and automation of 3D workflows.4GPL 3.0
- Alicense-qualityDmaintenanceEnables AI assistants to control Blender 3D modeling and rendering through natural language commands via the Model Context Protocol.MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/cwahlfeldt/blender-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server