This Unity package facilitates communication between Unity and LLMs via the Model Context Protocol, enabling developers to automate workflows, manipulate assets, and control the Unity Editor programmatically. This Unity package
This Unity package facilitates communication between Unity and Large Language Models (LLMs) like Claude Desktop via the Model Context Protocol (MCP). It acts as a bridge, enabling Unity to send commands to and receive responses from MCP-compliant tools, automating workflows and manipulating assets.
The package provides a bidirectional communication channel between Unity (via C#) and a Python server, enabling asset management, scene control, material editing, script integration, and editor automation. Developers can leverage LLMs to enhance Unity projects or automate repetitive tasks.
Installation requires Unity 2020.3 LTS or newer (URP projects only), Python 3.12 or newer, and the uv package manager. Key features include bidirectional communication, asset management (importing, instantiating prefabs), scene control (modifying scenes and game objects), material editing, script integration (C# script creation/updates), and editor automation (building projects, entering play mode). Licensed under the MIT License, contributions are welcome via forking and pull requests.
justinpbarnett/unity-mcp
March 18, 2025
March 28, 2025
C#