Blender MCP サーバー
Blender スクリプトを管理および実行するための Model Context Protocol (MCP) サーバー。
特徴
Blender Python スクリプトの追加、編集、実行、削除
ヘッドレスBlender環境でスクリプトを実行する
実行結果とエラーを表示する
スクリプトのメタデータ(作成日、最終更新日、実行回数)を追跡する
要件
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}
- スクリプトの実行結果を取得する
例
基本的な例
Blend ファイルの操作
仕組み
スクリプトが追加されると、
script_files/scripts
ディレクトリに保存されます。実行されると、スクリプトはヘッドレスBlenderインスタンスで実行されます。
ブレンドファイルが指定されている場合、Blenderはスクリプトを実行する前にそのファイルを開きます。
それ以外の場合は、デフォルトの空のBlenderシーンが使用されます。
出力とエラーは
script_files/results
ディレクトリにキャプチャされ保存されます。スクリプトに関するメタデータは
script_files/metadata.json
で追跡されます。
インストール
このリポジトリをクローンする
MCPライブラリをインストールします:
pip install mcp
Blenderがインストールされ、PATHからアクセスできることを確認してください
ライセンス
マサチューセッツ工科大学
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Blender Python スクリプトの管理と実行を可能にするモデル コンテキスト プロトコル サーバー。これにより、ユーザーは自然言語インターフェイスを通じてヘッドレス Blender 環境でスクリプトを作成、編集、実行できるようになります。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.
- -securityAlicense-qualityA streamlined foundation for building Model Context Protocol servers in Python, designed to make AI-assisted development of MCP tools easier and more efficient.Last updated -13MIT License
- -securityFlicense-qualityA Python-based implementation of the Model Context Protocol that enables communication between a model context management server and client through a request-response architecture.Last updated -
mcp-run-pythonofficial
-securityAlicense-qualityModel Context Protocol server to run Python code in a sandbox.Last updated -1,46212,756MIT License