Gitlab MCP logo

Gitlab MCP

Connects an AI agent to your GitLab account for issues, merge requests, code, reviews, and CI through stdio.

Install Gitlab MCP

Run the project’s own setup commands, in order.

Setup steps from the project

gitlab-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    go install github.com/mmedum/gitlab-mcp/v4/cmd/gitlab-mcp@latest
    
  2. 2. Sign in
    gitlab-mcp login --client-id <application id>
    
  3. 3. Add to Claude Code
    claude mcp add gitlab -- gitlab-mcp
    

Overview

gitlab-mcp connects an AI agent to gitlab.com through a single stdio binary authenticated as your GitLab account. It covers project discovery, issues, merge requests, code and repository operations, review workflows, and CI inspection or execution. Changes use safeguards such as stale-read checks, protected-branch restrictions, bounded diffs and logs, and gated tool registration. Reach for it when an agent needs to inspect or modify project work without exposing a full GitLab API mirror.

Use cases

  • Search GitLab projects, issues, merge requests, and code
  • Review merge request diffs and publish structured feedback
  • Create branches, commits, issues, and merge requests
  • Inspect failed CI jobs and rerun selected pipeline work

Key features

  • GitLab account authentication over stdio
  • Issue and merge request lifecycle management
  • Draft and published merge request reviews
  • Repository browsing and commit operations
  • Pipeline, job, test, and artifact inspection
  • Bounded untrusted-content handling and write safeguards

Tools80

What Gitlab MCP lets your agent do. Expand a tool for its parameters.

Self-reported~1.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 62d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit5d agoMost recent push to the default branch.
Tools exposed80Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Gitlab MCP works

What gitlab-mcp does

gitlab-mcp exposes GitLab project workflows through MCP and acts on behalf of the signed-in account. Its coverage includes project and membership lookup, issue and merge request management, discussions, review comments, repository files and history, branches, commits, tags, snippets, wikis, labels, milestones, todos, subscriptions, reactions, and uploads for use in comments or descriptions.

The server also covers GitLab CI operations. Agents can inspect pipelines, jobs, logs, test reports, and artifacts; validate CI configuration; run or retry pipelines and jobs; start manual jobs; and cancel running pipelines. Merge-request actions include approvals, merging, rebasing, applying suggestions, and requesting another review.

How it works

The server runs as one binary over standard input and output. Authentication is tied to the user's GitLab account, using an OAuth application and browser sign-in, or a token stored in the operating system keyring. Requests operate against gitlab.com and use the account's available permissions and scopes.

Tool availability is controlled through registration: disabled tools are not registered and therefore cannot be called. The tool surface is intentionally narrower than a direct API mirror. Read and write operations include workflow-specific checks, including refusing issue or merge request updates when the item changed after it was read.

Returned issue, review, file, and job-log content is marked as untrusted. Comment-writing operations do not execute quick actions embedded in text; commands such as /merge are refused or escaped. Diff and log retrieval is bounded, and secrets are masked in job logs, test reports, and text artifacts.

Setup and configuration

Run the released gitlab-mcp binary as an MCP server using the stdio transport. Sign in with an OAuth application through a browser, or provide authentication through a token held in the operating system keyring. The account must have the GitLab permissions required by the requested operation.

The project is an unofficial implementation and is not affiliated with GitLab Inc. Releases include signed checksums, build provenance, and software bills of materials.

Tools and capabilities

  • Find projects, users, issues, merge requests, code, commits, comments, and related items across GitLab, groups, or projects.
  • Create and update issues and merge requests, add or edit comments, manage discussions, link work items, and track time.
  • Review merge requests with file lists, bounded diffs, commits, diff versions, draft comments, approvals, and review submission.
  • Read and modify repository content through branches, commits, files, suggestions, cherry-picks, reverts, and blame information.
  • Inspect and operate CI pipelines, jobs, test results, artifacts, configuration, and masked logs.
  • Manage project metadata such as labels, milestones, boards, snippets, wikis, todos, subscriptions, and reactions.

Limitations and notes

Instance administration, group administration, runners, CI variables, and tokens are outside the server's scope. Destructive operations are restricted: for example, branch deletion excludes default, protected, or unmerged branches unless explicitly requested, and issue movement will not make an issue visible to more people. Commits, cherry-picks, and suggestion applications cannot target the default or a protected branch.

Some operations are tied to the state that was reviewed. Merge, approval, rebase, and related actions use the head that was reviewed, while issue and merge request edits reject stale data. Merge-request pipeline execution does not support fork merge requests. Snippets created through the server are private, and confidential issues can be made public only through an explicit destructive operation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gitlab MCP

gitlab-mcp is an MCP server that connects AI agents to gitlab.com through a signed-in GitLab account. Its main tools search and manage projects, issues, merge requests, reviews, repository content, pipelines, jobs, comments, and related project work over standard input and output.

Run the gitlab-mcp released binary as an MCP server over stdio. Authentication uses a browser-based OAuth flow with your own application or a token stored in the operating system keyring. The server runs as a single binary.

Yes, gitlab-mcp can list and inspect pipelines and jobs, retrieve bounded masked logs, read test reports and artifacts, lint CI configuration, run or retry pipelines, start manual jobs, and cancel running pipelines.

Yes, it can create branches and commits, apply merge request suggestions, cherry-pick or revert commits, and manage files, subject to restrictions against default or protected branches for several write operations. It can also create and update issues and merge requests.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGitlab MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gitlab-mcp-2?style=directory)](https://allmcps.com/mcp/gitlab-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/gitlab-mcp-2"><img src="https://allmcps.com/api/badge/gitlab-mcp-2?style=directory" alt="Gitlab MCP on AllMCPs" /></a>