Back to MCP Servers

mcp-server-git

OFFICIAL

Reference Git server. Status, diff, log, branch, commit, and search — structured Git operations for repos the agent works in.

Category: Development · Works with: Claude Code, Grok Build, Claude Desktop, Cursor, Codex CLI

What it does

Gives agents first-class Git tooling beyond raw shell commands: read history, inspect diffs, and stage changes with structured, predictable output.

Install

uvx mcp-server-git --repository /path/to/repo

Setup Instructions

claude Code
claude mcp add git -- uvx mcp-server-git --repository ~/projects/my-repo
claude Desktop
Requires uv (https://docs.astral.sh/uv/):

{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": ["mcp-server-git", "--repository", "/Users/you/projects/my-repo"]
    }
  }
}
Official documentation