Install
mcp-registry/gitlab-mr-mcp
gitlab-mr-mcp logo

gitlab-mr-mcp

Author: kopfrechner

Description: Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.

Stars: 48

Forks: 14

License: MIT License

Category: Open Source

Overview

Installation

1. Prerequisites
• Node.js ≥ 18
• A personal-access token from GitLab with api scope
• (Optional) Docker if you prefer container deployment
2. Clone the repository
git clone https://github.com/kopfrechner/gitlab-mr-mcp.git cd gitlab-mr-mcp
3. Install dependencies
npm install # or: pnpm install / yarn install
4. Configure environment variables (create .env or export in your shell)
GITLAB_TOKEN=xxxxxxxxxxxxxxxx # required GITLAB_BASE_URL=https://gitlab.com # self-hosted: https://gitlab.mycompany.com PORT=3000 # where the MCP server should listen
5. Run in development mode
npm run dev
or build & start production server
npm run build npm start
6. Docker (alternative)
docker build -t gitlab-mr-mcp . docker run -d -p 3000:3000 \ -e GITLAB_TOKEN=$GITLAB_TOKEN \ -e GITLAB_BASE_URL=https://gitlab.com \ --name mr-mcp gitlab-mr-mcp

01

get_projects

Gets a list of GitLab projects accessible with your token.

02

list_open_merge_requests

Lists all open merge requests in the specified project.

03

get_merge_request_details

Gets detailed information about a specific merge request.

04

get_merge_request_comments

Gets comments from a specific merge request, including discussion notes and diff notes.

05

add_merge_request_comment

Adds a general comment to a merge request.

06

add_merge_request_diff_comment

Adds a comment to a specific line in a file within a merge request.

07

get_merge_request_diff

Gets the diff for a merge request.

08

get_issue_details

Gets detailed information about a specific issue.

09

set_merge_request_title

Sets the title of a merge request.

10

set_merge_request_description

Sets the description of a merge request.

License: MIT License
Updated 7/30/2025