Co

CoderGamester/mcp-unity

πŸ“‡ #️⃣ 🏠 MCP Server for Unity3d Game Engine integration for game development

##Unity3D##GameDevelopment##ServerIntegration
PublisherCoderGamester/mcp-unity
Submitted date4/19/2025

Overview: MCP Unity Editor (Game Engine)

Title

MCP Unity Editor (Game Engine)

How to Use

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

Installation Steps:

  1. Install Unity MCP Server Package via Unity Package Manager (Window > Package Manager > Add package from git URL: https://github.com/CoderGamester/mcp-unity.git).
  2. Install Node.js 18 or later from the official download page.

Key Features

IDE Integration

  • Automatically adds Unity’s Library/PackedCache folder to VSCode-like IDEs for improved code intelligence, autocompletion, and dependency understanding.

MCP Server Tools

  • Execute Menu Items: Run Unity functions tagged with MenuItem.
  • Select GameObjects: Choose objects in the hierarchy by path or ID.
  • Update Components: Modify or add components to GameObjects.
  • Add Packages: Install new packages via Unity Package Manager.
  • Run Tests: Execute tests using Unity Test Runner.
  • Notify Messages: Display messages in the Unity Editor.
  • Add Assets to Scene: Place assets from the AssetDatabase into scenes.

MCP Server Resources

  • Retrieve lists of menu items, scene hierarchies, GameObject details, logs, packages, assets, and tests to facilitate AI-assisted workflows.

Use Cases

  • AI-Assisted Development: Let AI agents automate Unity tasks like creating GameObjects, adding components, or running tests.
  • Enhanced Debugging: Access Unity logs and scene hierarchies via AI prompts.
  • Project Management: Manage packages and assets through natural language commands.
  • Testing Automation: Run and list tests programmatically with AI guidance.

MCP Unity streamlines Unity workflows by integrating AI capabilities directly into the editor, making development faster and more intuitive.

Visit More

View All