Home / Developer tools / GitLab MCP Server
GitLab MCP Server
io.github.zereight/gitlab-mcp · v2.3.24 stdio
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-gitlabdocker run -i --rm docker.io/zereight050/gitlab-mcp:2.3.24Assembled 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 variable | Required | Secret | Publisher's note |
|---|---|---|---|
GITLAB_PERSONAL_ACCESS_TOKEN | No | 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_COO |
GITLAB_PERSONAL_ACCESS_TOKEN_FILE | No | No | 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 |
GITLAB_JOB_TOKEN | No | Yes | Optional GitLab CI job token to use instead of a personal access token when running inside GitLab CI. |
GITLAB_AUTH_COOKIE_PATH | No | No | Optional path to a GitLab authentication cookie file for cookie-based authentication. |
GITLAB_USE_OAUTH | No | No | Set to true to start with GitLab OAuth instead of a personal access token, job token, or cookie file. |
GITLAB_OAUTH_CLIENT_ID | No | No | GitLab OAuth application ID. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_TOKEN_SCRIPT. |
GITLAB_OAUTH_TOKEN_SCRIPT | No | No | Command that prints an OAuth access token. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_CLIENT_ID. |
GITLAB_API_URL | No | No | GitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL. |
GITLAB_ALLOWED_PROJECT_IDS | No | No | Optional comma-separated list of GitLab project IDs that this server is allowed to access. |
GITLAB_PERMISSION_MODE | No | No | 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 | No | No | Optional 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_TOOLS | No | No | Optional 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
| Part | Points | What we observed | Result |
|---|---|---|---|
| Maintenance | 40/40 | Last push 18d ago, 5 open issues | Strong |
| Security hygiene | 35/35 | Licence MIT, SECURITY.md present, published package or hosted endpoint | Strong |
| Adoption | 15/25 | 2,100 GitHub stars, 0 npm downloads a week | Fair |
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.
| GitHub stars | 2,100 |
| npm weekly downloads | 0 |
| Last push | 18d ago |
| Licence | MIT |
| Open issues | 5 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-11-11 |
Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.