Home/Servers/Git MCP Server

Git MCP Server

by Anthropic ยท โญ 3.1k stars ยท updated 1 months ago

Git operations directly from your AI assistant. Clone, commit, diff, branch, log โ€” full repository management without leaving your AI workflow. Tools to read, search, and manipulate Git repositories.

93
Excellent

Quality Score Breakdown

maintenance96/100
community90/100
documentation92/100
compatibility94/100

Use Cases

  • โœ“git commits
  • โœ“branch management
  • โœ“code diffs
  • โœ“repository inspection

โšก One-Click Install Configs

Copy the config below and paste it into your AI client's config file.

๐Ÿค– Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-git",
        "--repository",
        "/path/to/repo"
      ]
    }
  }
}
โšก Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-git",
        "--repository",
        "/path/to/repo"
      ]
    }
  }
}
๐Ÿ’™ VS Code
.vscode/mcp.json
{
  "mcp": {
    "servers": {
      "git": {
        "command": "npx",
        "args": [
          "-y",
          "@modelcontextprotocol/server-git",
          "--repository",
          "/path/to/repo"
        ]
      }
    }
  }
}
โ† Back to all servers