Skip to content

Installation

  • uvinstall guide
    Terminal window
    # macOS / Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    # Windows
    powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
  • Python 3.10+ (uv can manage this for you: uv python install 3.12)

Option A — install as a global tool (recommended)

Terminal window
uv tool install git+https://github.com/saadmanrafat/uv-mcp

Option B — clone and run from source

Terminal window
git clone https://github.com/saadmanrafat/uv-mcp.git
cd uv-mcp
uv sync

When running from source, replace every uv run uv-mcp below with:

Terminal window
uv --directory /path/to/uv-mcp run uv-mcp

Create .mcp.json at your project root:

{
"mcpServers": {
"uv-mcp": {
"command": "uv",
"args": ["run", "uv-mcp"],
"env": { "UV_COLOR": "never", "TERM": "dumb" }
}
}
}

Or add it globally with one command:

Terminal window
claude mcp add uv-mcp -- uv run uv-mcp

Claude Code reads .mcp.json automatically when you open the project.


Create opencode.json at your project root:

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"uv-mcp": {
"type": "local",
"command": ["uv", "run", "uv-mcp"],
"enabled": true,
"environment": { "UV_COLOR": "never", "TERM": "dumb" }
}
}
}

OpenCode merges this with your global ~/.config/opencode/opencode.json, so this stays project-scoped without touching global settings.


Create .codex/config.toml at your project root:

[mcp_servers.uv-mcp]
command = "uv"
args = ["run", "uv-mcp"]
enabled = true
[mcp_servers.uv-mcp.env]
UV_COLOR = "never"
TERM = "dumb"

Then trust the project once so Codex loads the local config:

Terminal window
codex trust

Or register it globally:

Terminal window
codex mcp add uv-mcp -- uv run uv-mcp

Install uv-mcp as a Gemini extension:

Terminal window
gemini extensions install https://github.com/saadmanrafat/uv-mcp

The bundled gemini-extension.json handles the rest. To update later:

Terminal window
gemini extensions update uv-mcp

Edit the config file for your OS:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"uv-mcp": {
"command": "uv",
"args": ["run", "uv-mcp"],
"env": { "UV_COLOR": "never", "TERM": "dumb" }
}
}
}

Restart Claude Desktop after saving.


In any connected client, send:

“Check if uv is installed.”

A response with the uv version confirms the server is running.