UnityMCP

Developer tools

Drive the Unity Editor from an AI agent or the terminal. The Editor serves MCP itself over HTTP, so there is no second process to run, and the isuzu-unity-cli command needs no Node or .NET runtime.

Your AI app calls the UnityMCP MCP server, which does the developer tools work and sends the result back to the chat.

About UnityMCP

UnityMCP is a community MCP server from isuzu-shiranui, filed in our directory under developer tools. Drive the Unity Editor from an AI agent or the terminal. The Editor serves MCP itself over HTTP, so there is no second process to run, and the isuzu-unity-cli command needs no Node or .NET runtime.

At a glance

Publisher
isuzu-shiranui (community)
Runs
See the README for setup
Written in
C#
License
MIT
GitHub stars
347

How to set up UnityMCP

  1. Follow the install steps in the UnityMCP README; it is written in C#, so have that toolchain ready.
  2. Check the UnityMCP README for keys or settings; the registry lists none that UnityMCP requires.
  3. Add UnityMCP to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the UnityMCP tools to confirm the connection.
  5. Run one read-only task with UnityMCP first, and keep your app asking before each tool call until the results look right.

UnityMCP compared with similar servers

  • Code Execution Mode by elusznik has fewer GitHub stars than UnityMCP (346 against 347); both are community servers, and both run locally.
  • Simulator iOS Idb by InditexTech has fewer GitHub stars than UnityMCP (347 against 347); both are community servers, and both run locally.
  • Generator by context-hub has fewer GitHub stars than UnityMCP (345 against 347); both are community servers, and both run locally.

Before you connect UnityMCP

  • Give UnityMCP its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each UnityMCP tool call until you trust what it does with them.
  • Treat text that UnityMCP fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for UnityMCP on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for UnityMCP

How marketing and sales teams put UnityMCP to work, by company size. Pick the size closest to yours and start UnityMCP on one use case.

Small business

  • A small business with a developer can use UnityMCP to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask UnityMCP to explain and fix a marketing site issue without context switching between tools.
  • UnityMCP runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use UnityMCP to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect UnityMCP to keep scripts and automations documented and versioned as they change.
  • Start UnityMCP on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out UnityMCP with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on UnityMCP so web and marketing engineering share one reviewed way of working with AI.
  • UnityMCP is a community server, so have security review the code and pin a version before UnityMCP touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

UnityMCP README

From isuzu-shiranui/UnityMCP on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Unity MCP 統合フレームワーク

English Version | Tiếng Việt

Unity Editor を AI エージェントに開放するフレームワークです。人が手で実行しても、スクリプトから呼んでも、同じ経路を通ります。

  • MCP クライアントは、Editor 自身が公開する Streamable HTTP エンドポイント http://127.0.0.1:<port>/mcp に直接接続します。別プロセスの MCP サーバーはありません。Claude Code、Cursor、Codex、Gemini CLI、VS Code、Claude Desktop で動作を確認しています。
  • コマンドラインの isuzu-unity-cli からも同じツールを呼べます。配布している実行ファイルはネイティブなので、Node も .NET ランタイムも要りません。
  • ツールは C# の static メソッドに [McpTool] を付けるだけで定義できます。

はじめて使う方は、図つきの導入ガイド Unity MCP のはじめかた から始めてください。

必要条件

  • Unity Editor 2022.3 以降。EditMode テストスイートは Unity 6000.0.35f1 で実行しています
  • Git クライアント 2.14.0 以降を PATH に通しておいてください。Unity の Package Manager が git URL のパッケージを取得するのに使います(Unity のマニュアル)。下の VPM リポジトリから入れる場合は要りません
  • com.unity.nuget.newtonsoft-json 3.2.1。依存として自動で解決されます

インストール

Unity の Package Manager で Add package from git URL を選び、次の URL を入力します。

https://github.com/isuzu-shiranui/UnityMCP.git?path=jp.shiranui-isuzu.unity-mcp

VCC(VRChat Creator Companion)と ALCOM では、VPM リポジトリ https://unity-mcp.shiranui-isuzu.dev/vpm.json を追加してください。どちらもパッケージを zip でダウンロードするので、この経路に Git は要りません。ワンクリックで追加するリンクと、追加する場所の画面は、導入ガイドの VCC・ALCOM をお使いの場合 にあります。

CLI をインストールします。

# Windows
irm https://raw.githubusercontent.com/isuzu-shiranui/UnityMCP/main/install.ps1 | iex

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/isuzu-shiranui/UnityMCP/main/install.sh | sh

GitHub Releases から実行ファイルを直接ダウンロードして、SHA256SUMS で検証することもできます。.NET 10 SDK があれば dotnet tool install -g IsuzuUnityCli でも入ります。

続けて、エージェント用のスキルと MCP クライアントを登録します。

isuzu-unity-cli setup                              # Claude Code / Codex 向けのスキル
isuzu-unity-cli setup --mcp --agent claude-code    # MCP クライアントへの登録

--agent は claude-code / claude-desktop / codex / cursor / gemini / vscode から選べます。Claude Code はサーバーを Unity プロジェクトのパスの下に登録するので、Claude Code を Unity プロジェクトのフォルダーで起動してください。Editor の Preferences > Unity MCP ページからも登録できます。

クライアントごとの設定、Claude Desktop 向けの拡張機能バンドルと stdio ブリッジは MCP クライアントの接続 にあります。

最初のコマンド

Editor がプロジェクトを開くとサーバーが起動し、descriptor ファイルを公開します。CLI はそれを読むので、ポートやトークンの指定は要りません。

isuzu-unity-cli projects                  # 起動中の Editor 一覧
isuzu-unity-cli tools                     # 利用可能なツール
isuzu-unity-cli call play_mode_status     # ツールの実行
isuzu-unity-cli verify                    # 再コンパイル → エラー抽出 → コンソールのエラー

verify は、スクリプトを編集したあとの再コンパイルとエラー収集を 1 回の呼び出しにまとめます。--test を付けるとテストも実行します。

Editor が複数起動しているときは --project <name> で選びます。プロジェクトのディレクトリ内で実行していれば、自動で選ばれます。全コマンドは CLI リファレンス にあります。

ツール

診断(コンソール、Editor.log、コンパイル状態、テスト、シーン階層、アセットの読み取り)、オーサリング(GameObject・コンポーネント・アセット・シーン・Prefab・Animator Controller の作成と変更)、描画、Timeline / Recorder、ビルド、C# スニペットの実行、Editor への入力の合成があります。オーサリングのツールは、呼び出し 1 回が Undo 1 操作にまとまります。

Timeline のツールは com.unity.timeline があるときだけ、Recorder のツールは com.unity.recorder と com.unity.timeline の両方があるときだけ、test_run と test_results は com.unity.test-framework があるときだけ現れます。

一覧と注意点は ツール一覧 にあります。MCP の URL に ?group=diagnostics,authoring のようにグループを付けると、tools/list がそのグループだけを返します。

ツールの追加

Editor 側にメソッドを 1 つ書くだけです。

using System.Linq;
using UnityMCP.Editor.Core;
using UnityMCP.Editor.Core.Attributes;

internal static class MyTools
{
    [McpTool(
        "asset_find_by_type",
        "Find project assets of a given type. Prefer a narrow type and a small limit.",
        Idempotency = McpIdempotency.Safe)]
    public static string[] FindByType(
        [McpArg("type", "Unity type name, e.g. Material.")] string type,
        [McpArg("limit", "Maximum paths to return.")] int limit = 50)
    {
        return UnityEditor.AssetDatabase.FindAssets($"t:{type}")
            .Take(limit)
            .Select(UnityEditor.AssetDatabase.GUIDToAssetPath)
            .ToArray();
    }
}

これだけで MCP クライアントと CLI の両方から呼び出せます。JSON Schema はシグネチャから生成されます。[McpTool] に指定できるプロパティは アーキテクチャ にあります。

C# を書かずに、JSON ファイルでツールを追加することもできます。定義ツール を参照してください。

ドキュメント

セキュリティ

サーバーは 127.0.0.1 にだけバインドします。OPTIONS を除く全リクエストに bearer token が必要です。descriptor ファイルとトークンファイルは資格情報として扱ってください。これらを読めるものは、Editor 内でコードを実行できます。プレイヤービルドには、Development Build を含めて一切含まれません。詳細は セキュリティ にあります。

ライセンス

MIT

Questions about UnityMCP

What is the UnityMCP MCP server?

Drive the Unity Editor from an AI agent or the terminal. The Editor serves MCP itself over HTTP, so there is no second process to run, and the isuzu-unity-cli command needs no Node or .NET runtime. UnityMCP is maintained by isuzu-shiranui on GitHub at isuzu-shiranui/UnityMCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the UnityMCP MCP server?

UnityMCP doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (isuzu-shiranui/UnityMCP). Like most servers, UnityMCP ends with a command or URL you paste into your AI app's MCP config.

Does UnityMCP need an API key?

The registry lists no required keys for UnityMCP. Check the UnityMCP README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is UnityMCP an official MCP server?

No. UnityMCP is a community server maintained by isuzu-shiranui. Community servers can be excellent; read the code and the open issues before you give UnityMCP access to company data.

What license is UnityMCP under?

UnityMCP is released under the MIT license, according to its GitHub repository. The license covers the code of UnityMCP; the service it connects to has its own terms.