# gitlab-mcp [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/mmedum/gitlab-mcp  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gitlab-mcp-2

## Description
GitLab over MCP from your own account: issues, merge requests, reviews, the repository and CI.

## Tools
Capabilities this server exposes over MCP:

- **get_me** — Who is signed in, with which scopes, and what GitLab reports about itself
- **resolve_url** — Turn a GitLab web URL into the arguments another tool takes, and name that tool
- **search_projects** — Find projects by name, or within a group
- **get_project** — One project: default branch, visibility, what it has turned on
- **list_members** — Who has access to a project, and with which role
- **find_users** — Accounts by exact username or by name
- **search_issues** — Find issues across gitlab.com, a group or a project
- **get_issue** — One issue, its description marked as untrusted content, and its linked merge requests
- **create_issue** — Create an issue; labels, assignees and milestone checked first
- **update_issue** — Change an issue's fields, refused if it changed since you read it
- **list_discussions** — The comment threads on an issue or a merge request
- **list_item_events** — An issue's or a merge request's label, state, milestone and weight changes, newest first
- **add_comment** — Comment on an issue or merge request, reply in a thread, or start one, on a diff line or not
- **update_comment** — Edit one of your own comments in place, in its thread and on its diff line
- **resolve_discussion** — Resolve or reopen a thread on a merge request or an issue
- **link_issues** — Link two issues, in one project or two
- **unlink_issues** — Remove the link between two issues
- **link_merge_requests** — Make one merge request wait for another to merge, in one project or two
- **unlink_merge_requests** — Remove a dependency between two merge requests
- **search_merge_requests** — Find merge requests across gitlab.com or a project
- **get_merge_request** — One merge request with its approvals, reviewer states, linked issues and dependencies
- **list_mr_files** — The files a merge request changes, with line counts and GitLab's markers
- **get_mr_diff** — A merge request's diffs, file by file, bounded
- **list_mr_commits** — A merge request's commits
- **list_mr_versions** — A merge request's diff versions, one per push
- **compare_mr_versions** — What changed between two versions of a merge request, or since one
- **create_merge_request** — Open a merge request from a branch
- **update_merge_request** — Change a merge request's fields, refused if it changed since you read it
- **track_time** — Set or reset an issue's or a merge request's time estimate, and add or reset its time spent
- **add_review_comment** — A draft review comment, on the merge request or a diff line
- **list_review_comments** — Your unpublished review comments on a merge request
- **delete_review_comment** — Delete one of your drafts
- **update_review_comment** — Change the text of one of your drafts, keeping its place
- **publish_review_comment** — Publish one of your drafts on its own
- **submit_review** — Publish all your drafts at once, with a summary and reviewer state
- **rerequest_review** — Ask a reviewer for a new review once their requested changes are addressed
- **get_file** — A file at a ref, bounded
- **list_tree** — A directory listing at a ref
- **list_branches** — A project's branches
- **list_commits** — Commits on a ref or a path
- **get_commit** — One commit and its diff, bounded, and the merge requests that contain it
- **compare_refs** — The commits and diffs between two refs, bounded
- **list_tags** — A project's tags
- **create_branch** — Create a branch from a ref
- **create_commit** — Commit file changes to a branch; never the default or a protected one
- **get_blame** — Who last changed each line of a file, bounded
- **cherry_pick_commit** — Apply a commit to a branch; never the default or a protected one
- **revert_commit** — Undo a commit on a branch with a new one; never the default or a protected one
- **list_pipelines** — A project's CI pipelines
- **get_pipeline** — One pipeline with the jobs that failed, trigger jobs included
- **list_jobs** — A pipeline's jobs
- **get_job_log** — A window of a job's log, secrets masked; the failing section on request
- **get_test_report** — A pipeline's test counts and failed cases, secrets masked, bounded
- **lint_ci** — Check a project's CI configuration at a ref, or configuration you pass
- **list_job_artifacts** — The files a job kept as artifacts
- **get_job_artifact** — One text file of a job's artifacts, secrets masked, bounded
- **list_labels** — The labels a project's issues and merge requests can carry
- **list_milestones** — A project's or a group's milestones
- **list_boards** — A project's issue boards and their lists, each with the `search_issues` arguments that read it
- **search** — Code, commits, comments and more, in a project, a group or everywhere
- **list_todos** — Your to-do items
- **mark_todos_done** — Mark your to-do items done
- **add_todo** — Add a to-do for yourself on an issue or a merge request
- **subscribe** — Subscribe to an issue's or a merge request's notifications, or unsubscribe
- **react** — Add or remove your emoji reaction on an issue, a merge request or a comment
- **upload_file** — Upload an image from a directory you allowed and get the Markdown that shows it in a comment or description
- **merge_merge_request** — Merge at the head you reviewed, or when the pipeline succeeds (Ship)
- **cancel_auto_merge** — Stop a merge request merging when its pipeline succeeds (Ship)
- **approve_merge_request** — Approve at the head you reviewed (Ship)
- **unapprove_merge_request** — Withdraw your approval (Ship)
- **apply_suggestions** — Commit suggestions from a merge request's diff comments to its source branch; never a protected one (Ship)
- **rebase_merge_request** — Rebase a merge request's source branch, from the head you reviewed (Ship)
- **move_issue** — Move an issue to another project, never to one more people can see (Ship)
- **run_pipeline** — Run a pipeline for a ref, with variables whose values are never shown (Ship)
- **run_merge_request_pipeline** — Run a merge request's pipeline, merged results or detached as GitLab picks; not for a fork's merge request (Ship)
- **retry_pipeline** — Retry a pipeline's failed and canceled jobs (Ship)
- **retry_job** — Run a finished job again, with inputs (Ship)
- **play_job** — Start a manual job, with variables and inputs (Ship)
- **cancel_pipeline** — Cancel a running pipeline (Ship)
- **delete_branch** — Delete a branch; never the default, a protected or an unmerged one unless asked (Destructive)

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/mmedum/gitlab-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
go install github.com/mmedum/gitlab-mcp/v4/cmd/gitlab-mcp@latest
```

2. Sign in:

```sh
gitlab-mcp login --client-id <application id>
```

3. Add to Claude Code:

```sh
claude mcp add gitlab -- gitlab-mcp
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/gitlab-mcp-2/readme_

