qodev-gitlab-mcp
Provides tools for GitLab integration, including merge request management, pipeline monitoring, issue tracking, release management, CI/CD variable management, file uploads, and more.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qodev-gitlab-mcpcheck if my MR is ready to merge"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
qodev-gitlab-mcp
A Model Context Protocol (MCP) server for GitLab integration. Exposes projects, merge requests, pipelines, discussions, issues, releases, and more through a standardized interface for AI assistants like Claude.
Installation
pip install qodev-gitlab-mcpOr run directly with uvx:
uvx qodev-gitlab-mcpConfiguration
Set the following environment variables:
# Required
GITLAB_TOKEN=glpat-YOUR-TOKEN-HERE
# Optional (defaults to https://gitlab.com)
GITLAB_URL=https://gitlab.comClaude Code
Add to your MCP configuration:
{
"mcpServers": {
"gitlab": {
"command": "uvx",
"args": ["qodev-gitlab-mcp"],
"env": {
"GITLAB_TOKEN": "your-token-here",
"GITLAB_URL": "https://gitlab.com"
}
}
}
}Quick Start
Once configured, the MCP server gives your AI assistant access to GitLab. Example interactions:
"Is my MR ready to merge?" -- checks pipeline, approvals, and unresolved discussions
"Create a merge request for this branch" -- creates MR with auto-detected source branch
"Wait for the pipeline to finish" -- monitors pipeline and reports results with failed job logs
"Comment on MR !42 saying LGTM" -- posts a comment on the merge request
Features
Merge request management (create, comment, merge, close, inline comments)
Pipeline monitoring with
wait_for_pipelinetoolIssue tracking (create, update, close, comment)
Release management
CI/CD variable management
File uploads with image support
Automatic "current" project/branch detection via MCP workspace roots
Tools
The server exposes the following MCP tools:
Merge Requests
Tool | Description |
| Create a new merge request |
| Update MR title, description, labels, assignees, reviewers |
| Merge a merge request |
| Close a merge request (with optional comment) |
| Leave a comment on a merge request |
| Add an inline comment on a specific line in a MR diff |
| Reply to an existing discussion thread |
| Resolve or unresolve a discussion thread |
Pipelines
Tool | Description |
| Wait for a pipeline to complete and return results |
| Download a job artifact to local filesystem |
| Retry a failed CI/CD job |
Issues
Tool | Description |
| Create a new issue |
| Update an existing issue |
| Close an issue |
| Leave a comment on an issue |
Releases
Tool | Description |
| Create a new release with tag, description, and assets |
CI/CD Variables
Tool | Description |
| Create or update a CI/CD variable (upsert) |
Files
Tool | Description |
| Upload a file to GitLab for embedding in issues or MRs |
All tools support project_id="current" to auto-detect the project from the current working directory. Merge request tools also support mr_iid="current" to detect the MR for the current branch.
Resources
The server exposes the following read-only MCP resources:
Projects
Resource URI | Description |
| List all accessible projects |
| Get project details |
Merge Requests
Resource URI | Description |
| List open merge requests |
| Full MR overview (metadata, discussions, changes, commits, pipeline, approvals) |
| Lightweight merge-readiness check |
| MR discussion threads |
| MR diff/changes |
| MR commit history |
| MR approval status |
| Jobs from the MR's latest pipeline |
Pipelines & Jobs
Resource URI | Description |
| List recent pipelines |
| Get pipeline details |
| List jobs in a pipeline |
| Full job log output |
| List job artifacts |
| Read a specific artifact file |
Issues
Resource URI | Description |
| List open issues |
| Get issue details |
| Get issue comments |
Releases
Resource URI | Description |
| List all releases |
| Get release by tag |
CI/CD Variables
Resource URI | Description |
| List CI/CD variables (metadata only, values hidden) |
| Get variable metadata by key |
Help
Resource URI | Description |
| Server capabilities and usage guide |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qodevai/gitlab-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server