Skip to main content
ClaudeWave

A robust, developer-ready, and LLM-ergonomic Model Context Protocol (MCP) server for both self-hosted GitLab Community Edition (CE) and GitLab Enterprise Edition (EE).

MCP ServersOfficial Registry1 stars0 forks● JavaScriptMITUpdated today
ClaudeWave Trust Score
87/100
✓ Trusted
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Documented (README)
Last scanned: 10/16/2026
Install in Claude Code / Claude Desktop
Method: NPX · @sumirati/mcp-gitlab
Claude Code CLI
claude mcp add mcp-gitlab -- npx -y @sumirati/mcp-gitlab
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-gitlab": {
      "command": "npx",
      "args": ["-y", "@sumirati/mcp-gitlab"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

# GitLab MCP Server (`@sumirati/mcp-gitlab`)

A modern, 2026 AI-native Model Context Protocol (MCP) server for GitLab API v4, engineered for self-hosted GitLab Community Edition (CE), Enterprise Edition (EE), and GitLab.com.

[![npm version](https://img.shields.io/npm/v/@sumirati/mcp-gitlab.svg)](https://www.npmjs.com/package/@sumirati/mcp-gitlab)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
[![GitHub](https://img.shields.io/badge/GitHub-sumirati%2Fmcp--gitlab-181717?logo=github)](https://github.com/sumirati/mcp-gitlab)
[![GitLab](https://img.shields.io/badge/GitLab-sumirati%2Fmcp--gitlab-FC6D26?logo=gitlab)](https://gitlab.com/sumirati/mcp-gitlab)

---

## What makes v3.0.0 Unique: The 2026 5-Tool Hybrid Standard

In early MCP servers, dumping 50–100 tools into the client's tool list consumed **10,000+ prompt context tokens on every turn** ("System Prompt Tax") and resulted in poor Coherence ratings on the **[Glama TDQS](https://github.com/glama-ai/tool-definition-quality-score)** rubric.

`@sumirati/mcp-gitlab` v3 solves this with a **5-Tool Hybrid Surface**:
- **Glama TDQS Coherence Tier A (5/5)**: By exposing exactly 5 tools to the client, the server sits in the ideal 3–15 tool coherence sweet spot.
- **Ultra-Lean System Prompt Tax**: Drops schema overhead from ~11,200 tokens to **~450 tokens** (96% reduction), preserving context windows and maximizing LLM prompt-cache hits.
- **Zero-Hop Hourly Drivers**: The 3 operations developers and agents actually use constantly during pair-programming (`get_file_contents`, `get_project`, `get_commit`) remain eager tools for instant zero-hop execution.
- **100% Platform Access on Demand**: The entire platform surface of **86 actions across 14 domains** is accessible on-demand via dynamic action discovery (`gitlab_find_actions` $\rightarrow$ `gitlab_execute_action`), supporting both JSON and Markdown output (`format: "json" | "markdown"`).
- **Resilient Fallback**: If an agent directly invokes any catalog action name (e.g. `list_pipelines`), the server dynamically executes it with full input validation and projection.

```text
LLM Prompt Context (~450 tokens total):
├── 1. gitlab_find_actions(query, [domain], [format])     [Meta Discovery]
├── 2. gitlab_execute_action(action, params, [format])   [Meta Dynamic Execution]
├── 3. get_file_contents(projectId, filePath)             [Eager Daily Driver #1]
├── 4. get_project(projectId)                             [Eager Daily Driver #2]
└── 5. get_commit(projectId, sha)                         [Eager Daily Driver #3]

Under the hood (Dynamic Registry):
└── 86 Curated Actions across 14 Domains (with 77%–98% token reduction projections)
```

---

## Core Capabilities Across 14 Domains

1. **Enterprise Observability & Self-Hosted Operations**:
   - **System Health Diagnostics**: End-to-end connectivity, token identity verification, and API latency testing (`system_health_check`).
   - **Push Mirrors**: Verify upstream replication to GitHub/GitLab.com (`list_push_mirrors`) and force immediate sync (`trigger_push_mirror_sync`).
   - **CI Runners**: Audit runner health, online/paused status, and tags (`list_runners`, `get_runner_status`).
   - **Webhooks**: Inspect registered automation hooks (`list_project_hooks`).
2. **Repository & Branch Governance**: Project CRUD, group hierarchy resolution (`buggycode/project-name`), branch lifecycle, branch protection management (`list_protected_branches`, `protect_branch`, `unprotect_branch`), file reading, and atomic multi-file commits (`push_files`).
3. **CI/CD Observability**: Query pipelines by status, tail failed job logs (`get_job_trace`) without token blowout, read build artifacts, and inspect JUnit test reports.
4. **Merge Request Reviews & Diff Discussions**: Two-stage diff inspection, automated lockfile pruning (`package-lock.json`), and inline diff discussions with SHA coordinate resolution.
5. **Issues & Task Planning**: CRUD issues, track blockers/dependencies (`issue_links`), and add progress notes (`issue_notes`).
6. **Milestones & Labels**: Human-readable milestone resolution, label creation, and scoped milestone inspection.
7. **Wikis & Snippets**: Documentation outline slicing (`toc_only: true`), chapter extraction, and snippet management.
8. **User & Identity Context**: Authenticated identity lookup, group enumeration, and owned project discovery.

---

## Quickstart & Installation

### Option 1: Run with `npx` (No installation needed)

```bash
npx -y @sumirati/mcp-gitlab
```

### Option 2: Install Globally

```bash
npm install -g @sumirati/mcp-gitlab
mcp-gitlab
```

### Option 3: Local Clone

```bash
git clone https://github.com/sumirati/mcp-gitlab.git
cd mcp-gitlab
npm install
npm test
npm start
```

---

## Environment Configuration

| Variable | Required | Default | Description |
| :--- | :---: | :--- | :--- |
| `GITLAB_PERSONAL_ACCESS_TOKEN` | **Yes** | — | Personal access token with `api` scope. |
| `GITLAB_API_URL` | No | `https://gitlab.com/api/v4` | Base API URL of your GitLab CE/EE or cloud instance. |
| `GITLAB_READ_ONLY` | No | `false` | Enable Read-Only safety mode (`true`, `1`, `yes`). Filters out mutating tools and strictly blocks write/modify HTTP requests across all 86 actions. |
| `GITLAB_EXPOSE_ALL_TOOLS` | No | `false` | Set to `true` (or `GITLAB_EXPOSE_LEGACY_TOOLS=true`) to disable the 5-tool hybrid surface and expose all 86 tools directly on `ListTools` for legacy clients. |

---

## Client Configuration

### Google Antigravity / Claude Desktop / Cursor

Add to your MCP configuration file (`mcp_config.json` or `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@sumirati/mcp-gitlab"],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<your-gitlab-token>",
        "GITLAB_API_URL": "https://gitlab.example.com/api/v4"
      }
    }
  }
}
```

---

## Complete Action Catalog Reference (82 Actions)

All 82 actions feature strict input validation and field-mask projections (77%–98% token reduction):

### 1. The 5 Client-Exposed Tools (Hybrid Mode)
| Tool | Type | Description |
| :--- | :---: | :--- |
| `gitlab_find_actions` | Meta | Search and discover available GitLab operations across all 14 domains with compact parameter schemas |
| `gitlab_execute_action` | Meta | Execute any discovered GitLab platform action with input validation and token-optimized projection |
| `get_file_contents` | Eager | Read raw file contents or directory listings from any branch or commit ref without cloning |
| `get_project` | Eager | Retrieve project metadata, project ID, visibility, clone URLs, and default branch |
| `get_commit` | Eager | Inspect Git commit details, author info, and token-capped file diffs |

### 2. Enterprise & Self-Hosted Operations (5 actions)
| Action | Description | Mutating? |
| :--- | :--- | :---: |
| `list_push_mirrors` | List remote push mirrors and synchronization status for a project | No |
| `trigger_push_mirror_sync` | Force an immediate push mirror sync (e.g. local self-hosted to GitHub) | **Yes** |
| `list_runners` | List CI/CD runners (instance, group, or project level) with online/paused status | No |
| `get_runner_status` | Get detailed health metrics, architecture, tags, and contact time for a runner | No |
| `list_project_hooks` | List configured project webhooks and subscribed event triggers | No |

### 3. Repository & Project Management (7 actions)
| Action | Description | Mutating? |
| :--- | :--- | :---: |
| `search_repositories` | Search projects by name across GitLab or scoped to a group | No |
| `create_repository` | Provision a new project in personal namespace or group | **Yes** |
| `update_project` | Update project display name, description, default branch, or topics | **Yes** |
| `delete_project` | Permanently delete a project (requires explicit safety confirmation) | **Yes** |
| `create_or_update_file` | Create or update a single file with an immediate Git commit | **Yes** |
| `push_files` | Atomically commit multiple file additions, edits, or deletions in one commit | **Yes** |
| `fork_repository` | Fork an existing project into a designated user namespace or group | **Yes** |

### 4. Branch Governance (4 actions)
| Action | Description | Mutating? |
| :--- | :--- | :---: |
| `list_branches` | List repository branches with latest commit summaries and protected status | No |
| `get_branch` | Get details for a specific branch including commit author and protection | No |
| `create_branch` | Create a new branch starting from an existing branch, tag, or SHA | **Yes** |
| `delete_branch` | Delete a Git branch (default branch deletion is strictly blocked) | **Yes** |

### 5. Git Commits & History (1 action)
| Action | Description | Mutating? |
| :--- | :--- | :---: |
| `list_commits` | List chronological commit history filtered by branch, date, or file path | No |

### 6. Pipelines & CI/CD Observability (8 actions)
| Action | Description | Mutating? |
| :--- | :--- | :---: |
| `list_pipelines` | List pipelines filtered by branch, commit SHA, or execution status | No |
| `get_pipeline` | Get pipeline execution details, durations, and overall status | No |
| `create_pipeline` | Trigger a new CI/CD pipeline on a designated branch or tag | **Yes** |
| `cancel_pipeline` | Cancel an in-progress pipeline run | **Yes** |
| `retry_pipeline` | Retry failed or canceled jobs in a pipeline run | **Yes** |
| `list_pipeline_jobs` | List individual jobs in a pipeline with stages, status, and duration | No |
| `get_job_trace` | Safely tail raw job build/test logs with line limits to prevent context blowout | No |
| `get_job_artifact_file` | Read a specific file from a completed job's build artifacts | No |

### 7. Merge Requests & Code Reviews (12 actions)
| Action | Description | Mutating? |
| :--- | :--- | :---: |
| `list_merge_requests` | List project MRs filtered by state (`opened`, `merged`, `closed`), source/target | No |
| `get

What people ask about mcp-gitlab

What is sumirati/mcp-gitlab?

+

sumirati/mcp-gitlab is mcp servers for the Claude AI ecosystem. A robust, developer-ready, and LLM-ergonomic Model Context Protocol (MCP) server for both self-hosted GitLab Community Edition (CE) and GitLab Enterprise Edition (EE). It has 1 GitHub stars and its last recorded update is dated 2026-10-16.

How do I install mcp-gitlab?

+

You can install mcp-gitlab by cloning the repository (https://github.com/sumirati/mcp-gitlab) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is sumirati/mcp-gitlab safe to use?

+

Our security agent has analyzed sumirati/mcp-gitlab and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains sumirati/mcp-gitlab?

+

sumirati/mcp-gitlab is maintained by sumirati. The last recorded GitHub activity is dated 2026-10-16, with 0 open issues.

Are there alternatives to mcp-gitlab?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy mcp-gitlab to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: sumirati/mcp-gitlab
[![Featured on ClaudeWave](https://claudewave.com/api/badge/sumirati-mcp-gitlab)](https://claudewave.com/repo/sumirati-mcp-gitlab)
<a href="https://claudewave.com/repo/sumirati-mcp-gitlab"><img src="https://claudewave.com/api/badge/sumirati-mcp-gitlab" alt="Featured on ClaudeWave: sumirati/mcp-gitlab" width="320" height="64" /></a>

More MCP Servers

mcp-gitlab alternatives