gitlab-mcp-code-review

gitlab-mcp-code-review

3.4

If you are the rightful owner of gitlab-mcp-code-review and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

An MCP server for integrating AI assistants with GitLab's merge requests, enabling AI-driven code reviews.

The GitLab MCP for Code Review is a Model Context Protocol server designed to integrate AI assistants, such as Claude, with GitLab's merge requests. This integration allows AI assistants to perform code reviews directly through the GitLab API, enhancing the code review process by providing automated insights and suggestions. The server fetches detailed information about merge requests, including diffs, commits, and comments, and allows for file-specific analysis and version comparisons. It also manages reviews by adding comments, approving, or unapproving merge requests, and provides a comprehensive overview of all merge requests within a project. The server is built on Python 3.10+ and requires a GitLab personal access token with API scope for operation. It supports integration with tools like Cursor IDE and the Claude Desktop App for seamless MCP functionality.

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

  1. fetch_merge_request

    Get complete information about a merge request.

  2. fetch_merge_request_diff

    Get diffs for a specific merge request.

  3. fetch_commit_diff

    Get diff information for a specific commit.

  4. compare_versions

    Compare different branches, tags, or commits.

  5. add_merge_request_comment

    Add a comment to a merge request.

  6. approve_merge_request

    Approve a merge request.

  7. unapprove_merge_request

    Unapprove a merge request.

  8. get_project_merge_requests

    Get a list of merge requests for a project.