§ MCP Server · Git & VCS

Official

Git.

by Anthropic

Inspect, branch, commit, and review git history.

Runs in Claude · Cursor · ChatGPT · Windsurf — any MCP-compatible client

Install

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

Transports

stdio (local)

Tools exposed

13

§ Add to your AI client

Drop this into your client's MCP config — claude_desktop_config.json for Claude Desktop, or .cursor/mcp.json for Cursor — then restart the app. Replace placeholder paths and credentials with your own.

{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "/path/to/repo"
      ]
    }
  }
}

§ About

MCP server that wraps the Git CLI for an agent. Status, log, diff, branch, commit, and reset operations exposed as tools. Pairs naturally with the Filesystem and GitHub servers for a complete repo workflow.

§ Features

  • Read git status, log, and diff
  • Create branches and commits
  • Show file blame
  • Review staged vs unstaged changes

§ Use cases

Code-review agentsAuto-commit workflows from generated editsRepo-history Q&A

§ Related MCP servers

Open standardSubmit a server →