Purpose: gitlab-mr-mcp is a Model Context Protocol (MCP) server used to let AI agents interact with GitLab repositories, manage merge requests and issues, and simplify the code review process.
Main capabilities: provides a variety of tools, including get_projects (list GitLab projects accessible by the token), list_open_merge_requests (list open merge requests for a specified project), get_merge_request_details (get merge request details), get_merge_request_comments (get comments, including discussion notes and diff notes), add_merge_request_comment (add a general comment), add_merge_request_diff_comment (add a comment for a specific line of code in a merge request diff), get_merge_request_diff (get the merge request diff), get_issue_details (get issue details), set_merge_request_title (set the merge request title), set_merge_request_description (set the merge request description).
Usage: requires a GitLab access token (with API access permissions) and a GitLab project ID. You can clone the repository and install dependencies, then add the configuration to the MCP client; you can also automatically install it for Claude Desktop via Smithery. When running the Inspector, environment variables need to be set.
Applicable scenarios: suitable for code review and collaboration workflows that need to let AI agents automatically read, comment on, or manage GitLab merge requests and issues.
Limitations: the materials do not provide specific dependency installation commands, configuration examples, environment variable names, or complete run commands; if you encounter a 403 Forbidden permission issue, you need to check whether the token has the correct scopes such as api and read_api, whether the token user has project access permissions, and whether the project ID is correct.