MCP Catalogs
Home

gitlab-mr-mcp

by kopfrechner·89·Score 47

GitLab MR MCP server allows AI agents to interact with GitLab repositories to manage merge requests and issues.

developer-toolsgithubproductivity
27
Forks
4
Open issues
this month
Last commit
2d ago
Indexed

Overview

This MCP server provides a comprehensive set of tools for interacting with GitLab repositories. It enables AI agents to list projects, fetch merge request details and comments, add comments (including line-specific comments), get diffs, manage issue details, and modify merge request titles and descriptions. The server is well-documented with clear examples of all available tools and their usage patterns.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI-powered code review automation where an AI agent analyzes merge requests and provides automated feedback
you:Project management assistance through AI that helps track and manage issues across multiple GitLab projects
you:Development workflow integration where AI tools can directly interact with GitLab to streamline development processes
you:What permissions do I need for my GitLab token?
you:Can I use this with self-hosted GitLab instances?

When to choose this

Choose this server when you need AI agents to interact with GitLab repositories to manage merge requests and issues, particularly if you're already using GitLab as your primary code collaboration platform.

When NOT to choose this

Don't choose this if you need deep integration with GitHub repositories instead of GitLab, or if you require extensive project management features beyond merge requests and issues.

Tools this server exposes

10 tools extracted from the README
  • get_projects

    Gets a list of GitLab projects accessible with your token.

  • list_open_merge_requests

    Lists all open merge requests in the specified project.

  • get_merge_request_details

    Gets detailed information about a specific merge request.

  • get_merge_request_comments

    Gets comments from a specific merge request, 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.

  • get_merge_request_diff

    Gets the diff for a merge request.

  • get_issue_details

    Gets detailed information about a specific issue.

  • set_merge_request_title

    Set the title of a merge request.

  • set_merge_request_description

    Set the description of a merge request.

Comparable tools

github-mcpgitlab-shell-mcpgitlab-cli

Installation

Installation

Using Smithery (Recommended)

npx -y @smithery/cli@latest install @kopfrechner/gitlab-mr-mcp --client claude --config '{"gitlabMrMcpToken":"YOUR_GITLAB_TOKEN", "gitlabMrMcpHost": "YOUR_GITLAB_HOST"}'

Manual Installation

  1. Clone the repository: git clone https://github.com/kopfrechner/gitlab-mr-mcp.git
  2. Install dependencies: npm install
  3. Configure your MCP client (e.g., Claude Desktop) with:
{
  "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"
      }
    }
  }
}

FAQ

What permissions do I need for my GitLab token?
Your GitLab token needs API access scopes (api, read_api) and proper access to the projects you want to interact with.
Can I use this with self-hosted GitLab instances?
Yes, you can use this with self-hosted GitLab by setting the MR_MCP_GITLAB_HOST environment variable to your GitLab instance URL.

Compare gitlab-mr-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.