GitLab MCP Server

Stabledevelopment
890 starsTypeScriptAnthropic
GitHubnpm
About

Overview

The GitLab MCP Server enables AI agents to interact with GitLab instances. It provides tools for managing projects, creating merge requests, filing issues, browsing repository contents, and interacting with CI/CD pipelines. Supports both GitLab.com and self-hosted instances.
Capabilities

Tools & Capabilities

create_issue

Create a new GitLab issue

create_merge_request

Create a merge request

list_projects

List projects accessible to the user

get_file_contents

Get file contents from a repository

list_pipelines

List CI/CD pipelines for a project

search_code

Search code across projects

Setup

Installation

bash
Install
npx -y @modelcontextprotocol/server-gitlab
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-gitlab"],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-your-token",
        "GITLAB_API_URL": "https://gitlab.com/api/v4"
      }
    }
  }
}

Quick Info

AuthorAnthropic
LanguageTypeScript
StatusStable
Stars 890
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.