Skip to content
Cursor

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "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

Git in other clients