GitLab MCP Server

by your-username

An extensible GitLab MCP (Model Context Protocol) server supporting various GitLab operations and AI-driven code analysis. Requires external configuration via environment variables or config.json file for GitLab host and access token.

Developer toolsstdio or Streamable HTTPCommunity

Repository-wide counts · Cached 2026-03-15

Overview

The GitLab MCP Server MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.

Configuration

Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.

Open the GitLab MCP Server repository to read the latest documentation.

KEEP EXPLORING

Compare source, connection, and authentication details before choosing an implementation.

View the complete category

模型上下文协议服务器

modelcontextprotocol

Community

一组用于模型上下文协议(MCP)的参考实现,展示了对大型语言模型(LLM)工具和数据源的安全且受控的访问方式。

Context7 Platform - Up-to-date Code Docs For Any Prompt

upstash

Community

Context7 MCP server providing up-to-date, version-specific documentation and code examples for libraries, enabling coding agents to fetch accurate docs and code snippets. Requires an API key for higher rate limits, passed via CONTEXT7_API_KEY header.

Playwright MCP

Microsoft Corporation

Community

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. Enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

AIHawk

feder-cr

Community

AIHawk is an anti detect browser and web browsing agent, open source, with an MCP server for coding agents: undetected, no captchas, no blocks. It requires an OpenRouter API key for the standalone web UI mode, which can be provided via the --openrouter-key flag or the OPENROUTER_API_KEY environment variable or a .env file in the running directory.

FROM THE SOURCE

Repository README

Build-time snapshot · Retrieved 2026-10-05

View original

GitLab MCP Server

A Model Context Protocol (MCP) server for GitLab integration, enabling AI assistants to interact with GitLab merge requests, files, and perform intelligent code reviews.

TypeScript Node.js GitLab MCP

Documentation • User Guide (中文) • API Reference

Features

  • 🔄 MCP Protocol - Full compliance with the official MCP TypeScript SDK
  • 📡 stdio Transport - Compatible with Cursor, Claude Desktop, and other MCP clients
  • 🛠️ Complete MR Toolkit - Get MR details, changes, file contents, and more
  • 🤖 AI Code Review - Intelligent code analysis with inline comments
  • 📝 Line-level Comments - Push precise code review feedback to GitLab
  • 🔍 Change Analysis - Deep diff analysis for comprehensive reviews
  • 📋 Review Rules Engine - Smart rules based on file types and paths
  • 🔒 Enterprise Ready - Supports private GitLab instances with retry mechanisms

Quick Start

Prerequisites

  • Node.js >= 18.0.0
  • pnpm (recommended) or npm
  • GitLab Personal Access Token

Installation

# Clone the repository
git clone https://github.com/LynnCen/gitlab-mcp
cd gitlab-mcp

# Install dependencies
pnpm install

# Build the project
pnpm build

Configuration

Set your GitLab credentials:

export GITLAB_HOST="https://gitlab.com"
export GITLAB_TOKEN="glpat-xxxxxxxxxxxxx"

Cursor Integration

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "gitlab-mcp": {
    "type": "stdio",
    "command": "node",
   "args": ["/path/to/gitlab-mcp/dist/src/index.js"],
    "env": {
     "GITLAB_HOST": "https://gitlab.com",
     "GITLAB_TOKEN": "your-token"
    }
 }
  }
}

Available Tools

Tool Description
get_merge_request Get merge request details
get_merge_request_changes Get MR file changes with diffs
list_merge_requests List project merge requests
update_merge_request_description Update MR description
get_file_content Get file content from repository
analyze_mr_changes Analyze MR changes for code review
push_code_review_comments Push review comments to GitLab
get_file_code_review_rules Get code review rules for file types

Usage Examples

# Get MR information
Get the details of MR #123 in project company/awesome-project

# Perform code review
Analyze all changes in MR #123 of project company/awesome-project 
and perform a comprehensive code review, then push comments to GitLab

# Update MR description
Update the description of MR #123 with the changes summary

GitLab Token Setup

  1. Go to GitLab → Settings → Access Tokens
  2. Create a new token with these scopes:
    • api - Full API access
    • read_user - Read user info
    • read_repository - Read repository content
    • write_repository - Write repository (for comments)

Documentation

Development

# Development mode
pnpm dev

# Build
pnpm build

# Run tests
pnpm test

# Start server
pnpm start

Roadmap

  • AI-powered code review with inline comments
  • Multi-severity issue classification (critical/warning/suggestion)
  • Smart review rules engine
  • Batch MR review support
  • Detailed quality reports
  • Performance optimizations with caching
  • Project-level configuration files

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

  1. Fork the project
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'feat: add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

License

This project is licensed under the MIT License.

Acknowledgements


If this project helps you, please give it a ⭐

Made with ❤️ by the GitLab MCP Team