unity-mcp-server

nurture-tech/unity-mcp-server

3.4

If you are the rightful owner of unity-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Union ♾️ - The Unity MCP Server is a Model Context Protocol server designed for Unity, offering advanced features for seamless integration and enhanced functionality.

Union ♾️ - The Unity MCP Server is a cutting-edge Model Context Protocol server tailored for Unity, providing a robust platform for developers to enhance their Unity projects. With its multimodal vision capabilities, the server allows agents to perceive the scene, inspect asset thumbnails, and view through any camera. It offers powerful search functionalities that extend beyond the project panel, enabling simultaneous searches across hierarchy and project assets. The server also boasts superior code analysis by leveraging Unity's own compiler, ensuring more accurate results than traditional linters. Quick to set up, Union requires only a single `mcp.json` configuration file to get started. It is highly extensible, allowing developers to add project-specific tools with minimal effort. The server is always kept up-to-date with the latest MCP protocol version, ensuring compatibility and access to the latest features.

Features

  • Multimodal Vision: Allows agents to see the scene, inspect asset thumbnails, and view through any camera.
  • Powerful Search: Enables simultaneous searches across hierarchy and project assets.
  • Superior Code Analysis: Utilizes Unity's compiler for more accurate code analysis.
  • Quick Start: Easy setup with a single `mcp.json` configuration file.
  • Extensible: Supports adding project-specific tools with minimal boilerplate.

Tools

  1. get_asset_contents

    Get the full contents of an asset or sub-asset.

  2. copy_asset

    Copy an asset to a new path.

  3. import_asset

    Import an asset from the filesystem into Unity.

  4. get_asset_importer

    Get the importer settings for an asset.

  5. open_prefab

    Open a Unity prefab in isolation mode for editing.

  6. open_scene

    Open a scene.

  7. close_scene

    Close an open scene.

  8. save_scene

    Save the current scene.

  9. get_game_object

    Get the details of a game object in a loaded scene or prefab.

  10. test_active_scene

    Test the active scene by entering play mode.

  11. create_script

    Create or replace a C# code file and check for compilation.

  12. execute_code

    Execute code inside the Unity editor.

  13. get_type_info

    Get public fields and methods on a Unity type.

  14. search

    Search project assets and scene objects.

  15. get_state

    Get the state of the Unity Editor.

  16. get_selection

    Get the objects currently selected in the editor.

  17. focus_game_object

    Focus on a game object in the scene view.

  18. screenshot

    Retrieve a preview of what is focused in the scene view.