Skip to content

Introduction

GitLab MCP Server is a Model Context Protocol server that provides AI agents with access to the GitLab API.

Features

  • 44 tools across 18 entity types covering the full GitLab API
  • CQRS patternbrowse_* for read operations, manage_* for writes
  • Multiple transports — stdio, SSE, and StreamableHTTP
  • OAuth 2.1 — Per-user authentication for teams via Claude Custom Connector
  • Read-only mode — Safe operation for production environments
  • Auto-discovery — Detects GitLab config from git remotes
  • Fine-grained control — Enable/disable tool groups, filter actions, customize descriptions
  • Tier detection — Automatically enables features based on your GitLab tier

Requirements

  • Node.js >= 24.0.0 (required for native fetch with Undici dispatcher pattern)
  • GitLab — Compatible with GitLab.com and self-hosted instances

Architecture

The server uses a CQRS (Command Query Responsibility Segregation) pattern:

PatternPrefixPurposeExample
Querybrowse_*Read-only operationsbrowse_merge_requests
Commandmanage_*Write operationsmanage_merge_request

Each tool accepts an action parameter that selects the specific operation. This consolidates what would be many individual tools into a manageable set optimized for AI context windows.

Next Steps

Released under the Apache 2.0 License.