Git
Read, search, and manipulate local Git repos with diffs, logs, and working-tree operations.
Add Git to your agent
Pick your host and paste the config snippet. Replace placeholder tokens and paths before connecting to production data.
1Config location
Global: ~/.cursor/mcp.json or project: .cursor/mcp.json
2Copy this snippet
{
"mcpServers": {
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}
}
Add this block under mcpServers, then restart Cursor.