Logo vun Union ♾️ - Unity MCP 服务器

Union ♾️ - Unity MCP 服务器

Organisatioun
nurture-tech

Union ♾️ - The Unity MCP Server

Editeurnurture-tech
Repositoryunity-mcp-server
SproochC#
Forks
4
Stären
32
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Union ♾️ - Unity MCP 服务器 stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    32 Stären an 4 Forks aus dem verlinkte Repository.

[!IMPORTANT] Union is deprecated. Use Unity's official MCP server.

Union ♾️ - The Unity MCP Server

A Model Context Protocol server for Unity

Doki Delivery Airship

Key Features

  • 🖼️ Multimodal Vision: Your agent can see what you see. It can view the scene, look through any camera, watch play mode, and inspect asset thumbnails.

  • 🔎 Powerful Search: Go beyond the project panel with simultaneous search across the hierarchy and project assets.

  • ✔️ Superior Code Analysis: Leverage Unity's own compiler for code analysis that is more accurate than your agent's linter.

  • ⏩ Quick Start: Get running in seconds with a single mcp.json configuration file.

  • 🛠️ Extensible: Add your own project-specific tools with minimal boilerplate.

  • 📅 Always Current: Kept up-to-date with the latest MCP protocol version — currently 2025-06-18 via the Official MCP C# SDK.

Compatibility

NameCompatibleNotes
Models
GPT-4.1✅
Claude 4 Sonnet✅
Claude 4 Opus✅
Gemini 2.5 Pro✅
Gemini 2.5 Flash✅
o3✅No image understanding
o4-mini✅
Unity Versions
Unity 6000.0.x✅Higher versions should be fine. Lower versions may work but untested.
Agents
Cursor✅
Rider AI✅
Claude Desktop✅
Claude Code✅Terminal requires Screen & System Audio Recording permissions on Mac
Operating Systems
Windows✅
Mac✅
Ubuntu❔Untested

Setup

1. Install node.js

2. Configure mcp.json

json
{
  "mcpServers": {
    "unity": {
      "command": "npx",
      "args": ["-y", "@nurture-tech/unity-mcp-runner", "-unityPath", "<path to unity editor>", "-projectPath", "<path to unity project>"]
    }
  }
}

This will automatically install the is.nurture.mcp package in your unity project. Feel free to commit those changes to source control.

About the Tools

Meet your Unity AI toolbox.

ToolDescription
Assets
get_asset_contentsGet the full contents of an asset or sub-asset.
copy_assetCopy an asset to a new path.
import_assetImport an asset from the filesystem into Unity.
get_asset_importerGet the importer settings for an asset.
Prefabs
open_prefabOpen a Unity prefab in isolation mode so that it can be edited.
Scenes
open_sceneOpen a scene
close_sceneClose an open scene
save_sceneSave the current scene. If the scene is not dirty, this will do nothing.
get_game_objectGet the details of a game object in a loaded scene or prefab by its hierarchy path.
test_active_sceneTest the active scene by entering play mode and running for a given number of seconds.
Scripting
create_scriptCreate or replace a C# code file at the given path. This also checks to make sure the script compiles.
execute_codeExecute code inside the Unity editor.
get_type_infoGet public fields and methods on a Unity fully qualified type name, including the assembly.
Search
searchSearch project assets and scene objects.
Editor State
get_stateGet the state of the Unity Editor.
get_selectionGet the objects the user has currently selected in the editor.
Vision
focus_game_objectFocus on a game object in the scene view.
screenshotRetrieve a preview of what is focused in the scene view.

Known Issues

  • The Google External Dependency Manager (EDMU) causes Unity to hang forever on startup when launched via Cursor on Windows. This is under investigation.

  • The test_active_scene tool sometimes fails with the error message Maximum call stack size exceeded.

  • The search tool occasionally fails with the error message Search index is not ready yet. Please try again later.

Adding Project-Specific Tools

Union uses the official C# MCP SDK.

  1. Create a static class to hold your tools. Add the [McpServerToolType] annotation to the class.

  2. Declare static methods to implement each tool. Add the [McpServerTool] annotation to each method.

  3. Reference the Services directory for examples.

  4. You will likely need to quit unity and restart your agent in order for it to see the new tools.

Usage Tips

Here are some tips to get the most out of Union:

  • 🚀 Launch through your agent: Always launch Unity through your AI agent's MCP integration. Launching Unity from the Hub will prevent the MCP server from connecting.

  • 📂 Per-project setup: If your agent supports it, configure the MCP server in your per-project settings. This allows you to seamlessly switch between Unity projects.

  • ⚙️ Command-line arguments: You can pass additional arguments to Unity for advanced scenarios like running in -batchmode or -nographics for CI/CD pipelines. Add a -- separator before the Unity-specific arguments:

    json
    {
      "mcpServers": {
        "unity": {
          "command": "npx",
          "args": [
            "-y",
            "@nurture-tech/unity-mcp-runner"
            "-unityPath",
            "<path to unity editor>",
            "-projectPath",
            ".",
            "--",
            "-batchmode",
            "-nographics"
          ]
        }
      }
    }
  • ⚠️ Important: Do not use the -logFile command-line argument. The MCP server relies on Unity's standard output for communication.

  • 🖥️ Split screen for vision: For tools like screenshot, ensure the Unity editor is visible on your screen otherwise it will end up screenshotting the foreground window.

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "nurture-tech-unity-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "unity-mcp-server"
      ]
    }
  }
}

Union ♾️ - Unity MCP 服务器 MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Union ♾️ - Unity MCP 服务器 verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Union ♾️ - Unity MCP 服务器 als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Union ♾️ - Unity MCP 服务器 an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "nurture-tech-unity-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "unity-mcp-server"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Union ♾️ - Unity MCP 服务器. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Union ♾️ - Unity MCP 服务器.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Union ♾️ - Unity MCP 服务器?
Union ♾️ - Unity MCP 服务器
Jo. Ech hunn et gelies.
Dat hunn ech mat Union ♾️ - Unity MCP 服务器 fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Union ♾️ - Unity MCP 服务器 benotzt?

Union ♾️ - Unity MCP 服务器 ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Union ♾️ - Unity MCP 服务器 MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Union ♾️ - Unity MCP 服务器 mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Union ♾️ - Unity MCP 服务器 MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Union ♾️ - Unity MCP 服务器 verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Union ♾️ - Unity MCP 服务器 MCP mat TypingMind?

Union ♾️ - Unity MCP 服务器 leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Union ♾️ - Unity MCP 服务器 MCP an TypingMind zur Verfügung?

Union ♾️ - Unity MCP 服务器 stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Union ♾️ - Unity MCP 服务器 MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Union ♾️ - Unity MCP 服务器 eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇