RU

rachitkumarrastogi/unity-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

7 stars 6 forks 品質 90 トレンド 35MIT

単一 MCP サーバー

概要

— あらゆるMCP対応IDEやアプリから、AIアシスタントがUnityプロジェクト(Unity 6)にアクセスできるようにします。 Unityエディタは必要ありません。 IDE は、このサーバーに話します。サーバーは、Unity プロジェクトフォルダを読み込み、プロジェクト情報、ビルドシーン、スクリプト、プレハブなどと回答します。そのため、AI はエディタを開くことなく役立ちます。 - — プロジェクトファイルシステムからのみ読み込みます。 - — MCP 設定でプロジェクトごとに UNITY PROJECT PATH を設定します。 - — モデルコンテキストプロトコル(stdio上のツール)をサポートする任意のクライアントで動作します。 このサーバーは標準とexposesを使用します。 MCP サーバーを実行し、環境変数を渡すことができる IDE または app が動作します。 一般的に使用されるクライアントには以下が含まれます: 設定は、 = ノード、 = dist/index.js へのパス、 = UNITY PROJECT PATH = ユニティプロジェクトルートです。 Cursor の例では、以下の設定を参照してください。他のクライアントは、設定形式と同じ構造を使用します。 下記のカテゴリを拡張して、含まれているツールを確認します.

概要(AI 翻訳)

Unity3D MCP Server for Cursor、Claude Desktop、Claude Code、VS Code、Windsurf、MCP クライアント* — AI アシスタントが、MCP 対応IDE やアプリから Unity プロジェクト (Unity 6) にアクセスできるようにします。 Unityエディタは必要ありません。

IDE は、このサーバーに話します。サーバーは、Unity プロジェクトフォルダを読み込み、プロジェクト情報、ビルドシーン、スクリプト、プレハブなどと回答します。そのため、AI はエディタを開くことなく役立ちます。

お問い合わせ

概要

-Editor-free — プロジェクトファイルシステムからのみ読み込みます。 -Oneサーバー、多くのプロジェクト* — MCP 設定でプロジェクトごとに UNITY_PROJECT_PATH を設定します。

  • MCP-native — モデルコンテキストプロトコル(stdio上のツール)をサポートする任意のクライアントで動作します。

お問い合わせ

IDEとクライアントをサポート

このサーバーは、標準のMCPプロトコルを stdio で使用し、tools を公開します。 MCP サーバーを実行し、環境変数を渡すことができる IDE または app が動作します。 一般的に使用されるクライアントには以下が含まれます:

| クライアント | ノート | お問い合わせ |Cursor | サーバをMCP設定に追加し、[UNITY_PROJECT_PATHを[env]に設定します。 お問い合わせ |Claude Desktop | [[claude_desktop_config.jsonに追加]; 同じコマンド+エンブパターン。 |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Unity MCP Server

Unity3D MCP Server for Cursor, Claude Desktop, Claude Code, VS Code, Windsurf, and any MCP client — Gives AI assistants structured access to your Unity project (Unity 6 ready) from any MCP-capable IDE or app. No Unity Editor required.

Your IDE talks to this server; the server reads your Unity project folder and answers with project info, build scenes, scripts, prefabs, and more — so the AI can help without opening the Editor.


Overview

  • Editor-free — Reads only from the project filesystem.
  • One server, many projects — Set UNITY_PROJECT_PATH per project in your MCP config.
  • MCP-native — Works with any client that supports the Model Context Protocol (tools over stdio).

Supported IDEs and clients

This server uses the standard MCP protocol over stdio and exposes tools. Any IDE or app that can run an MCP server and pass environment variables will work. Commonly used clients include:

Client Notes
Cursor Add server to MCP settings; set UNITY_PROJECT_PATH in env.
Claude Desktop Add to claude_desktop_config.json; same command + env pattern.
Claude Code MCP support including tools.
VS Code Use an MCP extension (e.g. GenAI / Copilot MCP); configure server and UNITY_PROJECT_PATH.
Windsurf Add MCP server with command and env.
Continue Configure MCP server in Continue settings.
Cline MCP tools and resources.
Other Any client that supports MCP tools over stdio (e.g. Zed, Roo Code, LibreChat, custom agents).

Configuration is the same everywhere: command = node, args = path to dist/index.js, env = UNITY_PROJECT_PATH = your Unity project root. See Configuration below for a Cursor example; other clients use the same structure in their own config format.


Tools

Expand a category below to see the tools it includes.

GitHub で README 全文を見る

インストール

npx -y unity-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "unity": { "command": "npx", "args": ["-y", "unity-mcp-server"], "env": { "UNITY_PROJECT_PATH": "/absolute/path/to/YourUnityProject" } } } }