Version Control · Developer Tools

GitLab MCP logo

GitLab MCP

Adit-999/gitlab-mcp

A MCP (Model Context Protocol) server for interacting with GitLab API. This server provides a set of tools that allow AI clients to perform operations on GitLab repositories, issues, merge requests, and more. All operations support both synchronous and asynchronous execution patterns.

Install

Client configuration

{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/path/to/gitlab-mcp/server.py"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<GITLAB_PERSONAL_ACCESS_TOKEN>",
        "GITLAB_API_URL": "<GITLAB_API_URL>"
      }
    }
  }
}

Environment variables

GITLAB_PERSONAL_ACCESS_TOKENGITLAB_API_URL
Author
@Adit-999
Category
Version Control, Developer Tools
License
MIT
Updated
Oct 6, 2026

Tools (31)

  • create_repository

    Create a new GitLab repository

  • create_branch

    Create a new branch in a GitLab repository

  • get_branch

    Get details for a specific GitLab branch

  • delete_branch

    Delete a branch from a GitLab repository

  • delete_merged_branches

    Delete all merged branches from a GitLab repository

  • protect_branch

    Protect a branch in a GitLab repository

  • unprotect_branch

    Remove protection from a branch in a GitLab repository

  • get_default_branch_ref

    Get the default branch reference for a GitLab repository

  • create_file

    Create a new file in a GitLab repository

  • get_file_contents

    Retrieve the contents of a file from a GitLab repository

  • update_file

    Update an existing file in a GitLab repository

  • delete_file

    Delete a file from a GitLab repository

  • create_issue

    Create a new issue in a GitLab repository

  • get_issue

    Get details for a specific GitLab issue

  • close_issue

    Close a GitLab issue

  • delete_issue

    Delete an issue from a GitLab repository

  • move_issue

    Move an issue to a different project

  • comment_on_issue

    Add a comment to a GitLab issue

  • create_merge_request

    Create a new merge request in a GitLab repository

  • get_merge_request

    Get details for a specific GitLab merge request

  • merge_merge_request

    Merge a GitLab merge request

  • update_merge_request

    Update an existing merge request in a GitLab repository.

  • delete_merge_request

    Delete a merge request from a GitLab repository.

  • merge_request_changes

    Get the changes for a specific merge request.

  • create_merge_request_comment

    Add a comment to a GitLab merge request.

  • get_job_logs

    Get logs from a GitLab job

  • get_group

    Get a specific GitLab group

  • get_group_by_project_namespace

    Get a GitLab group based on a project namespace

  • search_globally

    Search across all GitLab resources (currently supports projects and files/blobs).

  • search_project

    Search within a specific project (currently supports projects and files/blobs).

  • search_group

    Search within a specific group (currently supports projects and files/blobs).

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
core logo

core

opensumi/core

3.3k

A framework helps you quickly build AI Native IDE products.

Version Control
test1 logo

test1

trpc-group/trpc-go

942

tRPC-Go, is the Go language implementation of tRPC, which is a pluggable, high-performance RPC framework.

Version Control
AI-Gateway logo

AI-Gateway

Azure-Samples/AI-Gateway

565

New! The AI Gateway Dev Portal is now live — A starting point for building your own developer portal on top of Azure API Management AI Gateway's. Fork it, open it in VS Code with GitHub Copilot (or any coding agent), and shape it to fit your needs!

Version Control
e2b logo

e2b

e2b-dev/mcp-server

233

Deprecated: This project is no longer actively maintained. It may not receive further updates or bug fixes.

Version Control
MCP Git Ingest logo

MCP Git Ingest

adhikasp/mcp-git-ingest

180

A Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.

Version Control
gitlab mcp logo

gitlab mcp

zereight/gitlab-mcp

70

Documentation → Setup guides, environment variables, and the full tool reference live on the hosted docs site.

Version Control