Unity plugin for AI-assisted development via Model Context Protocol
Top 43.0% on sourcepulse
This package integrates AI assistants with the Unity Editor via the Model Context Protocol (MCP), enabling AI agents to interact with and manipulate Unity projects. It targets game developers and AI engineers seeking to leverage AI for tasks like code generation, scene manipulation, and asset management within Unity.
How It Works
MCP Unity establishes a WebSocket connection between a Node.js server and the Unity Editor. The Node.js server acts as a bridge, translating AI agent commands into Unity Editor actions using the MCP specification. This allows AI models to execute Unity-specific operations like creating GameObjects, updating components, or running tests.
Quick Start & Requirements
https://github.com/CoderGamester/mcp-unity.git
via Unity Package Manager.Highlighted Details
execute_menu_item
, select_gameobject
, update_component
, add_package
, run_tests
, send_console_log
, add_asset_to_scene
.unity://menu-items
, unity://hierarchy
, unity://gameobject/{id}
, unity://logs
, unity://packages
, unity://assets
, unity://tests/{testMode}
for AI introspection.Maintenance & Community
gamester7178
Licensing & Compatibility
Limitations & Caveats
run_tests
tool may fail when "Reload Domain" is enabled in Play Mode settings; disabling it is a workaround.2 days ago
1 day