▌BestMCPTools.org
Git MCP logo

Git MCP

Read, search, and manipulate Git repositories from your AI agent

Developer ToolsOpen SourceClaudeCursorWindsurfVS Codeany MCP clientEasy✓ Verified
Own Git MCP? Boost it to the top.✦ Upgrade to Featured

Maintenance status

Active
Last code update: September 27, 2026Checked September 28, 2026

Reference server maintained in the official modelcontextprotocol/servers repository.

How to Install Git MCP

$npx @modelcontextprotocol/server-git

Requires Claude Desktop, Cursor, Windsurf, or another MCP-compatible client.

Setup by client

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "git-mcp": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/server-git"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "git-mcp": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/server-git"
      ]
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "git-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@modelcontextprotocol/server-git"
      ]
    }
  }
}

Claude Code (terminal)

claude mcp add git-mcp -- npx @modelcontextprotocol/server-git

Add any API keys or environment variables the server's README lists.

About Git MCP

The official Git MCP server gives AI agents full access to Git repository operations including reading file contents at any commit, searching commit history, comparing branches, creating commits, and managing branches. It enables agents to perform code archaeology, understand project history, automate release workflows, and make commits, all through natural language. Works with any local or cloned repository.

Git MCP is a Developer Tools MCP server designed for professional engineers and engineering teams. It enables wiring AI assistants into the inner loop of writing and shipping code by exposing Git, package, build, and CLI operations as MCP tools. Key capabilities include git and github operations (status, blame, prs), package and dependency inspection, build and test runner integration, and structured tool calls that work cleanly inside an LLM context. It integrates with Git, GitHub, GitLab, npm, pnpm, Docker, and common build systems, and is best suited for professional engineers and engineering teams who need reviewing diffs and opening prs from chat.

Key Features

  • git
  • version-control
  • developer-tools
  • repository
  • commits

Pricing

Open Source: from Free

Pros & Cons

Pros

  • Acts more like a pair programmer with real tools
  • Tight scoping (one repo, dry-run) limits blast radius
  • Keeps flow inside the editor

Cons

  • Write operations require explicit guardrails
  • Quality of output depends on repo hygiene
  • Larger monorepos may need extra filtering

Best For

  • Reviewing diffs and opening PRs from chat
  • Triaging CI failures
  • Scaffolding new packages or modules
  • Repo-wide refactors with verification

Our Take on Git MCP

Git MCP is a must-have for any developer agent. It gives AI complete read/write access to your version history and source code, enabling automated commits, branch management, and code archaeology.

Alternatives to Git MCP

Filesystem MCPFile System

Let AI read and write files on your local system

View Filesystem MCP →
GitHub MCPDeveloper Tools

Connect Claude to GitHub repos, issues and PRs

View GitHub MCP →

Frequently Asked Questions

Tags