Git MCP

Git repository operations with branch management and commit history

By ModelContextProtocolMIT
View Repositorynpm install @modelcontextprotocol/server-git

Features

Commit history analysis
Branch management
Diff viewing
Repository statistics

Use Cases

Code review assistanceRelease note generationGit workflow automationRepository analysis

Installation

NPM Package
npm install @modelcontextprotocol/server-git

Supported Models

Claude 3.5 SonnetClaude 3 Haiku

Configuration Example

{
  "mcpServers": {
    "git": {
      "command": "@modelcontextprotocol/server-git",
      "env": {
        // Add your environment variables here
      }
    }
  }
}