CoplayDev/unity-mcp

Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.

What it solves

它消除了遊戲開發中的手動摩擦,讓開發者能以自然語言控制 Unity 編輯器。開發者不必手動瀏覽選單或操作物件,而是可以使用 AI 助手自動化重複性任務與複雜的場景設定。

How it works

此專案實作 Model Context Protocol(MCP),充當 AI 助手(如 Claude、Cursor 或 VS Code)與 Unity 編輯器之間的橋樑。它提供 47 個專門的工具入口點,讓大型語言模型(LLM)直接在編輯器內執行動作,例如建立 GameObject、編輯 C# 腳本以及管理資產。

Who it’s for

使用 Unity(2021.3 LTS 至 6.x 版)的遊戲開發者,想要將 LLM 驅動的自動化整合到開發工作流程中。

Highlights

  • Broad Compatibility: Works with any MCP-compliant client, including Claude Desktop, Cursor, Windsurf, and Gemini CLI.
  • Comprehensive Control: Tools cover scene creation, script editing, asset management, testing, profiling, and building.
  • Advanced Routing: Supports multi-instance routing for managing multiple Unity projects simultaneously.
  • Developer Friendly: Includes Roslyn script validation to ensure generated code is correct.