Back to MCP Servers

Git Server

Git repository operations including status, diff, commit, branch management, and history

gitvcsversion-controlofficial

Installation

npm install -g @anthropic-ai/mcp-server-git

Configuration

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic-ai/mcp-server-git",
        "--repository",
        "/path/to/your/repo"
      ]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub