MCP Gitlab
MCP server by zereight Verified · npm:@alfonsodg
Lets AI assistants manage GitLab projects, merge requests, issues, pipelines, wiki, releases, tags and milestones through MCP. Built for developers and teams who want AI agents to work with GitLab.
Install MCP Gitlab
Built from the published package, never by AI.
claude mcp add mcp-gitlab -- npx -y @alfonsodg/mcp-gitlabRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-gitlab": {
"args": [
"-y",
"@alfonsodg/mcp-gitlab"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-gitlab": {
"args": [
"-y",
"@alfonsodg/mcp-gitlab"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-gitlab": {
"args": [
"-y",
"@alfonsodg/mcp-gitlab"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-gitlab -- npx -y @alfonsodg/mcp-gitlab{
"mcpServers": {
"mcp-gitlab": {
"args": [
"-y",
"@alfonsodg/mcp-gitlab"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-gitlab npx -y @alfonsodg/mcp-gitlabGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-gitlab block.
About
This GitLab MCP server, published as @zereight/mcp-gitlab, gives AI assistants structured tools for GitLab projects, merge requests, issues, pipelines, wiki, releases, tags and milestones. It runs over stdio, SSE or Streamable HTTP. It supports personal access tokens, OAuth, read-only mode, dynamic API URLs and remote authorization, and it works with custom GitLab instances.
By default the server exposes 40 tools to keep the tool list small. Assistants can call discover_tools to activate more categories for the current session. Merge request review uses a two-step flow: list the changed files, then fetch file diffs in batches. It is aimed at developers and teams who use AI agents with GitLab.
Written from the project's README and checked against it.
Tools it gives your assistant
list_merge_request_changed_filesLists the files changed in a merge request, as the first step of a review.get_merge_request_file_diffFetches diffs for merge request files in batches after the file list is known.get_pipeline_job_outputReturns pipeline job output with pagination.discover_toolsLists tool categories and activates one for the current session.helpAlways-on tool included in the default 40-tool set.execute_graphqlRuns GraphQL queries against GitLab, listed among the 291 total tools.gitlab_api_requestSends raw GitLab API requests. Only enabled when the api toolset is listed in GITLAB_TOOLSETS.
What you need
- A GitLab personal access token, or OAuth setup
- npm to install @zereight/mcp-gitlab, or Homebrew
- Docker, for the local Docker examples
Try asking
- Summarize the changed files in merge request 123 of group/project
- Show the output of a failed pipeline job in my GitLab project
- List open issues and milestones for my GitLab project
Good to know
- The default list is 40 tools. GITLAB_TOOLSETS=all loads about 73k schema tokens.
- The api toolset bypasses group and project allowlists and per-tool safety checks.
- Remote use with Claude.ai needs GITLAB_MCP_OAUTH on a public HTTPS host.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MCP Gitlab
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
MCP Gitlab: common questions
Do I need a GitLab token to use this server?
Local desktop use needs GITLAB_PERSONAL_ACCESS_TOKEN or GITLAB_PERSONAL_ACCESS_TOKEN_FILE, or local OAuth with GITLAB_USE_OAUTH=true. Multi-user HTTP can use REMOTE_AUTHORIZATION with a per-request token header.
Why does the server show only about 40 tools?
The default core toolset has 38 tools, plus discover_tools and help. The README says this keeps the schema sent to the model small, and discover_tools can activate more categories.
Is the api toolset safe to enable?
The README warns that gitlab_api_request bypasses allowlists and per-tool safety checks, and that prompt injection can drive it. It is enabled only by listing api in GITLAB_TOOLSETS.
How do I install MCP Gitlab?
In Claude Code run claude mcp add mcp-gitlab -- npx -y @alfonsodg/mcp-gitlab. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MCP Gitlab the official server?
MCP Gitlab is published by npm:@alfonsodg from its verified domain in the official MCP Registry.
Is MCP Gitlab free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is MCP Gitlab safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MCP Gitlab?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does MCP Gitlab work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
