Read git repositories, view commits, diffs, and history with MCP.
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-git", "/path/to/repository"]
}
}
}
Copy this configuration and paste it into your claude_desktop_config.json or Cursor settings.