← Back to directory
G

GitLab MR MCP

Community
Review and manage GitLab merge requests and issues.
Category
Dev Tools #590 of 751
Stars
★ 94 Popular
Transport
stdio (local process)
Runtime
Node.js
Credentials
API key / credential required
License
MIT
Last commit
Tools
10
43FMRS · D

This server provides tools to inspect GitLab projects, merge requests, and issues, with some write operations for comments and merge request titles and descriptions. It suits users with appropriate project access who want MCP-assisted code review. Configure the access token carefully because some tools modify GitLab content.

Strongest · Setup experience 11/20 Weakest · Reliability 6/20

Reliability
6/20
Security and permissions
8/20
Maintenance
7/20
Documentation
11/20
Setup experience
11/20
Why each score
Reliability 6/20
The README describes the server and ten tools, but the manifest is unavailable and there is no source, CI, or committed test evidence to verify the MCP handshake, parameters, or actual behavior. The basic path is plausible, but substantial uncertainty warrants a low score.
Security and permissions 8/20
The documentation says to use a GitLab access token configured through environment variables. Tools include write operations such as adding comments and changing merge request titles and descriptions, but least-privilege scopes, data-flow boundaries, and confirmation controls are not shown. No evidence triggers a red line, while missing implementation evidence warrants deductions.
Maintenance 7/20
An MIT license is identified and the repository is not archived. There is no evidence about releases, commit activity, issue response, dependency updates, or a security response channel, so maintenance receives a low score.
Documentation 11/20
The README covers the main capabilities, tool names, installation steps, token configuration, and some permissions troubleshooting. It does not provide tool parameter examples, limitations, cost information, or enough evidence about error handling and security boundaries.
Setup experience 11/20
The README gives a Smithery command and a manual Claude Desktop configuration example, and states the Node.js and GitLab token prerequisites. Setup still requires cloning, installing dependencies, and supplying the host and token; execution evidence is unavailable, limiting the score.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js

MR_MCP_GITLAB_TOKEN requiredsecret GitLab API access token; create a token with the required API access.
MR_MCP_GITLAB_HOST required GitLab host address; provide the host for your GitLab instance.
Other optional settings (2)
MR_MCP_MIN_ACCESS_LEVEL optional Optional minimum project access-level filter; see GitLab documentation for valid access levels.
MR_MCP_PROJECT_SEARCH_TERM optional Optional search term matched against project path or name; provide a term to filter projects.

Requires Node.js, a GitLab access token with API access, and GitLab project ID(s). Install dependencies, then configure your MCP client to run node /path/to/gitlab-mr-mcp/index.js and set MR_MCP_GITLAB_TOKEN and MR_MCP_GITLAB_HOST. The README also describes installation for Claude Desktop through Smithery.

claude_desktop_config.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"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "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"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.gitlab-mr-mcp]
command = "node"
args = ["/path/to/gitlab-mr-mcp/index.js"]

[mcp_servers.gitlab-mr-mcp.env]
MR_MCP_GITLAB_TOKEN = "your_gitlab_token"
MR_MCP_GITLAB_HOST = "your_gitlab_host"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add gitlab-mr-mcp -e MR_MCP_GITLAB_TOKEN=your_gitlab_token -e MR_MCP_GITLAB_HOST=your_gitlab_host -- node /path/to/gitlab-mr-mcp/index.js

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Check that `get_projects` and `list_open_merge_requests` appear in your client's tool list. Call `get_projects` and confirm it returns GitLab projects you can access.

Troubleshooting

  1. For 403 Forbidden errors, check that the token has the required scopes (api, read_api).
  2. Confirm the token user has appropriate access to the target project.
  3. Check that project IDs are correct and verify the GitLab host setting.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the GitLab projects I can access.
  • Show the open merge requests for a project.
  • Get the details and comments for a merge request.
  • Add a comment to a merge request.

Tools 10

get_projects read-only
Lists GitLab projects accessible with the configured token.
list_open_merge_requests read-only
Lists all open merge requests in the specified project.
get_merge_request_details read-only
Gets details for a specific merge request.
get_merge_request_comments read-only
Gets merge request comments, including discussion notes and diff notes.
add_merge_request_comment writes
Adds a general comment to a merge request.
add_merge_request_diff_comment writes
Adds a comment to a specific line in a file within a merge request diff.
get_merge_request_diff read-only
Gets the diff for a merge request.
get_issue_details read-only
Gets details for a specific issue.
Show 2 more tools
set_merge_request_title writes
Sets the title of a merge request.
set_merge_request_description writes
Sets the description of a merge request.

Use cases

Find accessible GitLab projects and their open merge requests.
Inspect merge request details, comments, and diffs.
Add general or line-specific comments to merge requests.
Review issue details or set a merge request title or description.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 456bac7e41ef Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/gitlab-mr-mcp.svg)](https://followmcp.com/en/servers/gitlab-mr-mcp)