mcp-registry/mcp-unity

    ==================
      
       /// MCP ///
      /// MCP ///
        
    ==================
        
    [server:online]
    [protocol:ready]

mcp-unity

by CoderGamester

Model Context Protocol (MCP) plugin that bridges Unity Editor with a Node.js-based MCP server, letting AI assistants (Claude, Windsurf, Cursor, Copilot, etc.) programmatically manipulate scenes, assets and tests inside Unity.

824
104
Open Source

Installation

1. Prerequisites
• Unity 2021.3 LTS or newer (any edition)
• .NET Standard 2.1 compatibility enabled in Player Settings
2. Add the package to your project
a) Unity Package Manager (recommended) – Open Unity → Window → Package Manager – Click “+” → “Add package from Git URL… ” – Enter: https://github.com/CoderGamester/mcp-unity.git – Press Add. The MCP assemblies will compile automatically. b) Git sub-module (alternative) $ git submodule add https://github.com/CoderGamester/mcp-unity.git Packages/com.mcp.unity $ git submodule update --init --recursive Unity will detect the package on refresh. c) Manual – Download the latest release .unitypackage from the GitHub Releases page and import it into the Editor.
3. Configure LLM credentials
– In Unity, go to Edit → Project Settings → MCP – Fill in the API keys you intend to use (e.g. OPENAI_API_KEY, GEMINI_API_KEY, CLAUDE_API_KEY, DEEPSEEK_API_KEY, GROK_API_KEY). – Keys can also be set as environment variables or in a Resources/MCPSettings.asset.
4. Test the connection
– Open Window → MCP → Playground – Choose a provider, type a prompt, and click “Send”. Returned JSON should appear in the console.
5. Build settings
– Ensure “Enable unsafe code” is ON (needed for some JSON utilities). – For WebGL disable Threads; other targets work out-of-the-box.

Documentation

License: MIT License
Updated 7/30/2025

Table of Contents