Enables direct control of Unity Editor, providing tools for scene manipulation (creating, deleting, searching GameObjects), component operations (adding, removing, modifying properties), asset management (searching, importing, creating), prefab operations, and audio control including AudioSource creation and playback.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@UniMCP4CCcreate a red sphere named PowerOrb at position (2, 1, 0)"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
UniMCP4CC - Unity MCP Server for Claude Code
Unity Editor を Claude Code から操作するための MCP (Model Context Protocol) サーバーです。
Note: このパッケージは Claude Code 専用 に設計・テストされています。
動作環境
項目 | バージョン |
Unity | 6000.0.0 以降 (Unity 6) |
Node.js | 18 以降 |
AI Client | Claude Code (Anthropic) |
Important: このパッケージは Unity 6 (6000.x) 向けにビルドされています。Unity 2021/2022 では動作しない可能性があります。
機能
Claude Code から Unity Editor を直接操作できます:
シーン操作: GameObject の作成・削除・検索
コンポーネント操作: コンポーネントの追加・削除・プロパティ変更
アセット操作: アセットの検索・インポート・作成
プレハブ操作: プレハブの作成・インスタンス化
オーディオ操作: AudioSource の作成・再生制御
インストール
Unity Package Manager からインストール
Unity Editor で Window > Package Manager を開き、+ > Add package from git URL... を選択:
Claude Code の設定
パッケージインストール後、Unity Editor で:
Window > Unity MCP > Setup Claude Code
表示されるウィンドウで「Setup Claude Code」ボタンをクリックすると、自動的に設定が行われます。
使用方法
Unity Editor を起動(MCP Server が自動起動します)
Claude Code を起動
Unity プロジェクトについて Claude Code に質問・指示
使用例
API カテゴリ
カテゴリ | 説明 |
scene | シーン操作 |
gameObject | GameObject 操作 |
component | コンポーネント操作 |
transform | Transform 操作 |
asset | アセット操作 |
prefab | プレハブ操作 |
audio | オーディオ操作 |
editor | エディタ操作 |
log | ログ操作 |
詳細な API リファレンスは Wiki を参照してください。
アーキテクチャ
トラブルシューティング
接続できない場合
Unity Editor が起動しているか確認
Console に
[MCP] HTTP Server started on port 5051が表示されているか確認Claude Code を再起動
Unity バージョンの互換性
このパッケージは Unity 6 (6000.x) 向けにビルドされています。 他のバージョンで問題が発生した場合は Issue を作成してください。
ライセンス
MIT License
関連リンク
Made with Claude Code by dsgarage