# GitLab MR MCP

> Review and manage GitLab merge requests and issues.

- **URL**: https://followmcp.com/en/servers/gitlab-mr-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 94
- **FMRS Score**: 43/100 (Grade D)
- **Source**: https://github.com/kopfrechner/gitlab-mr-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: API key / credential required

## Overview
GitLab MR MCP is an MCP server that lets AI agents interact with GitLab repositories. It provides tools to inspect projects, merge requests, and issues, and to manage merge request comments, titles, and descriptions.

## Best for
- Users who need to inspect or manage GitLab merge requests and issues through MCP.
- Teams using an AI agent to assist code review and holding appropriate GitLab project access.

## Not for
- Users who need GitLab features not listed in the README or support for other code hosting platforms.
- Users without a GitLab access token or access to the relevant projects.

## Required permissions
- Requires a GitLab access token with API access; the README suggests checking the api and read_api scopes.
- The token user needs appropriate access to the target projects.
- The server uses MR_MCP_GITLAB_TOKEN and MR_MCP_GITLAB_HOST; optional settings can filter projects by minimum access level and project name or path search term.

## Risks
- Adding comments and changing merge request titles or descriptions writes to GitLab.
- Token scopes and project access determine which projects and operations are available; keep the token protected.
- The README does not provide specific results for data handling, storage, or security assessment.

## Client config (JSON)
```json
{"mcpServers":{"gitlab-mr-mcp":{"command":"node","args":["/path/to/gitlab-mr-mcp/index.js"],"env":{"MR_MCP_GITLAB_TOKEN":"your_gitlab_token","MR_MCP_GITLAB_HOST":"your_gitlab_host"}}}}
```

## Tools (10)
- `get_projects`: Lists GitLab projects accessible with the configured token.
- `list_open_merge_requests`: Lists all open merge requests in the specified project.
- `get_merge_request_details`: Gets details for a specific merge request.
- `get_merge_request_comments`: Gets merge request comments, including discussion notes and diff notes.
- `add_merge_request_comment`: Adds a general comment to a merge request.
- `add_merge_request_diff_comment`: Adds a comment to a specific line in a file within a merge request diff.
- `get_merge_request_diff`: Gets the diff for a merge request.
- `get_issue_details`: Gets details for a specific issue.
- `set_merge_request_title`: Sets the title of a merge request.
- `set_merge_request_description`: Sets the description of a merge request.
