GitLab MCP
Provides tools for managing GitLab repository workflows, including branches, merge requests, code review, issues, discussions, labels, milestones, pipelines, jobs, artifacts, variables, environments, releases, protected refs, 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., "@GitLab MCPlist merge requests assigned to me"
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 MCP
FastMCP plugin for GitLab repository workflows. The compatibility target is GitLab 16.11.10 with the GitLab API v4, using uv, fastmcp, and python-gitlab.
The current catalog exposes 141 repository-centered MCP tools. Destructive tools, such as deletes, cancel, stop, unprotect, and merge acceptance, require an exact confirm string before they call GitLab.
Personas
Tech Lead: repository health, branches, merge requests, code review, approval posture, discussions, and protections.
PO: issues, issue discussions, labels, milestones, release state, delivery status, and release links.
Dev: repository tree, files, commits, branches, merge requests, diff versions, review discussions, and pipeline feedback.
DevOps: pipelines, jobs, artifacts, variables, environments, releases, protected refs, and external checks.
Related MCP server: GitLab MCP Server
Configuration
Set these environment variables before starting the MCP server:
export GITLAB_URL="https://gitlab.example.com"
export GITLAB_TOKEN="glpat-..."Optional variables:
GITLAB_OAUTH_TOKENGITLAB_JOB_TOKENGITLAB_SSL_VERIFY(trueorfalse, defaulttrue)GITLAB_MCP_USE_SYSTEM_TRUSTSTORE(trueorfalse, defaulttrue)GITLAB_TIMEOUT(seconds, default30)GITLAB_API_VERSION(default4)GITLAB_MCP_LOG_LEVEL(DEBUG,INFO,WARNING,ERROR, defaultINFO)GITLAB_MCP_LOG_JSON(trueorfalse, defaultfalse)GITLAB_MCP_LOG_BACKTRACE(trueorfalse, defaultfalse)GITLAB_MCP_LOG_DIAGNOSE(trueorfalse, defaultfalse)GITLAB_MCP_LOG_ENQUEUE(trueorfalse, defaultfalse)GITLAB_MCP_LOG_FORMAT(Loguru format string)
Logs are written to stderr so they do not interfere with MCP stdio transport.
When TLS verification is enabled, truststore is used by default so Python can
validate GitLab certificates against the local operating system trust store.
Run
uv sync --dev
uv run gitlab-mcpThe plugin manifest points Codex to .mcp.json, which runs the same command through uv.
Tests
uv run pytest tests/unit -qThe GitLab 16.11.10 E2E test is opt-in because the container is large and slow:
GITLAB_MCP_RUN_E2E=1 uv run pytest tests/e2e -m real_gitlab -qThe E2E suite starts one GitLab 16.11.10 container and runs workflow tests for repository operations, issue planning, merge request review and diff versions, commit collaboration, protected tags, release links, and DevOps/release metadata.
See docs/tool-catalog.md for the full tool list and docs/collaboration-tool-matrix.md for the role matrix behind notes and discussion tools.
See docs/architecture.md for the hexagonal architecture boundaries and tool registration flow.
See docs/mcp-exposition.md for the MCP safety annotations, metadata, and error handling conventions.
See docs/python-gitlab-audit.md for the executable audit matrix against python-gitlab manager metadata.
See docs/python-gitlab-tool-matrix.md for the per-tool mapping to python-gitlab functions and managers.
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
- 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/yunusb/gitlab-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server