Skip to content
VS Code

Unity MCP for VS Code

io.github.ivanmurzak/unity-mcp

Make 3D games in Unity Engine with AI. MCP Server + Plugin for Unity Editor and Unity games.

client:VS Code transport:stdio runtime:oci

Install Unity MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "unity-mcp-port",
      "description": "UNITY_MCP_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unity-mcp-plugin-timeout",
      "description": "UNITY_MCP_PLUGIN_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unity-mcp-client-transport",
      "description": "UNITY_MCP_CLIENT_TRANSPORT",
      "password": true
    }
  ],
  "servers": {
    "unity-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/ivanmurzakdev/unity-mcp-server:0.17.1"
      ],
      "env": {
        "UNITY_MCP_PORT": "${input:unity-mcp-port}",
        "UNITY_MCP_PLUGIN_TIMEOUT": "${input:unity-mcp-plugin-timeout}",
        "UNITY_MCP_CLIENT_TRANSPORT": "${input:unity-mcp-client-transport}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Unity MCP in other clients