Logo van Union ♾️ - Unity MCP 服务器

Union ♾️ - Unity MCP 服务器

Organisatie
nurture-tech

Union ♾️ - The Unity MCP Server

Uitgevernurture-tech
Repositoryunity-mcp-server
TaalC#
Forks
4
Sterren
32
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Union ♾️ - Unity MCP 服务器 biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    32 sterren en 4 forks in de gekoppelde 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.

Installatie

TypingMind
Vereisten:

Node.js 18+

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

Gebruik Union ♾️ - Unity MCP 服务器 MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Union ♾️ - Unity MCP 服务器 is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Union ♾️ - Unity MCP 服务器 toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Union ♾️ - Unity MCP 服务器.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "nurture-tech-unity-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "unity-mcp-server"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Union ♾️ - Unity MCP 服务器 in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Union ♾️ - Unity MCP 服务器 in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Union ♾️ - Unity MCP 服务器 gebruiken om me hiermee te helpen?
Union ♾️ - Unity MCP 服务器
Zeker. Ik heb het gelezen.
Dit vond ik met Union ♾️ - Unity MCP 服务器.

Veelgestelde vragen

Waarvoor wordt de MCP-server Union ♾️ - Unity MCP 服务器 gebruikt?

Union ♾️ - Unity MCP 服务器 is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Union ♾️ - Unity MCP 服务器 MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Union ♾️ - Unity MCP 服务器 gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Union ♾️ - Unity MCP 服务器 MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Union ♾️ - Unity MCP 服务器 verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Union ♾️ - Unity MCP 服务器 MCP met TypingMind?

Union ♾️ - Unity MCP 服务器 werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Union ♾️ - Unity MCP 服务器 MCP in TypingMind?

Union ♾️ - Unity MCP 服务器 biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Union ♾️ - Unity MCP 服务器 MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Union ♾️ - Unity MCP 服务器 authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇