mcp-unity

This repository provides an MCP (Model Context Protocol) server implementation for Unity, facilitating communication and integration between Unity projects and other systems, licensed under the MIT license. This repository provides

424
22

MCP Unity

MCP Unity is an implementation of the Model Context Protocol for Unity Editor, enabling AI assistants to interact with Unity projects. It bridges Unity and a Node.js server, allowing AI agents to execute operations within the Unity Editor.

Features: It provides tools like execute_menu_item, select_object, package_manager, run_tests, and notify_message. It also offers resources like get_menu_items, get_hierarchy, get_console_logs, get_packages, get_assets, and get_tests.

Requirements: Unity 2022.3+, Node.js 18+, and npm 9+.

Installation: Install the Unity MCP Server package via the Unity Package Manager, install Node.js, and configure the AI LLM Client.

Usage: Start the WebSocket server via Tools > MCP Unity > Server Window. The default WebSocket port is 8080, configurable in the Unity Editor or via the UNITY_PORT environment variable. Debugging involves building the Node.js server and using the MCP Inspector.

Contributions are welcome under the MIT License.

Repository

CO
CoderGamester

CoderGamester/mcp-unity

Created

March 13, 2025

Updated

March 28, 2025

Language

C#

Category

Developer Tools