blender-mcp
blender-mcp
Blender .blend ファイルを構築する MCP サーバーです。Blender への接続方法は 2 通りあります。
ヘッドレス — 呼び出しのたびに新しい
blender --backgroundプロセスを起動します。決定論的で、常に利用可能であり、ファイル生成に適した方法です。ライブ — 小さな Blender アドオンがローカルポートを開き、サーバーが既に開いている Blender ウィンドウを操作できるようにします。その様子をリアルタイムで確認できます。
どちらのルートも同じハンドラーコードを実行するため、スクリプトはどちらの方法でも同じように動作します。ローカルの Web UI を使用すると、参照画像をアップロードし、同じツールで生成ジョブを実行できます。
必要条件
Blender | 4.2 以降(5.1 で開発) |
Python | サーバー用に 3.12+(Blender は独自のものを使用) |
依存関係と仮想環境の管理 |
Related MCP server: Blender MCP
セットアップ
uv sync # create .venv and install
cp .env.example .env # then set BLENDER_MCP_EXECUTABLE
uv run python scripts/build_addon.py --install # build + install the Blender addon.env を省略した場合、サーバーは PATH と各ドライブの標準的な Program Files/Blender Foundation/Blender <version> フォルダーを検索し、見つかった最新バージョンを優先します。
ライブブリッジを有効にする
アドオンはインストールされていますが、起動するまではアイドル状態です。
Blender を開きます。
3D ビューポートで N を押してサイドバーを表示します。
MCP タブを開き、Start MCP Bridge をクリックします。
アドオンの設定で Start listening on launch にチェックを入れると、毎回この操作を省略できます。
MCP クライアントを接続する
.cursor/mcp.json には、このプロジェクト用のサーバーが既に登録されています。すべての場所で利用できるようにするには、そのブロックを ~/.cursor/mcp.json にコピーします。
{
"mcpServers": {
"blender": {
"command": "uv",
"args": ["run", "--directory", "C:\\Users\\josef\\Projects\\blender-mcp", "blender-mcp"]
}
}
}品質ワークフロー
生成品質は、単一のスクリプトダンプではなく、確認によって向上します。
list_references/view_reference— 最初にガイド画像を開くstudioまたはproductからcreate_blend小さな
run_scriptステップで構築;apply_materialで金属/プラスチック/ゴム/ガラス/木材を適用preview_views— マルチアングルの EEVEE プレビュー;view_imageで参照と比較修正、再度プレビュー
最終
render/render_and_view(最終版のみ CYCLES、反復中は EEVEE)
ローカル Web UI
uv run blender-mcp-web
# open http://127.0.0.1:8765参照画像をアップロードし、プロンプトを入力し、output/jobs/ 以下のジョブを参照します。
.envにBLENDER_MCP_LLM_API_KEYがある場合 — サイトは制限付きマルチモーダルエージェントを実行し、同じ Blender ツールを呼び出します(OpenAI 互換またはBLENDER_MCP_LLM_PROVIDERによる Anthropic)。キーがない場合 — アップロードとジョブページは引き続き機能します。Cursor でジョブを開き、MCP エージェントに
output/jobs/<id>/refsから構築するよう依頼します。
ツール
ツール | 目的 |
| インストール、出力/参照ディレクトリ、テンプレート、マテリアル、ライブブリッジ |
|
|
| テンプレート + オプションのスクリプトから新規ファイルを作成 |
| 任意の bpy Python を実行 |
| プロシージャルプリセット:金属、プラスチック、ゴム、ガラス、木材 |
| シーングラフ / マテリアル / カメラ / ライト |
| 批評用のマルチアングル EEVEE プレビュー |
| 静止画 PNG;後者は画像を返して表示 |
| 視覚確認用に PNG を読み込み |
| ライブビューポートのキャプチャ |
|
|
| ライブ Blender ウィンドウで |
スクリプトの作成
run_script および create_blend の script 引数は、bpy、mathutils、math、D(bpy.data)、C(bpy.context)が既にバインドされた名前空間で実行されます。result に代入するか emit(value) を呼び出すことでデータを返します。
テンプレート
名前 | 内容 |
| 何もなし |
| Blender の起動シーン:立方体、カメラ、ライト |
| グレーの床、3点エリア照明、50mm カメラ、1920×1080 |
| 白いシームレス背景、ソフトライト、85mm プロダクトフレーミング |
レイアウト
addon/blender_mcp_addon/ Blender extension + shared handlers (incl. preview_views)
src/blender_mcp/
server.py MCP tools
refs.py reference image library
materials.py procedural material presets
templates.py starter scenes
agent/ bounded multimodal generation loop
web/ FastAPI UI (templates + static)
headless.py / bridge.py Blender process / live socket
scripts/ build, install, verification
output/ .blend files, renders, refs/, jobs/テスト
uv run pytest -m "not blender" # fast
uv run pytest # includes real Blender runs
uv run python scripts/check_server.py
uv run python scripts/verify_live_bridge.py注意事項と制限
run_scriptは Blender 内で任意の Python を実行します。ブリッジはループバックに限定してください。長時間のレンダリングは、完了するまでライブ UI をブロックします。
viewport_screenshotはライブモードのみです。Cycles は、Blender の設定で GPU デバイスを有効にしない限り CPU を使用します。
Web エージェントには、ツール呼び出しと画像をサポートするマルチモーダルモデルが必要です。
ライセンス
MIT
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
- Alicense-qualityCmaintenanceAn MCP server that enables AI agents to control Blender through natural language for 3D scene creation, animation, and rendering. It provides over 550 actions and direct Python execution via a bridge to a live local Blender session.3MIT
- AlicenseAqualityDmaintenanceMCP server for AI-assisted Blender automation, providing layered tools for perception, declarative and imperative writing, and fallback operations.295MIT
- AlicenseCqualityCmaintenanceMCP 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
- Alicense-qualityCmaintenanceAn MCP server that enables AI assistants like Codex or ChatGPT to inspect and control a local Blender scene, including creating objects, editing materials, setting cameras and lights, rendering previews, and saving safe copies of .blend files.MIT
Related MCP Connectors
MCP server for Producer/Riffusion AI music generation
MCP server for generating rough-draft project plans from natural-language prompts.
A MCP server built for developers enabling Git based project management with project and personal…
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/josefgoeller-ship-it/blender-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server