0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

blender mcp をwindowsで使う

Posted at

参照

https://zenn.dev/takna/articles/mcp-server-tutorial-12-blender
https://note.com/npaka/n/n65db8cc404bd

blenderをインストールする

blender mcp をインストールする

https://github.com/ahujasid/blender-mcp
Codeをクリックして、Download ZIPをクリックして、全部をダウンロードして、解凍する

image.png

Blenderを起動して、設定を起動するEdit->preferenceをclick

image.png

Install local diskをclick
image.png

ダウンロードした、blender-mcpのZipファイルの中にあるaddon.pyを選択する
インストールされる

uvxをインストール

Windowsボタンから、ターミナルを起動する

以下を実行

Set-ExecutionPolicy RemoteSigned -scope CurrentUser
powershell -c "irm https://astral.sh/uv/install.ps1 | iex" 

以下のようなエラーがでるケースがあった。Set-ExecutionPolicyで解決?

PS C:\Users\xxx> powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Error: PowerShell requires an execution policy in [Unrestricted, RemoteSigned, Bypass] to run uv. For example, to set the execution policy to 'RemoteSigned' please run:
    Set-ExecutionPolicy RemoteSigned -scope CurrentUser

uvxのpathを設定する

エクスプローラーから、PCをクリックして、右クリックで、プロパティを選択する

image.png

システムの詳細設定をクリックする
image.png

環境設定をクリックする

image.png

Pathをダブルクリックして
image.png

参照をclickして

image.png

Cドライブ→Users→自分の名前→.local →binを選択する

OKをclickする

pathが追加される

uvxがインストールできるかは、コマンドプロンプトで確認できる

uvx --helpとするとhelpが表示される

C:\Users\xxx>uvx --help
Run a command provided by a Python package.

Usage: uvx [OPTIONS] [COMMAND]

Options:
.....

Blenderを起動する

右上の < をclickする

image.png

Blender MCPが表示される

image.png

connect to MCP serverをclickする
image.png

image.png

claude desktopをインストールする

image.png

claude desktopの設定

設定をclickする
image.png

開発者→構成を編集をclick

image.png

エクスプローラーで、claude_desktop_config.jsonが表示される

image.png

適当なテキストエディタで編集する

最初は、何も書いていないので、以下を記載する

{
    "mcpServers": {
        "blender": {
            "command": "uvx",
            "args": [
                "blender-mcp"
            ]
        }
    }
}

Claude desktopを起動する(再起動する)

PCを再起動した場合は、blenderのconnect to mcp serverを実行しておく

指示してみる
image.png

動いたが、claude desktop無料版だと少ししか動かない。。。
課金しますか!


動かない場合、
Claude desktopで、
image.png

開発者→構成で、blenderでエラーになっている。
ログを開いて、claude desktopに聞くといい。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?