MCP for Unity for Cursor: Setup & Config
MCP for Unity links Cursor to the Unity Editor for scene work, asset management, script editing, testing, and builds.
What you can do with MCP for Unity in Cursor
Connect AI-assisted coding with direct Unity scene, asset, testing, and build operations.
- Automate asset management and game development tasks.
- Run tests, profile a project, and initiate builds.
Before you start: MCP for Unity in Cursor
- Unity 2021.3 LTS through 6.x
- Python 3.10 or later via uv
- An MCP-compatible client
- OpenUPM when using this installation command
This command installs the Unity package, not a standalone MCP launch process. Alternatively, add https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main in Package Manager, then use Window > MCP for Unity > Configure All Detected Clients. Individual tool names and a standalone server launch command are not stated in the README.
MCP for Unity Cursor configuration
Choose Cursor configuration scope
For MCP for Unity, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.
Add MCP for Unity to Cursor
Use the unity-mcp entry below in mcpServers. Keep MCP for Unity's documented stdio connection fields and your other Cursor entries.
Check MCP for Unity in Cursor
MCP for Unity: Enable in Cursor’s MCP settings; inspect tools.
Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
{
"mcpServers": {
"unity-mcp": {
"command": "openupm",
"args": [
"add",
"com.coplaydev.unity-mcp"
],
"env": {}
}
}
}Troubleshooting MCP for Unity in Cursor
- MCP for Unity's openupm add command installs a Unity package. Follow the upstream editor setup before expecting a stdio connection in Cursor.
- Cursor must find openupm for MCP for Unity. Enable the project/user entry in MCP settings and inspect its tools.
- Known limitation: Requires a supported Unity installation and Python through uv.
- Known limitation: Individual tool identifiers are not stated in the supplied README.
- Known limitation: Advanced routing and remote authentication require separate documentation.
- General Cursor troubleshooting lives in the /clients/cursor guide.
MCP for Unity — details. Cursor guide