Version Control · Developer Tools

GitLab Code Review logo

GitLab Code Review

mehmetakinn/gitlab-mcp-code-review

An MCP (Model Context Protocol) server for integrating AI assistants like Claude with GitLab's merge requests. This allows AI assistants to review code changes directly through the GitLab API.

Install

Client configuration

{
  "mcpServers": {
    "gitlab-mcp-code-review": {
      "command": "/path/to/your/gitlab-mcp-code-review/.venv/bin/python",
      "args": [
        "/path/to/your/gitlab-mcp-code-review/server.py",
        "--transport",
        "stdio"
      ],
      "env": {
        "PYTHONPATH": "<PYTHONPATH>",
        "VIRTUAL_ENV": "<VIRTUAL_ENV>",
        "PATH": "<PATH>"
      }
    }
  }
}

Environment variables

VIRTUAL_ENVGITLAB_TOKENGITLAB_HOSTGITLAB_API_VERSION
GitHub stars
1
Category
Version Control, Developer Tools
License
MIT
Updated
Oct 6, 2026

About GitLab Code Review

This project is forked from cayirtepeomer/gerrit-code-review-mcp and adapted for GitLab integration.

Features

  • Complete Merge Request Analysis: Fetch full details about merge requests including diffs, commits, and comments

  • File-Specific Diffs: Analyze changes to specific files within merge requests

  • Version Comparison: Compare different branches, tags, or commits

  • Review Management: Add comments, approve, or unapprove merge requests

  • Project Overview: Get lists of all merge requests in a project

Tools (8)

  • fetch_merge_request

    Get complete information about a merge request

  • fetch_merge_request_diff

    Get diffs for a specific merge request

  • fetch_commit_diff

    Get diff information for a specific commit

  • compare_versions

    Compare different branches, tags, or commits

  • add_merge_request_comment

    Add a comment to a merge request

  • approve_merge_request

    Approve a merge request

  • unapprove_merge_request

    Unapprove a merge request

  • get_project_merge_requests

    Get a list of merge requests for a project

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
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux

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