Blender MCP Server
Blender MCP サーバー
Blender スクリプトを管理および実行するための Model Context Protocol (MCP) サーバー。
特徴
Blender Python スクリプトの追加、編集、実行、削除
ヘッドレスBlender環境でスクリプトを実行する
実行結果とエラーを表示する
スクリプトのメタデータ(作成日、最終更新日、実行回数)を追跡する
Related MCP server: Blender MCP Bridge
要件
Python 3.7以上
Blenderがインストールされアクセス可能
MCP ライブラリ (
pip install mcp)
使用法
サーバーを起動します。
python server.pyMCPクライアント(Claude Desktopなど)を使用してサーバーに接続します
提供されているツールを使用してスクリプトを管理します。
add_script(name, content)- 新しいスクリプトを追加するedit_script(name, content)- 既存のスクリプトを編集するexecute_script(name, blend_file=None)- オプションで.blendファイルを指定して、Blenderでスクリプトを実行します。remove_script(name)- スクリプトを削除する
情報を取得するにはリソースにアクセスしてください:
scripts://list- 利用可能なスクリプトのリストを取得しますscript://{name}- 特定のスクリプトの内容を取得するresult://{name}- スクリプトの実行結果を取得する
例
基本的な例
# 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_cubeBlend ファイルの操作
# 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_scene仕組み
スクリプトが追加されると、
script_files/scriptsディレクトリに保存されます。実行されると、スクリプトはヘッドレスBlenderインスタンスで実行されます。
ブレンドファイルが指定されている場合、Blenderはスクリプトを実行する前にそのファイルを開きます。
それ以外の場合は、デフォルトの空のBlenderシーンが使用されます。
出力とエラーは
script_files/resultsディレクトリにキャプチャされ保存されます。スクリプトに関するメタデータは
script_files/metadata.jsonで追跡されます。
インストール
このリポジトリをクローンする
MCPライブラリをインストールします:
pip install mcpBlenderがインストールされ、PATHからアクセスできることを確認してください
ライセンス
マサチューセッツ工科大学
This server cannot be deployed
Maintenance
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…
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.119MIT
- AlicenseAqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceEnables AI to control Blender 3D through the Model Context Protocol, allowing Python execution, scene state queries, and automation of 3D workflows.5GPL 3.0
- AlicenseCqualityDmaintenanceMCP server that enables AI to control Blender 3D, providing 175 typed tools for objects, materials, animation, compositing, and more via the Model Context Protocol.1002MIT