
GitLab MCP Server
by zereightio.github.zereight/gitlab-mcpv2.3.3
GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more.
context tax
needs auth
security
100/100
cold start
pending
freshness
Active23d ago
Our reading of GitLab, from the data
GitLab is a version control MCP server from zereight, listed in the official MCP Registry.
Its endpoint requires sign-in or an API key just to list tools, so we haven't measured its token cost; we never use real credentials.
Maintenance is active: the last public signal was 23 days ago (2026-10-19). For comparison, 65% of version control servers are active or maintained.
With 2,049 GitHub stars it ranks #10 of 725 version control servers we index.
It runs locally on your machine over stdio and needs 2 secrets (GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_JOB_TOKEN); use a scoped, least-privilege key.
Install GitLab MCP server
Install in Claude Code
claude mcp add gitlab-zereight -e GITLAB_PERSONAL_ACCESS_TOKEN='<gitlab-personal-access-token>' -e GITLAB_JOB_TOKEN='<gitlab-job-token>' -- npx -y @zereight/mcp-gitlabInstall in Cursor
{
"mcpServers": {
"gitlab-zereight": {
"command": "npx",
"args": [
"-y",
"@zereight/mcp-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<gitlab-personal-access-token>",
"GITLAB_JOB_TOKEN": "<gitlab-job-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"gitlab-zereight": {
"command": "npx",
"args": [
"-y",
"@zereight/mcp-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<gitlab-personal-access-token>",
"GITLAB_JOB_TOKEN": "<gitlab-job-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"gitlab-zereight": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@zereight/mcp-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<gitlab-personal-access-token>",
"GITLAB_JOB_TOKEN": "<gitlab-job-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"gitlab-zereight": {
"command": "npx",
"args": [
"-y",
"@zereight/mcp-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<gitlab-personal-access-token>",
"GITLAB_JOB_TOKEN": "<gitlab-job-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @zereight/mcp-gitlab
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GITLAB_PERSONAL_ACCESS_TOKEN | — | yes | GitLab 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_COOKIE_PATH, or GITLAB_USE_OAUTH=true must be set. Create a token with the GitLab scopes the tools need, such as api or read_api. |
| GITLAB_PERSONAL_ACCESS_TOKEN_FILE | — | — | Path 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 startup. Does not replace job token, OAuth, cookie, or remote authorization. |
| GITLAB_JOB_TOKEN | — | yes | Optional GitLab CI job token to use instead of a personal access token when running inside GitLab CI. |
| GITLAB_AUTH_COOKIE_PATH | — | — | Optional path to a GitLab authentication cookie file for cookie-based authentication. |
| GITLAB_USE_OAUTH | — | — | Set to true to start with GitLab OAuth instead of a personal access token, job token, or cookie file. |
| GITLAB_OAUTH_CLIENT_ID | — | — | GitLab OAuth application ID. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_TOKEN_SCRIPT. |
| GITLAB_OAUTH_TOKEN_SCRIPT | — | — | Command that prints an OAuth access token. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_CLIENT_ID. |
| GITLAB_API_URL | — | — | GitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL. |
| GITLAB_ALLOWED_PROJECT_IDS | — | — | Optional comma-separated list of GitLab project IDs that this server is allowed to access. |
| GITLAB_PERMISSION_MODE | — | — | Tool exposure. Allowed values are readonly, modify, and full. Unset uses full. readonly keeps read-only tools. modify blocks delete and teardown tools. |
| GITLAB_TOOLSETS | — | — | Optional comma-separated list of toolsets to enable, such as projects, issues, merge_requests, pipelines, releases, users, groups, wiki, or search. |
| GITLAB_TOOLS | — | — | Optional comma-separated list of individual tool names to add on top of enabled toolsets. |
| GITLAB_DENIED_TOOLS_REGEX | — | — | Optional regular expression used to hide matching tools from the server. |
| GITLAB_TOOL_POLICY_APPROVE | — | — | Optional comma-separated list of tool names that require explicit approval before execution. |
| GITLAB_TOOL_POLICY_HIDDEN | — | — | Optional comma-separated list of tool names to hide from tools/list. |
| NODE_TLS_REJECT_UNAUTHORIZED | — | — | Set to 0 only when you intentionally need to connect to a GitLab instance with invalid or self-signed TLS certificates. |
| GITLAB_CA_CERT_PATH | — | — | Optional path to a custom CA certificate file for self-managed GitLab instances. |
| GITLAB_MASKING_ENABLED | — | — | Set to true to mask text tool results and returned errors using built-in or configured rules. |
| GITLAB_MASKING_CONFIG | — | — | Optional path to a response-masking JSON configuration file. |
| GITLAB_MASKING_POLICY_FILE | — | — | Optional protected server-owned JSON file containing managed masking policies. |
| GITLAB_MASKING_WORKSPACE_DIR | — | — | Directory used to resolve response-masking configuration paths. |
Security signals
100/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ○Package metadata (install scripts, provenance) — pending
- ○Tool descriptions (prompt-injection and hidden-text heuristics) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 23d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-19 · 23d ago · GitHub
Latest release
2026-10-17 · 25d ago · GitHub · v2.3.3
Package published
no data · npm/PyPI
Registry entry updated
2026-10-17 · 25d ago · official registry · v2.3.3
How it compares in Version Control
Against the most-starred version control servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| GitLab (this) | 2,049 | — | not measured | Active | local |
| Git | 91,356 | 12 | 1,139 | Active | local |
| PostHog | 40,338 | — | not measured | Active | local + hosted |
| GitHub | 33,740 | 46 | 11,509 | Active | local + hosted |
| GitDiagram | 18,313 | 3 | 864 | Active | hosted |
| Skill Seekers | 15,180 | — | not measured | Active | — |
FAQ
›How do I install the GitLab MCP server in Claude Code?
Run: claude mcp add gitlab-zereight -e GITLAB_PERSONAL_ACCESS_TOKEN='<gitlab-personal-access-token>' -e GITLAB_JOB_TOKEN='<gitlab-job-token>' -- npx -y @zereight/mcp-gitlab. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does GitLab require an API key?
Yes. It expects GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_JOB_TOKEN, of which 2 are secrets.
›Can I use GitLab as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is GitLab in the official MCP registry?
Yes, as io.github.zereight/gitlab-mcp.
Sources and method
- Official MCP Registry entry
- updated 2026-10-17
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Security signals, computed by us
- 2026-10-19
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to GitLab
Other version control MCP servers.