Unity MCP Template logo

Unity MCP Template

Community
HuntNight

AI + Unity3D integration via Model Context Protocol — real-time Unity Editor control, C# code execution, automated screenshots, scene analysis, system diagnostics, and Hot Reload modules.

PublisherHuntNight
Repositoryunity-mcp-advanced
LanguageC#
Forks
6
Stars
17
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Unity MCP Template exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    17 stars and 6 forks from the linked repository.

Unity MCP Advanced

unity-mcp-advanced is a Unity Editor bridge for MCP clients such as Cursor. It exposes scene inspection, screenshots, Play Mode control, and controlled C# execution through a small Node MCP server plus a Unity Editor HTTP bridge.

What changed in this refactor

  • One MCP entrypoint at unity-mcp/index.js.
  • One transport path from MCP to Unity.
  • Unified response contract: success, messages, data, logs, meta.
  • Explicit scene scopes for queries: active_scene, all_loaded_scenes, dont_destroy_on_load, all_loaded_objects.
  • New smoke and inspection tools: unity_health, unity_list_scenes, unity_find_objects, unity_inspect_object.
  • Direct edit tools for runtime workflows: unity_set_transform, unity_set_light, unity_set_camera, unity_set_active.
  • unity_camera_screenshot can now render from an existing preview camera.
  • unity_execute now respects safe_mode, reports structured error codes, and resolves more runtime assemblies before execution.

Layout

text
unity-mcp-advanced/
├── unity-mcp/
│   ├── docs/
│   ├── index.js
│   ├── tools/
│   │   ├── unity.js
│   │   └── terminal.js
│   ├── utils/
│   └── tools/unity-bridge/unity-extension/Editor/
└── README.md

Setup

  1. Install Node.js 18+.
  2. Run npm install in unity-mcp/.
  3. Open the Unity project and install the Unity package from unity-mcp/tools/unity-bridge/unity-extension/package.json.
  4. Open Window -> Unity Bridge in Unity and start the server.
  5. Point Cursor MCP config to unity-mcp/index.js.

Example MCP config:

json
{
  "mcpServers": {
    "unity-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/unity-mcp/index.js"
      ]
    }
  }
}

Main tools

  • unity_health: connectivity and bridge diagnostics.
  • unity_list_scenes: loaded scenes plus DontDestroyOnLoad.
  • unity_find_objects: lookup by name, path, component, tag, instance id.
  • unity_inspect_object: details for one object, with optional curated component values.
  • unity_set_transform, unity_set_light, unity_set_camera, unity_set_active: direct scene edits without snippets.
  • unity_scene_hierarchy: scoped hierarchy traversal.
  • unity_scene_grep: DSL query over the same scoped source.
  • unity_scene_radius: spatial query within the selected scope.
  • unity_execute: compile or execute a C# snippet inside the editor.
  • unity_screenshot and unity_camera_screenshot: visual verification, including existing camera capture.

Notes

  • Scene tools no longer silently search only the active scene unless scope is explicitly set that way.
  • DontDestroyOnLoad objects are discoverable without using unity_execute.
  • Errors now come back as regular diagnostic responses with structured errorCode values.

Installation

TypingMind
{
  "mcpServers": {
    "unity-mcp-advanced": {
      "command": "node",
      "args": [
        "/path/to/your/project/advanced-mcp/index.js"
      ]
    }
  }
}

Use Unity MCP Template MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Unity MCP Template is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Unity MCP Template as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Unity MCP Template MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "unity-mcp-advanced": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Unity MCP Template MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Unity MCP Template MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Unity MCP Template to help me with this task?
Unity MCP Template
Sure. I read it.
Here is what I found using Unity MCP Template.

Frequently asked questions

What is the Unity MCP Template MCP server used for?

Unity MCP Template is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Unity MCP Template MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Unity MCP Template with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Unity MCP Template MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Unity MCP Template connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Unity MCP Template MCP to TypingMind?

Unity MCP Template runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Unity MCP Template MCP provide in TypingMind?

Unity MCP Template exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Unity MCP Template MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Unity MCP Template requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇