MCP Gitlab
Connects AI assistants to GitLab for project, code, merge approval, pipeline, and repository operations.
Install MCP Gitlab
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"mcp-gitlab-2": {
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_URL": "YOUR_VALUE_HERE",
"GITLAB_TOKEN": "YOUR_VALUE_HERE",
"GITLAB_PAT": "YOUR_VALUE_HERE",
"GITLAB_PERSONAL_ACCESS_TOKEN": "YOUR_VALUE_HERE",
"GITLAB_API_TOKEN": "YOUR_VALUE_HERE",
"MCP_READ_ONLY": "YOUR_VALUE_HERE",
"GITLAB_READ_ONLY": "YOUR_VALUE_HERE",
"GITLAB_AUTH": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.
Overview
Use cases
- Inspect GitLab projects, branches, commits, and repository files
- Create branches and commits through GitLab tools
- Manage project and merge-request approval rules
- Compare refs and search code in a GitLab project
- Enforce read-only access for repository assistants
Key features
- GitLab.com and self-hosted CE/EE support
- Project, group, branch, commit, and file operations
- Merge and approval rule management
- Project code search and ref comparison
- Configurable read-only mode
- Token and OAuth-based authentication
Tools80
What MCP Gitlab lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 7d ago via OSV.dev · mcp-gitlab (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How MCP Gitlab works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about MCP Gitlab
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-gitlab-2)<a href="https://allmcps.com/mcp/mcp-gitlab-2"><img src="https://allmcps.com/api/badge/mcp-gitlab-2?style=directory" alt="MCP Gitlab on AllMCPs" /></a>