Skip to content
Cursor

git mcp server for Cursor

io.github.ray0907/git-mcp-server

MCP server for GitLab and GitHub

client:Cursor transport:stdio runtime:npm

Install git mcp server 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-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@raytien/git-mcp-server"
      ],
      "env": {
        "GIT_PROVIDER": "<GIT_PROVIDER>",
        "GIT_TOKEN": "<GIT_TOKEN>",
        "GIT_API_URL": "<GIT_API_URL>",
        "GIT_READ_ONLY": "<GIT_READ_ONLY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

git mcp server in other clients