Home / Developer tools / GitLab MCP Server

GitLab MCP Server

io.github.zereight/gitlab-mcp · v2.3.24 stdio

Score 90. Maintenance 40 of 40, security 35 of 35, adoption 15 of 25.

GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #19 of 610 Developer tools servers on Socketlist by score, with 2,100 GitHub stars and a last code push 18d ago.

Install

npx -y @zereight/mcp-gitlab
docker run -i --rm docker.io/zereight050/gitlab-mcp:2.3.24

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect GitLab MCP Server to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env GITLAB_PERSONAL_ACCESS_TOKEN=<gitlab_personal_access_token> --env GITLAB_JOB_TOKEN=<gitlab_job_token> --transport stdio gitlab-mcp-server -- npx -y @zereight/mcp-gitlab

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "gitlab-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "${GITLAB_PERSONAL_ACCESS_TOKEN}",
        "GITLAB_JOB_TOKEN": "${GITLAB_JOB_TOKEN}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "gitlab-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "${env:GITLAB_PERSONAL_ACCESS_TOKEN}",
        "GITLAB_JOB_TOKEN": "${env:GITLAB_JOB_TOKEN}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
GITLAB_PERSONAL_ACCESS_TOKENNoYesGitLab personal access token for local stdio use. A non-empty value overrides GITLAB_PERSONAL_ACCESS_TOKEN_FILE. One of this token, GITLAB_PERSONAL_ACCESS_TOKEN_FILE, GITLAB_JOB_TOKEN, GITLAB_AUTH_COO
GITLAB_PERSONAL_ACCESS_TOKEN_FILENoNoPath to a file that contains the personal access token. Read once at startup and trimmed. Ignored when GITLAB_PERSONAL_ACCESS_TOKEN or --token is non-empty. A missing, unreadable, or empty file stops
GITLAB_JOB_TOKENNoYesOptional GitLab CI job token to use instead of a personal access token when running inside GitLab CI.
GITLAB_AUTH_COOKIE_PATHNoNoOptional path to a GitLab authentication cookie file for cookie-based authentication.
GITLAB_USE_OAUTHNoNoSet to true to start with GitLab OAuth instead of a personal access token, job token, or cookie file.
GITLAB_OAUTH_CLIENT_IDNoNoGitLab OAuth application ID. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_TOKEN_SCRIPT.
GITLAB_OAUTH_TOKEN_SCRIPTNoNoCommand that prints an OAuth access token. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_CLIENT_ID.
GITLAB_API_URLNoNoGitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL.
GITLAB_ALLOWED_PROJECT_IDSNoNoOptional comma-separated list of GitLab project IDs that this server is allowed to access.
GITLAB_PERMISSION_MODENoNoTool exposure. Allowed values are readonly, modify, and full. Unset uses full. readonly keeps read-only tools. modify blocks delete and teardown tools.
GITLAB_TOOLSETSNoNoOptional comma-separated toolset ids (projects, issues, merge_requests, …). Unset keeps the lean core default plus discover_tools. Do not set all unless you accept loading ~all schemas (~73k tokens).
GITLAB_TOOLSNoNoOptional comma-separated list of individual tool names to add on top of enabled toolsets.

9 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "@zereight/mcp-gitlab"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Score breakdown

PartPointsWhat we observedResult
Maintenance40/40Last push 18d ago, 5 open issuesStrong
Security hygiene35/35Licence MIT, SECURITY.md present, published package or hosted endpointStrong
Adoption15/252,100 GitHub stars, 0 npm downloads a weekFair

Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.

Maintain this server? Claim or correct this listing, or get featured in Developer tools. Paid placements are labelled and never change the score.

Five scored MCP servers, every Monday

The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.

Get The Plug Weekly
GitHub stars2,100
npm weekly downloads0
Last push18d ago
LicenceMIT
Open issues5
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-11-11

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers

Compare all alternatives

MCP Gitlab

Score 72. Maintenance 40 of 40, security 30 of 35, adoption 2 of 25.

io.github.crunchtools/gitlab

Secure MCP server for GitLab projects, merge requests, issues, and pipelines

★ 2AGPL-3.0pushed 19d ago Developer tools