UnityMCPIntegration

Developer tools

Enable AI Agents to Control Unity.

Your AI app calls the UnityMCPIntegration MCP server, which does the work through tools like get_editor_state, get_current_scene_info, get_game_objects_info and execute_editor_command and sends the result back to the chat.

About UnityMCPIntegration

UnityMCPIntegration is a community MCP server from quazaai, filed in our directory under developer tools. Enable AI Agents to Control Unity.

UnityMCPIntegration runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

The README for UnityMCPIntegration lists tools such as get_editor_state, get_current_scene_info, get_game_objects_info and execute_editor_command, which your AI app can call once the server is connected.

At a glance

Publisher
quazaai (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
C#
License
MIT
GitHub stars
155

Tools UnityMCPIntegration gives your AI app

  • get_editor_stateGet comprehensive information about the Unity project and editor state.
  • get_current_scene_infoGet detailed information about the current scene.
  • get_game_objects_infoGet information about specific GameObjects in the scene.
  • execute_editor_commandExecute C# code directly in the Unity Editor.
  • get_logsRetrieve and filter Unity console logs.
  • verify_connectionCheck if there's an active connection to Unity Editor.
  • read_fileRead contents of a file in your Unity project.
  • read_multiple_filesRead multiple files at once.
  • write_fileCreate or overwrite a file with new content.
  • edit_fileMake targeted edits to existing files with diff preview.
  • list_directoryGet a listing of files and folders in a directory.
  • directory_treeGet a hierarchical view of directories and files.
  • search_filesFind files matching a search pattern.
  • get_file_infoGet metadata about a specific file or directory.
  • find_assets_by_typeFind all assets of a specific type (e.g. Material, Prefab).
  • list_scriptsGet a listing of all C# scripts in the project.

Tool names as the UnityMCPIntegration README lists them. Your AI app shows the live list once UnityMCPIntegration is connected.

How to set up UnityMCPIntegration

  1. Install Node.js on the machine that runs your AI app, because UnityMCPIntegration starts with npx and downloads its package on first run.
  2. Check the UnityMCPIntegration README for keys or settings; the registry lists none that UnityMCPIntegration requires.
  3. Add UnityMCPIntegration to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the UnityMCPIntegration tools to confirm the connection.
  5. Run one read-only task with UnityMCPIntegration first, such as a call to get_editor_state, before you allow anything that writes or sends.

UnityMCPIntegration compared with similar servers

  • Vnsh by raullenchai has fewer GitHub stars than UnityMCPIntegration (155 against 155); both are community servers, and both run locally.
  • Claude Code Multi AI by RaiAnsar has fewer GitHub stars than UnityMCPIntegration (155 against 155); both are community servers, and both run locally.
  • Cesium MCP Dev by gaopengbin has fewer GitHub stars than UnityMCPIntegration (154 against 155); both are community servers, and both run locally.

Before you connect UnityMCPIntegration

  • Give UnityMCPIntegration its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each UnityMCPIntegration tool call until you trust what it does with them.
  • Treat text that UnityMCPIntegration fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for UnityMCPIntegration on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for UnityMCPIntegration

How marketing and sales teams put UnityMCPIntegration to work, by company size. Pick the size closest to yours and start UnityMCPIntegration on one use case.

Small business

  • A small business with a developer can use UnityMCPIntegration to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask UnityMCPIntegration to explain and fix a marketing site issue without context switching between tools.
  • UnityMCPIntegration runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use UnityMCPIntegration to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect UnityMCPIntegration to keep scripts and automations documented and versioned as they change.
  • Start with get_editor_state and get_current_scene_info, the tools UnityMCPIntegration lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise engineering teams can roll out UnityMCPIntegration with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on UnityMCPIntegration so web and marketing engineering share one reviewed way of working with AI.
  • UnityMCPIntegration is a community server, so have security review the code and pin a version before UnityMCPIntegration touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

UnityMCPIntegration README

From quazaai/UnityMCPIntegration on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

🚀 Advacned Unity MCP Integration

This package provides a seamless integration between Model Context Protocol (MCP) and Unity Editor, allowing AI assistants to understand and interact with your Unity projects in real-time. With this integration, AI assistants can access information about your scene hierarchy, project settings, and execute code directly in the Unity Editor context.

📚 Features

  • Browse and manipulate project files directly
  • Access real-time information about your Unity project
  • Understand your scene hierarchy and game objects
  • Execute C# code directly in the Unity Editor
  • Monitor logs and errors
  • Control the Editor's play mode
  • Wait For Code Execution

🚀 Getting Started

Prerequisites
  • Unity 2021.3 or later
  • Node.js 18+ (for running the MCP server)
Installation
1. Install Unity Package

You have several options to install the Unity package:

Option A: Package Manager (Git URL)

  1. Open the Unity Package Manager (Window > Package Manager)
  2. Click the + button and select Add package from git URL...
  3. Enter the repository URL: https://github.com/quazaai/UnityMCPIntegration.git
  4. Click Add

Option B: Import Custom Package

  1. Clone this repository or download it as a unityPackage
  2. In Unity, go to Assets > Import Package > Custom Package
  3. Select the UnityMCPIntegration.unitypackage file
2. Set up the MCP Server

You have two options to run the MCP server:

Option A: Run the server directly

  1. Navigate to the mcpServer (likely <path-to-project>\Library\PackageCache\com.quaza.unitymcp@d2b8f1260bca\mcpServer\) directory
  2. Install dependencies:
    npm install
    
  3. Run the server:
    node build/index.js
    

Option B: Add to MCP Host configuration

Add the server to your MCP Host configuration for Claude Desktop, Custom Implementation etc

{
  "mcpServers": {
    "unity-mcp-server": {
      "command": "node",
      "args": [
        "path-to-project>\\Library\\PackageCache\\com.quaza.unitymcp@d2b8f1260bca\\mcpServer\\mcpServer\\build\\index.js"
      ],
      "env": {
        "MCP_WEBSOCKET_PORT": "5010"
      }
    }
  }
}
Demo Video
Installing via Smithery

To install Unity MCP Integration for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @quazaai/unitymcpintegration --client claude
🔧 Usage
Debugging and Monitoring

You can open the MCP Debug window in Unity to monitor the connection and test features:

  1. Go to Window > MCP Debug
  2. Use the debug window to:
    • Check connection status
    • Test code execution
    • View logs
    • Monitor events
Available Tools

The Unity MCP integration provides several tools to AI assistants:

Unity Editor Tools
  • get_editor_state: Get comprehensive information about the Unity project and editor state
  • get_current_scene_info: Get detailed information about the current scene
  • get_game_objects_info: Get information about specific GameObjects in the scene
  • execute_editor_command: Execute C# code directly in the Unity Editor
  • get_logs: Retrieve and filter Unity console logs
  • verify_connection: Check if there's an active connection to Unity Editor
Filesystem Tools
  • read_file: Read contents of a file in your Unity project
  • read_multiple_files: Read multiple files at once
  • write_file: Create or overwrite a file with new content
  • edit_file: Make targeted edits to existing files with diff preview
  • list_directory: Get a listing of files and folders in a directory
  • directory_tree: Get a hierarchical view of directories and files
  • search_files: Find files matching a search pattern
  • get_file_info: Get metadata about a specific file or directory
  • find_assets_by_type: Find all assets of a specific type (e.g. Material, Prefab)
  • list_scripts: Get a listing of all C# scripts in the project

File paths can be absolute or relative to the Unity project's Assets folder. For example, "Scenes/MyScene.unity" refers to <project>/Assets/Scenes/MyScene.unity.

🛠️ Architecture

The integration consists of two main components:

  1. Unity Plugin (C#): Resides in the Unity Editor and provides access to Editor APIs
  2. MCP Server (TypeScript/Node.js): Implements the MCP protocol and communicates with the Unity plugin

Communication between them happens via WebSocket, transferring JSON messages for commands and data.

File System Access

The Unity MCP integration now includes powerful filesystem tools that allow AI assistants to:

  • Browse, read, and edit files in your Unity project
  • Create new files and directories
  • Search for specific files or asset types
  • Analyze your project structure
  • Make targeted code changes with diff previews

All file operations are restricted to the Unity project directory for security. The system intelligently handles both absolute and relative paths, always resolving them relative to your project's Assets folder for convenience.

Example usages:

  • Get a directory listing: list_directory(path: "Scenes")
  • Read a script file: read_file(path: "Scripts/Player.cs")
  • Edit a configuration file: edit_file(path: "Resources/config.json", edits: [{oldText: "value: 10", newText: "value: 20"}], dryRun: true)
  • Find all materials: find_assets_by_type(assetType: "Material")

👥 Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request
Development Setup

Unity Side:

  • Open the project in Unity
  • Modify the C# scripts in the UnityMCPConnection/Editor directory

Server Side:

  • Navigate to the mcpServer directory
  • Install dependencies: npm install
  • Make changes to the TypeScript files in the src directory
  • Build the server: npm run build
  • Run the server: node build/index.js

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.

Questions about UnityMCPIntegration

What is the UnityMCPIntegration MCP server?

Enable AI Agents to Control Unity. UnityMCPIntegration is maintained by quazaai on GitHub at quazaai/UnityMCPIntegration, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the UnityMCPIntegration MCP server?

Add UnityMCPIntegration to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio unitymcpintegration -- npx -y @smithery/cli. To run UnityMCPIntegration this way you need Node.js installed.

Does UnityMCPIntegration need an API key?

The registry lists no required keys for UnityMCPIntegration. Check the UnityMCPIntegration README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is UnityMCPIntegration an official MCP server?

No. UnityMCPIntegration is a community server maintained by quazaai. Community servers can be excellent; read the code and the open issues before you give UnityMCPIntegration access to company data.

What license is UnityMCPIntegration under?

UnityMCPIntegration is released under the MIT license, according to its GitHub repository. The license covers the code of UnityMCPIntegration; the service it connects to has its own terms.