website/docs/guides/uv-setup.md
The key to configuring MCP with Cursor, VS Code, Windsurf, and Rider is uv.
uv is a fast Python package manager used to install and run the Unity MCP Server (mcp-for-unity).command: uvx with args like --from mcpforunityserver mcp-for-unity --transport stdio. The client invokes uvx directly to launch the server.uv isn't installed or on PATH, Cursor / Windsurf / VS Code can't start the server. The MCP for Unity window will show "uv Not Found" until fixed.uv in common locations and on PATH. If not found, use "Choose UV Install Location" to navigate to your uv binary and save the path.:::tip When in doubt, restart your client
Clients like Claude Code or JetBrains Rider can get confused if you switch from http to stdio (or vice versa). If they say "No Unity Instances found", restart the client so it picks up the new configuration.
:::
You need Python 3.10+ and the uv package manager.
python3 --version # should be 3.10+
uv --version # should print a version like "uv 0.x"
macOS:
# Option A: Official installer (recommended)
# Download from https://www.python.org/downloads/
# Option B: Homebrew (3.12 is the latest LTS as of writing; 3.10 also works)
brew install [email protected]
Windows:
# Official installer (recommended)
# Download from https://www.python.org/downloads/windows/
macOS / Linux / WSL:
curl -LsSf https://astral.sh/uv/install.sh | sh
# or Homebrew on macOS
brew install uv
Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# or
winget install --id=astral-sh.uv -e
| OS | Path |
|---|---|
| macOS | /opt/homebrew/bin/uv, /usr/local/bin/uv, ~/.local/bin/uv |
| Linux | /usr/local/bin/uv, /usr/bin/uv, ~/.local/bin/uv |
| Windows | %LOCALAPPDATA%/Programs/Python/Python3xx/Scripts/uv.exe |
uv isn't found, the status panel shows a red "uv Not Found" with a hint "Make sure uv is installed! [CLICK]".uv binary. This saves the path and reconfigures automatically.uv location here is the easiest fix.uv via the MCP window to avoid PATH issues.uv inside WSL only, Windows-native Unity can't see it. Install uv on Windows, or use the MCP window to point to a Windows uv.exe.uv somewhere non-standard, the picker path is stored in UnityMCP.UvPath and persists across sessions..venv and .python-version (if present)uv sync in the Unity MCP Server src directory to rebuild a clean environment| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/UnityMCP/UnityMcpServer/src (or ~/Library/AppSupport/UnityMCP/UnityMcpServer/src via symlink) |
| Windows | %USERPROFILE%/AppData/Local/UnityMCP/UnityMcpServer/src |
| Linux | ~/.local/share/UnityMCP/UnityMcpServer/src |
cd <UnityMcpServer/src>
uv sync
uv run server.py