gitlab-mcp-server
Provides tools for managing GitLab repositories, pipelines, CI/CD, security scans, runners, access tokens, and merge requests, enabling end-to-end GitLab DevOps automation.
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., "@gitlab-mcp-serverWhy did pipeline 12345 fail?"
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.
GitLab DevOps MCP Server
A Model Context Protocol (MCP) server that lets Claude Code (or any MCP client) operate GitLab end-to-end. ~50 typed tools covering the full DevOps lifecycle.
What it does
Category | Tools |
Repo & branch | clone, batch commit, branch creation, file ops |
Pipelines | trigger, monitor, retry, cancel |
CI generation | generate |
Security scans | SAST, DAST, secret detection, dependency, container scanning |
Pipeline failure analysis | log fetching, root-cause classification, suggested fix |
Runners | register local runners, pause/unpause, retag |
Access tokens | full lifecycle for personal / project / group tokens |
Merge requests | create, list, merge, comment |
Related MCP server: GitLab MR MCP
Why this exists
GitLab automation is normally split across glab, the GitLab API, ad-hoc Python scripts, and CI YAML. This MCP server exposes everything as a single set of typed tools that an AI agent (or human via chat) can call.
Install
pip install -r requirements.txt
cp .env.example .env
# Edit .env — set GITLAB_TOKENAdd to your MCP client config:
{
"mcpServers": {
"gitlab-devops": {
"command": "python3",
"args": ["/absolute/path/to/server.py"]
}
}
}Usage examples
In any MCP client:
"Generate a Terraform pipeline for project X"
"Why did pipeline 12345 fail?" → reads logs, classifies, suggests fix
"Run a SAST scan on the latest commit"
"List all my open MRs across all projects"
"Revoke the leaked access token in the my-org/my-repo group"
Architecture
Modular — each capability area lives in its own file under tools/:
tools/
├── gitlab_repo.py # repos, branches, files
├── gitlab_pipeline.py # CI/CD lifecycle
├── ci_generator.py # YAML scaffolding
├── gitlab_security.py # SAST / DAST / scans
├── gitlab_runner.py # runner registration
├── error_analyzer.py # log → root cause → fix
└── gitlab_tokens.py # access token lifecycleLicense
MIT — see LICENSE.
Support
See SUPPORT.md for community + commercial support.
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.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI agents to interact with GitLab repositories, manage merge requests, review code diffs, post comments, and handle issues directly through natural language.Last updated56MIT
- Alicense-qualityDmaintenanceEnables AI agents to interact with GitLab repositories, allowing them to manage merge requests and issues including listing projects, fetching MR details and diffs, adding comments, and updating MR titles and descriptions.Last updated5694MIT
- Flicense-quality-maintenanceEnables AI agents to interact with GitLab repositories, monitor documentation changes, manage issues and merge requests, and search across projects with comprehensive file and commit operations.Last updated
- Alicense-qualityDmaintenanceEnables AI assistants to interact seamlessly with self-hosted GitLab instances, supporting repository operations, issue management, merge requests, CI/CD pipelines, and more.Last updated5MIT
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
SaaS intelligence for AI agents. 5 unified tools cover 1,000+ services with 91-96% token savings.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/dkeeno/gitlab-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server