Labsco
nurture-tech logo

Union - Unity MCP Server

β˜… 33

from nurture-tech

An MCP server for managing and interacting with Unity projects.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

[!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

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.

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.