MCP Git Enhanced is an enhanced Git MCP Server that enables AI agents to perform advanced Git operations including code review, commit analysis, and branch management.
- 🔍 Code Review: Analyze diffs and provide intelligent code review feedback
- 📝 Commit Analysis: Understand commit history and generate summaries
- 🌿 Branch Management: List, compare, and manage Git branches
- 📊 Repository Insights: Get repository statistics and health metrics
- 🔗 GitHub Integration: Seamlessly works with GitHub repositories
- AI-powered code review assistants
- Automated commit message generators
- Repository health monitoring tools
- Branch comparison and merge helpers
npm install -g @davidweb3-ctrl/mcp-git-enhancedThis server requires a GitHub Personal Access Token for accessing private repositories and higher API rate limits.
| Variable | Required | Description | How to Get |
|---|---|---|---|
GITHUB_TOKEN |
Yes | GitHub Personal Access Token | Create here |
| Variable | Default | Description |
|---|---|---|
GIT_AUTHOR_NAME |
Git config | Default author name for commits |
GIT_AUTHOR_EMAIL |
Git config | Default author email for commits |
- Go to https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Select scopes:
repo- Full control of private repositoriesread:org- Read org and team membershipread:user- Read user profile data
- Generate and copy the token
- Set as environment variable:
export GITHUB_TOKEN=your_token_here
Add to your Claude configuration:
{
"mcpServers": {
"git-enhanced": {
"command": "npx",
"args": ["@davidweb3-ctrl/mcp-git-enhanced"],
"env": {
"GITHUB_TOKEN": "your_github_token_here"
}
}
}
}git_repo_info- Get repository information and statisticsgit_branch_list- List all branches in the repositorygit_branch_compare- Compare two branches
git_log- View commit history with filteringgit_commit_analyze- Analyze commit patterns and generate insightsgit_diff- Show differences between commits or branches
git_review_pr- Perform AI-powered code review on pull requestsgit_blame- Show line-by-line commit information
This server is open source and free to use.
For enterprise support or custom features, contact: prodavidweb3@gmail.com
- All Git operations are performed locally
- GitHub token is never logged or stored
- HTTPS-only communication with GitHub API
- No code is uploaded to external servers
- GitHub Issues: https://github.com/davidweb3-ctrl/mcp-git-enhanced/issues
- Email: prodavidweb3@gmail.com
- Documentation: See README.md in repository
MIT License - Copyright (c) 2025 David Xia