GitLab merge request review tools and automation
npx claudepluginhub Synaps-Squad/gitlab-mr-mcpComprehensive GitLab merge request review using MCP tools for automated code analysis
A Model Context Protocol (MCP) server for reviewing GitLab merge requests using Claude Code and other MCP clients.
This MCP server provides tools to interact with GitLab's API, enabling AI assistants to analyze merge requests, retrieve changed files, and inspect code diffs. It's designed to integrate seamlessly with Claude Code and other MCP-compatible clients for efficient code review workflows.
export GITLAB_API_URL="http[s]://your_gitlab_uri/api/v4"
export GITLAB_PERSONAL_ACCESS_TOKEN="your-token-here"
Get your GitLab token: Settings → Access Tokens → Create token with read_api scope
/plugin in Claudehttps://github.com/Synaps-Squad/gitlab-mr-mcpBefore using the plugin, run the setup command in your terminal:
cd ~/.claude/plugins/marketplaces/gitlab-mr-review-marketplace/plugins/gitlab-mr-review # or wherever the plugin was installed
./start.sh --setup
This will install uv (if not present) and set up the Python environment with all dependencies.
/mcp to verify the plugin is loadedUse the command directly:
/gitlab-mr-review:review-gitlab-mr MR_number Project_name
get_projects() - List all accessible GitLab projectsmerge_request_changes(project_id, merge_request_id) - List changed files in an MRmerge_request_file_diff(project_id, merge_request_id, file_index or file_path) - View file diffhttpx, mcpIf you see an error like "Virtual environment not found", run the setup command:
./start.sh --setup
MIT License - see LICENSE file for details.