MCP for Unity for VS Code: Setup & Config
MCP for Unity links VS Code to the Unity Editor for scene work, asset management, script editing, testing, and builds.
What you can do with MCP for Unity in VS Code
Connect AI-assisted coding with direct Unity scene, asset, testing, and build operations.
- Create scenes and GameObjects from natural-language instructions.
- Automate asset management and game development tasks.
Before you start: MCP for Unity in VS Code
- 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 VS Code configuration
Choose VS Code configuration scope
For MCP for Unity, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.
Add MCP for Unity to VS Code
Use the unity-mcp entry below in servers. Keep MCP for Unity's documented stdio connection fields and your other VS Code entries.
Check MCP for Unity in VS Code
MCP for Unity: Start in VS Code’s MCP controls; inspect output and trust prompts.
Config file · Workspace: .vscode/mcp.json
{
"servers": {
"unity-mcp": {
"type": "stdio",
"command": "openupm",
"args": [
"add",
"com.coplaydev.unity-mcp"
],
"env": {}
}
}
}Troubleshooting MCP for Unity in VS Code
- MCP for Unity's openupm add command installs a Unity package. Follow the upstream editor setup before expecting a stdio connection in VS Code.
- Make openupm available in the workspace, container, or remote environment hosting MCP for Unity. Start through VS Code's MCP controls; inspect output and trust prompts.
- 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 VS Code troubleshooting lives in the /clients/vscode guide.
MCP for Unity — details. VS Code guide