DEV · Dev Tools · Community server
GitLab (community)
Community GitLab MCP server covering merge requests, pipelines, projects and the GitLab API.
- Transport
- Local (stdio)
- Status
- Community
- Auth method
- Personal Access Token (or OAuth)GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_URL
- Scopes / permissions
- OAuth: api or read_api (default api,read_api,read_user)
- Last verified
- Oct 22, 2026
- Tools listed
- 06
§1What it does
A widely used community-maintained MCP server for GitLab. It exposes tools for merge requests, diffs, pipelines and jobs, groups, environments and generic GitLab API requests. The original reference GitLab server from the MCP project is archived. Since v2.3.6 every GITLAB_API_URL entry must start with http:// or https://, and a comma in an embedded password must be written as %2C.
§2Setup
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@zereight/mcp-gitlab@2.3.5"],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<your token>",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}Snippets adapted from the official documentation. Check the official page for current options and auth requirements.
§2bWhen you disconnect
- Removed locallyClear the sign-in or remove the server in your MCP client (for example
claude mcp logoutorclaude mcp removein Claude Code, or log out of the server in Cursor). This only deletes the client's copy of the tokens. - Authorization revokedFind zereight (community)'s connected-apps / authorized applications page and revoke the grant there. We haven't found an official page for it yet. This is what stops the refresh token; clearing the client alone is not enough.
Why both steps: OAuth token refresh in the security checklist.
§3Prompts to try
- “Review the diff of merge request !42 and list risky changes.”
- “Why did the latest pipeline on main fail?”
- “Validate this .gitlab-ci.yml before I push it.”