AM

amirsina-mandegari/gitlab-mr-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

25 stars 5 forks 品質 70 トレンド 11MIT

mcp server for gitlab to get reviews on you merge requests

概要

Connect your AI assistant to GitLab. Ask questions like "List open merge requests", "Show me reviews for MR #123", "Get commit discussions for MR #456", or "Find merge requests for the feature branch" directly in your chat. Using pipx or uv tool is recommended as they automatically add the gitlab-mcp command to your PATH. If using pip install, ensure your Python scripts directory is in PATH, or use the full path to the command. 1. Go to GitLab → Settings → Access Tokens 2. Create token with scope (add api scope if you want write access) 3. Copy the token For working with , add to your global MCP config (~/.cursor/mcp.json for Cursor): This single configuration works across . Use search_projects or list_my_projects to find project IDs, then specify project_id in your requests. For working with a , you can set a default project ID: Restart your MCP client and start asking GitLab questions! Once connected, try these commands in your chat:

README

以下は原文 README の抜粋です。原文を見る。

GitLab MR MCP

Connect your AI assistant to GitLab. Ask questions like “List open merge requests”, “Show me reviews for MR #123”, “Get commit discussions for MR #456”, or “Find merge requests for the feature branch” directly in your chat.

Table of Contents

Quick Setup

Installation

# Using pipx (recommended)
pipx install gitlab-mr-mcp

# Or using uv
uv tool install gitlab-mr-mcp

# Or using pip
pip install gitlab-mr-mcp

Note: Using pipx or uv tool is recommended as they automatically add the gitlab-mcp command to your PATH. If using pip install, ensure your Python scripts directory is in PATH, or use the full path to the command.

Get your GitLab token

  1. Go to GitLab → Settings → Access Tokens
  2. Create token with read_api scope (add api scope if you want write access)
  3. Copy the token

Configure your MCP client

For working with multiple GitLab projects, add to your global MCP config (~/.cursor/mcp.json for Cursor):

{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "gitlab-mcp",
      "env": {
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_ACCESS_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

This single configuration works across all your projects. Use search_projects or list_my_projects to find project IDs, then specify project_id in your requests.

Single-Project Setup

For working with a single project, you can set a default project ID:

{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "gitlab-mcp",
      "env": {
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_ACCESS_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx",
        "GITLAB_PROJECT_ID": "12345"
      }
    }
  }
}

Restart your MCP client and start asking GitLab questions!

What You Can Do

Once connected, try these commands in your chat:

Multi-Project Workflow

  • “What projects do I have access to?”
  • “Search for the backend project”
  • “Show open MRs for project 12345”
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "gitlab-mcp": { "command": "gitlab-mcp", "env": { "GITLAB_URL": "https://gitlab.com", "GITLAB_ACCESS_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx" } } } }