Show me the recent commit history
Common usage pattern for this MCP server
Ask Claude: "Show me the recent commit history"Official MCP server providing Git repository tools for reading, searching, and manipulating Git repositories
The official Git MCP Server from Anthropic provides comprehensive tools to read, search, and manipulate Git repositories through Claude.~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
}{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
}Not a Git repository error when accessing features
Navigate to Git repository root directory before using MCP server. Run git status locally to verify directory is initialized. Initialize repository with git init if needed.
Permission denied accessing repository files
Run ls -l on repository directory to check user has read permissions. Verify MCP server process user matches repository owner. Add user to appropriate group if needed: sudo usermod -a -G.
Git command not found or unavailable error
Install Git: sudo apt install git (Linux) or brew install git (macOS). Verify installation: git --version. Ensure Git binary is in system PATH environment variable.
Cannot read commits or repository history
Verify .git directory exists and isn't corrupted. Check repository permissions allow read access. Run git fsck to check repository integrity. Clone fresh copy if repository is corrupted.
Common usage pattern for this MCP server
Ask Claude: "Show me the recent commit history"Common usage pattern for this MCP server
Ask Claude: "What branches exist in this repository?"Common usage pattern for this MCP server
Ask Claude: "Find commits mentioning bug fix"Common usage pattern for this MCP server
Ask Claude: "What changed in the last 5 commits?"Common usage pattern for this MCP server
Ask Claude: "Compare this file between two commits"Loading reviews...
Join our community of Claude power users. No spam, unsubscribe anytime.
Not required