
GitLab MCP Code Review
by ffpy
AI-powered code review for GitLab merge requests. Fetch diffs, post comments, and manage approvals via the GitLab API.
What it does
This MCP server integrates AI assistants with GitLab, enabling them to perform comprehensive code reviews directly on merge requests. It allows an AI to analyze changes, understand the context of a PR, and provide actionable feedback within the GitLab ecosystem.
Tools
fetch_merge_request: Retrieves full details of a merge request, including diffs and comments.compare_versions: Compares different branches, tags, or specific commits.add_merge_request_comment: Posts comments directly to a merge request.approve_merge_request: Marks a merge request as approved.unapprove_merge_request: Removes an approval from a merge request.get_project_merge_requests: Lists all active merge requests for a project.fetch_code_review_rules: Retrieves team-specific review guidelines via SSH.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gitlab-mcp-code-review": {
"command": "uv",
"args": ["--directory", "/path/to/gitlab-mcp-code-review", "run", "server.py"],
"env": {
"GITLAB_HOST": "gitlab.com",
"GITLAB_TOKEN": "your-access-token"
}
}
}
}
Supported hosts
- Claude Desktop
- Cursor
Quick install
uv --directory /path/to/gitlab-mcp-code-review run server.pyInformation
- Pricing
- free
- Published






