Git MCP Server

Official
Developer Tools
stdio

Enable AI agents to interact with local Git repositories. View commit history, create branches, stage and commit changes, view diffs, and manage the Git workflow programmatically.

Quick Install

$ uvx mcp-server-git

In-Depth Setup Guide

Complete setup walkthrough & security best practices

Read Guide

Configuration by Client

{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "."
      ]
    }
  }
}

Need a different client? Use the Config Generator for Windsurf, Cline, Antigravity, and more.

Available Tools (6)

git_statusgit_loggit_diffgit_commitgit_branchgit_checkout

Git FAQ

What is the Git MCP server?

Enable AI agents to interact with local Git repositories. View commit history, create branches, stage and commit changes, view diffs, and manage the Git workflow programmatically.

How do I install the Git MCP server?

Run: uvx mcp-server-git

Which AI clients support the Git MCP server?

The Git MCP server works with Claude Desktop, Cursor, Codex CLI, Antigravity, Windsurf, and any MCP-compatible client using stdio transport.

What tools does the Git MCP server provide?

The server provides 6 tools: git_status, git_log, git_diff, git_commit, git_branch, git_checkout.