MCP SERVER PROFILE · Development
Development

GitLab MCP Server

GitLab MCP integration for merge requests, issues, repositories, branches, projects, code reviews and additional on-demand toolsets for CI/CD and administration.

GitHub stars18400
Setup options1
Documented tools40
Maintained byzereight

Overview

Community-maintained GitLab MCP server supporting merge requests, issues, repository files, branches, projects, code reviews and CI/CD workflows. Includes 40 default tools and additional toolsets available on demand.

gitlabgitdevopsmerge-requestsissuesci-cdcode-reviewrepositories

Installation & configuration 1 documented option

Choose the configuration documented for your client. Replace placeholders with your own values, and review the maintainer documentation before connecting.

NPX - Maintained GitLab MCP

Claude Desktop

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab@latest"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "REPLACE_WITH_TOKEN",
        "GITLAB_API_URL": "https://gitlab.com/api/v4"
      }
    }
  }
}

Maintainer-documented installation. Requires GitLab access credentials. Configuration has not been runtime-tested by FreeMCP.

Read maintainer installation documentation ↗

Before you install

  • Node.js and npm or another supported installation method.
  • A GitLab account and personal access token with appropriate permissions, or supported OAuth authentication.
  • Configure GITLAB_PERSONAL_ACCESS_TOKEN and GITLAB_API_URL.
  • Use discover_tools to enable optional toolsets as needed.

Documented tools 40

Capabilities provided in the listing metadata. Check upstream documentation for current availability and parameters.

list_merge_requests

List merge requests.

get_merge_request

Retrieve merge request details.

get_merge_request_approval_state

Read merge request approvals.

list_merge_request_changed_files

List changed files in a merge request.

get_merge_request_file_diff

Retrieve diffs for selected merge request files.

list_merge_request_diffs

List merge request diffs.

get_merge_request_diffs

Retrieve merge request changes.

mr_discussions

List merge request discussion threads.

get_merge_request_discussion

Read a merge request discussion.

get_merge_request_note

Read a merge request note.

get_merge_request_notes

List merge request notes.

create_merge_request

Create a merge request.

create_merge_request_thread

Create a merge request discussion thread.

resolve_merge_request_thread

Resolve a merge request thread.

update_merge_request

Update a merge request.

list_issues

List GitLab issues.

my_issues

List issues relevant to the authenticated user.

get_issue

Retrieve issue details.

create_issue

Create a GitLab issue.

update_issue

Update an issue.

create_issue_note

Add an issue note.

list_issue_discussions

List issue discussions.

update_issue_description_patch

Patch an issue description.

get_file_contents

Read repository file contents.

get_repository_tree

Browse a repository tree.

search_repositories

Search GitLab repositories.

get_branch

Retrieve branch information.

list_branches

List repository branches.

list_commits

List repository commits.

get_commit

Retrieve commit details.

get_commit_diff

Retrieve commit differences.

get_file_blame

Retrieve file blame information.

get_project

Retrieve project details.

list_projects

List GitLab projects.

list_project_members

List project members.

list_labels

List GitLab labels.

whoami

Identify the authenticated GitLab user.

health_check

Check GitLab MCP connectivity.

discover_tools

Discover and activate additional tool categories.

help

Get guidance on GitLab MCP tools and usage.

Listed on FreeMCP badge

Maintaining this MCP server? Add this optional badge to your GitHub README so visitors can find its FreeMCP listing. Listing is not a security certification or independent verification.

MCP — Listed on FreeMCP

[![Listed on FreeMCP](https://freemcp.in/badges/listed.svg)](https://freemcp.in/servers/gitlab-mcp)

Security & permissions

  • Use a least-privilege GitLab access token and protect it from disclosure.
  • Read-only permission mode can restrict write operations.
  • Additional toolsets may expose sensitive or destructive operations; enable only those required.
  • The raw API toolset can bypass some tool-level safety restrictions and requires explicit opt-in.

See the installation and security guide for a setup checklist.

Buy me a beer