Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 90
  • 2.1k stars
  • 67 a week
  • MIT
  • Updated

Install MCP Gitlab

Built from the published package, never by AI.

claude mcp add mcp-gitlab -- npx -y @alfonsodg/mcp-gitlab

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Gitlab in Claude Code

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

A

No 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 →

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.

MCP Gitlab Install

Add to stack

Loading.