# coplaydev/unity-mcp

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/coplaydev-unity-mcp).**

6,070 stars · 741 forks · C# · mit

## Links

- GitHub: https://github.com/CoplayDev/unity-mcp
- Homepage: https://www.coplay.dev
- awesome-repositories: https://awesome-repositories.com/repository/coplaydev-unity-mcp.md

## Topics

`ai` `ai-integration` `anthropic` `claude` `copilot` `cursor` `game-development` `gamedev` `gemini` `llm` `mcp` `model-context-protocol` `openai` `unity` `unity3d` `videogames`

## Description

Unity MCP is a plugin that connects the Unity Editor to AI assistants through the Model Context Protocol, enabling natural language control over scene manipulation, object creation, and editor workflows. It allows developers to generate C# scripts, modify GameObjects and components, create UI layouts, and manage assets by issuing commands through an AI interface, effectively turning the editor into a conversational development environment.

The plugin distinguishes itself through a comprehensive automation system that can execute multi-step tasks from a design document, record and replay editor actions, and run headless tests across multiple Unity versions. It provides granular control over AI behavior through configurable execution modes, tool groups, and per-tool toggles, while supporting remote editor control, user session isolation, and API key authentication for secure access. The system also includes semantic validation of generated scripts and the ability to integrate external MCP servers for extended capabilities like 3D model generation.

Beyond core editor control, the plugin offers capabilities for generating 3D assets from text prompts, adapting scene themes, analyzing scenes for optimization, and creating asset variations. It supports multi-instance management for routing calls to specific editor sessions, and provides tools for accessing Unity documentation, explaining concepts, and refining prompts with project context. The configuration surface includes options for choosing AI models, defining custom project rules, and managing API keys directly within the editor interface.

## Tags

### Artificial Intelligence & ML

- [AI Assistants](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-assistants.md) — Provides an AI assistant that controls the Unity Editor through natural language commands. ([source](https://docs.coplay.dev/coplay-mcp/claude-code-guide.md))
- [Game Asset Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-powered-media-organizers/game-asset-managers.md) — Creates, modifies, and organizes Unity assets through commands issued by an AI assistant. ([source](https://docs.coplay.dev/coplay-mcp/guide.md))
- [Code Generation Assistants](https://awesome-repositories.com/f/artificial-intelligence-ml/code-generation-assistants.md) — Generates Unity C# scripts from natural language prompts within the editor. ([source](https://docs.coplay.dev/essentials/best-practices.md))
- [Natural Language Interface Generators](https://awesome-repositories.com/f/artificial-intelligence-ml/natural-language-interface-generators.md) — Interprets structural prompts to create complete UI windows with layout, hierarchy, and components. ([source](https://docs.coplay.dev/tutorials/Creating-UI.md))
- [MCP Server Connections](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/model-integration-serving/model-integration-interfaces/model-context-protocol/mcp-server-management/mcp-server-connections.md) — Configures additional Model Context Protocol servers to extend the AI's capabilities, such as connecting to a 3D modeling tool. ([source](https://docs.coplay.dev/essentials/settings.md))
- [Action Approval Gates](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-action-frameworks/action-approval-gates.md) — Pauses AI-generated changes every 20 actions to request user approval before continuing, ensuring user oversight. ([source](https://docs.coplay.dev/tutorials/chess.md))
- [Context Scope Selectors](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-assistant-configurations/context-scope-selectors.md) — Selects which project information the AI assistant can access, such as file structure, scene data, or Git history. ([source](https://docs.coplay.dev/essentials/configuration.md))
- [AI Code Reviewers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers.md) — Ships an AI code reviewer that analyzes and provides feedback on Unity scripts. ([source](https://docs.coplay.dev/essentials/best-practices.md))
- [AI Model Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-model-configurations.md) — Selects the underlying AI model from providers like OpenAI or Anthropic to optimize performance for specific Unity development tasks. ([source](https://docs.coplay.dev/essentials/configuration.md))
- [On-Demand Documentation Providers](https://awesome-repositories.com/f/artificial-intelligence-ml/documentation-retrieval-engines/rag-document-retrieval/technical-documentation-retrieval/on-demand-documentation-providers.md) — Provides the AI with local or web-retrieved documentation for unfamiliar frameworks so it can consult them during tasks. ([source](https://docs.coplay.dev/essentials/settings.md))
- [External Tool Integration](https://awesome-repositories.com/f/artificial-intelligence-ml/external-tool-integration.md) — Connects to external MCP servers to extend AI capabilities beyond Unity development. ([source](https://docs.coplay.dev/essentials/best-practices.md))
- [Project Context Rules](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-configurations/project-context-rules.md) — Creates specialized instructions saved to a project file that the AI reads as additional context before taking any action. ([source](https://docs.coplay.dev/essentials/settings.md))
- [3D Scene Generators](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/generative-ai/text-to-image-synthesis/media-synthesis-from-text/3d-scene-generators.md) — Produces complete 3D scenes, including objects, materials, and layout, from a text description using AI. ([source](https://docs.coplay.dev/coplay-mcp/claude-code-guide.md))
- [3D Asset Generators](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation-models/3d-asset-generators.md) — Creates 3D models, scenes, and materials by interpreting natural language descriptions through the Model Context Protocol. ([source](https://docs.coplay.dev/tutorials/blender-mcp.md))

### Part of an Awesome List

- [Script Debugging and Repair](https://awesome-repositories.com/f/awesome-lists/devtools/automation-and-scripting/script-debugging-and-repair.md) — Analyzes and repairs Unity scripts by describing issues to an AI assistant that can modify code and components directly. ([source](https://docs.coplay.dev/coplay-mcp/claude-code-guide.md))
- [Generative 3D Modeling](https://awesome-repositories.com/f/awesome-lists/ai/generative-3d-modeling.md) — Creates unique game-ready 3D models using AI services and integrates them into existing scenes. ([source](https://docs.coplay.dev/tutorials/blender-mcp.md))

### Development Tools & Productivity

- [Editor Remote Control](https://awesome-repositories.com/f/development-tools-productivity/command-line-interfaces/editor-remote-control.md) — Controls the Unity Editor remotely from an MCP client for asset management and script editing. ([source](https://docs.coplay.dev/coplay-mcp/guide.md))
- [Intent-Based Script Generation](https://awesome-repositories.com/f/development-tools-productivity/terminal-automation/intent-based-script-generation.md) — Generates Unity scripts from natural language prompts tailored to the project's needs. ([source](https://docs.coplay.dev/getting-started/index.md))
- [Programmatic Script Editors](https://awesome-repositories.com/f/development-tools-productivity/automation-scripts/programmatic-script-editors.md) — Modifies C# scripts in the Unity Editor using instructions from an MCP client. ([source](https://docs.coplay.dev/coplay-mcp/guide.md))
- [Editor Setting Toggles](https://awesome-repositories.com/f/development-tools-productivity/editor-setting-toggles.md) — Provides per-tool toggle switches in the editor interface for granular control over AI capabilities. ([source](https://coplaydev.github.io/unity-mcp/contributing/dev-setup))
- [Semantic Analyzers](https://awesome-repositories.com/f/development-tools-productivity/script-validators/semantic-analyzers.md) — Performs complete semantic validation of generated C# scripts, catching undefined namespaces, types, and methods before compilation. ([source](https://coplaydev.github.io/unity-mcp/guides/roslyn))
- [Mode Switchers](https://awesome-repositories.com/f/development-tools-productivity/task-execution/ai-task-execution-engines/mode-switchers.md) — Provides a mode switcher that changes how the AI executes tasks, from automatic to recording or plan-following. ([source](https://docs.coplay.dev/essentials/configuration.md))
- [Autonomous Request Limiters](https://awesome-repositories.com/f/development-tools-productivity/type-aware-autocompletion/autonomous-request-limiters.md) — Activates AI-powered code completion as you type and controls how many autonomous requests are made before confirmation. ([source](https://docs.coplay.dev/essentials/settings.md))

### Game Development

- [Scene Object Manipulators](https://awesome-repositories.com/f/game-development/scene-object-manipulators.md) — Creates, positions, and configures GameObjects, components, materials, and UI elements through AI-driven commands. ([source](https://docs.coplay.dev/coplay-mcp/claude-code-guide.md))

### Security & Cryptography

- [API Key Authentication](https://awesome-repositories.com/f/security-cryptography/api-key-authentication.md) — Provides the API key needed to authenticate requests to an AI provider for editor interactions. ([source](https://docs.coplay.dev/essentials/settings.md))
- [In-Editor Key Entry](https://awesome-repositories.com/f/security-cryptography/api-key-authentication/in-editor-key-entry.md) — Lets users enter an API key in the Unity Editor window to connect to a remote-hosted server. ([source](https://coplaydev.github.io/unity-mcp/guides/remote-server-auth))
- [Access Authentication](https://awesome-repositories.com/f/security-cryptography/user-access-management/access-authentication.md) — Validates API keys against an external endpoint to restrict server access to authorized users only. ([source](https://coplaydev.github.io/unity-mcp/guides/remote-server-auth))

### Business & Productivity Software

- [Tool Group Configurators](https://awesome-repositories.com/f/business-productivity-software/group-management/tool-group-configurators.md) — Exposes a built-in meta-tool that an AI assistant can call to list, activate, deactivate, or reset tool groups. ([source](https://coplaydev.github.io/unity-mcp/contributing/dev-setup))

### DevOps & Infrastructure

- [Plan-Driven Task Executors](https://awesome-repositories.com/f/devops-infrastructure/documentation-automation/task-planning-files/plan-driven-task-executors.md) — Reads tasks from a design document and executes them to autonomously build a game project. ([source](https://docs.coplay.dev/essentials/modes.md))

### Education & Learning Resources

- [Unity Q&A Assistants](https://awesome-repositories.com/f/education-learning-resources/educational-resources/reference-and-media/books-docs-reference/documentation/frequently-asked-questions/unity-q-a-assistants.md) — Provides an AI assistant that answers Unity-specific questions within the editor. ([source](https://docs.coplay.dev/essentials/best-practices.md))

### Programming Languages & Runtimes

- [UI Event Wiring](https://awesome-repositories.com/f/programming-languages-runtimes/native-to-script-invocations/ui-event-wiring.md) — Provides a tool to wire UI element events to C# script methods within the Unity Editor. ([source](https://docs.coplay.dev/tutorials/Creating-UI.md))

### Software Engineering & Architecture

- [Cross-Version Testing](https://awesome-repositories.com/f/software-engineering-architecture/development-methodologies/engineering-best-practices/development-process-methodologies/development-workflows/cross-version-testing.md) — Runs the package's test suite against multiple Unity editor versions in parallel to catch version-specific breaks. ([source](https://coplaydev.github.io/unity-mcp/contributing/dev-setup))
- [Execution Modes](https://awesome-repositories.com/f/software-engineering-architecture/execution-control/execution-modes.md) — Selects one of six operational modes that control the AI's speed, safety, automation depth, and interaction style for a given task. ([source](https://docs.coplay.dev/essentials/modes.md))

### Testing & Quality Assurance

- [Headless Editor Testing](https://awesome-repositories.com/f/testing-quality-assurance/general-testing-utilities/test-utilities-assertions/test-lifecycle-execution-control/test-execution-controls/headless-editor-testing.md) — Boots a headless Unity Editor and executes smoke, EditMode, and PlayMode tests. ([source](https://coplaydev.github.io/unity-mcp/contributing/dev-setup))

### User Interface & Experience

- [Style Replication from Prefabs](https://awesome-repositories.com/f/user-interface-experience/common-ui-element-styling/style-replication-from-prefabs.md) — Analyzes a referenced prefab's visual properties and replicates its styles in new UI elements. ([source](https://docs.coplay.dev/tutorials/Creating-UI.md))
