Skip to content
Gemini CLI

Unity MCP for Gemini CLI

io.github.ivanmurzak/unity-mcp

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

client:Gemini CLI transport:stdio runtime:oci

Install Unity MCP in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "unity-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/ivanmurzakdev/unity-mcp-server:0.17.1"
      ],
      "env": {
        "UNITY_MCP_PORT": "<UNITY_MCP_PORT>",
        "UNITY_MCP_PLUGIN_TIMEOUT": "<UNITY_MCP_PLUGIN_TIMEOUT>",
        "UNITY_MCP_CLIENT_TRANSPORT": "<UNITY_MCP_CLIENT_TRANSPORT>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

Unity MCP in other clients