$ timeahead.in
mcp/cyanheadsgit-mcp-server/install/cursor

install @cyanheads/git-mcp-server on Cursor

Requires Node 18+ on your system so npx can fetch the package on first run. Cursor reloads its MCP servers automatically the moment the file is saved — no restart needed. Paste the config below, then follow the reload step to register @cyanheads/git-mcp-server.

paste into
global: ~/.cursor/mcp.json
project: .cursor/mcp.json (commit alongside your repo)
{
  "mcpServers": {
    "git-mcp-server": {
      "command": "npx",
      "args": [
        "@cyanheads/git-mcp-server@latest"
      ],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "GIT_BASE_DIR": "~/Developer/",
        "LOGS_DIR": "~/Developer/logs/git-mcp-server/",
        "GIT_USERNAME": "cyanheads",
        "GIT_EMAIL": "casey@caseyjhand.com",
        "GIT_SIGN_COMMITS": "true"
      }
    }
  }
}
then: No restart needed — Cursor picks up the change automatically.
other clients
Claude DesktopWindsurfVS Code (Copilot)Claude Code
← back to @cyanheads/git-mcp-server