Git for Cursor
io.github.abhishekkumar2021/git
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
client:Cursor
transport:stdio
runtime:npm
Install Git in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>",
"GIT_WRITABLE": "<GIT_WRITABLE>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs