MCP for Unity | AI Driven Development
MCP for Unity lets you supercharge your workflow by connecting Unity to modern AI assistants like Claude Code, Cursor, Windsurf, Visual Studio Code and more. With the Model Context Protocol (MCP), your AI tools can directly interact with the Unity Editor - automating repetitive tasks, managing scenes, generating content, and more!
Whether you’re prototyping quickly or streamlining complex projects, MCP for Unity helps you work smarter. Built for flexibility and extensibility, it adapts to your workflow so you can focus more on creativity and less on manual setup.
How to use it?
After installing MCP for Unity, you'll need to generate a free API key to use it.
- Open MCP for Unity in Unity
- Click the "Get API Key" button
- Login or Signup if you're a first time user for a free Coplay account
- You'll be redirected to the API Keys page
- Create a new API key by providing a name
- Save your API key !important - once the API is generated and display, you MUST save it, as you won't be able to see it again
- Enter the API key in the MCP for Unity window
- Click "Start Session" to connect Unity to the MCP server
- Configure your clients so they can connect the MCP server as well
Community & Support
Join the community on Discord: https://discord.com/invite/y4p8KfzrN4
MCP for Unity is free and open source software. We welcome contributions from all devs who want to see it grow. Learn more about this project here: https://github.com/CoplayDev/unity-mcp
Encountered an issue, or got a suggestion? Create a ticket here: https://github.com/CoplayDev/unity-mcp/issues
Release Notes
- New UI
- The more features we support, the more cluttered the window becomes. So we've split things out across more tabs! The most important settings, connections, are now front and center.
- We also made some usability tweaks like more visible borders, highlighting the active tab, popups when errors arise; you're going to have a better time using our plugin!
- Create 2D Textures & Sprites
- We added a new tool that can generate 2D textures. These textures are based on a pattern (e.g. checkerboard or stripes) or a color - they're very useful for prototyping!
- The tool can also create sprites from textures
- Enable/Disable Tools & Resources
- We add the list of built-in resources in their own tab
- We fixed the enable/disable feature for built-in tools and resources. If disable a tool/resource, the LLM will now get an error to know it's not available and will try another way to accomplish the goal
- New MCP client support
- OpenCode (opencode.ai)
- GitHub Copilot CLI
- Other Improvements
- The manage_vfx tool now takes up 316 tokens in your context instead of 6.4k... and it performs just as well!
- Fixes
- Screenshots now work in play mode and edit, and can now capture UI in Unity 2021.3 and above
- The version out-of-date warning label now correctly shows the latest version available on the Unity Asset Store instead of the latest version available on Git
- Vector and color parameter validation now accept JSON string inputs, useful for cheaper models
- Detect dead websocket connections on Windows
- The manage_prefabs tool works consistently on staged prefabs and prefabs in files
- Rider config path and add MCP registry manifest
- Add special handling for UIDocument serialization to prevent infinite loops
- Filter EditorApplication.isCompiling false positives in Play mode
- The manage_components tool set_property action now works for object references