Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

GitLab MCP Server

by dubuqingfengversion 1.0.1i★ –iRuns on your computer
Registry nameio.github.dubuqingfeng/gitlab-mcp-server

Install

Overview

Description from the maker (original English)

GitLab MCP (Model Context Protocol) server for AI agents

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Developer tools
  • You need to fill in: GITLAB_TOKEN, LARK_WEBHOOK_URL, LARK_SECRET_KEY

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: GITLAB_TOKEN, GITLAB_URL, LARK_WEBHOOK_URL, LARK_SECRET_KEY, LARK_ENABLE_NOTIFICATION, GITLAB_NOTE_MODE

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@dubuqingfeng/gitlab-mcp-server"
      ],
      "env": {
        "GITLAB_TOKEN": "your-value",
        "GITLAB_URL": "your-value",
        "LARK_WEBHOOK_URL": "your-value",
        "LARK_SECRET_KEY": "your-value",
        "LARK_ENABLE_NOTIFICATION": "your-value",
        "GITLAB_NOTE_MODE": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add gitlab --env GITLAB_TOKEN=your-value --env GITLAB_URL=your-value --env LARK_WEBHOOK_URL=your-value --env LARK_SECRET_KEY=your-value --env LARK_ENABLE_NOTIFICATION=your-value --env GITLAB_NOTE_MODE=your-value -- npx -y @dubuqingfeng/gitlab-mcp-server

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@dubuqingfeng/gitlab-mcp-server"
      ],
      "env": {
        "GITLAB_TOKEN": "your-value",
        "GITLAB_URL": "your-value",
        "LARK_WEBHOOK_URL": "your-value",
        "LARK_SECRET_KEY": "your-value",
        "LARK_ENABLE_NOTIFICATION": "your-value",
        "GITLAB_NOTE_MODE": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "gitlab": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dubuqingfeng/gitlab-mcp-server"
      ],
      "env": {
        "GITLAB_TOKEN": "your-value",
        "GITLAB_URL": "your-value",
        "LARK_WEBHOOK_URL": "your-value",
        "LARK_SECRET_KEY": "your-value",
        "LARK_ENABLE_NOTIFICATION": "your-value",
        "GITLAB_NOTE_MODE": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • GITLAB_TOKEN secret required env
    Your API key for the gitlab
  • GITLAB_URL env
    Gitlab URL
  • LARK_WEBHOOK_URL secret env
    Lark 机器人 Webhook URL
  • LARK_SECRET_KEY secret env
    可选:签名密钥(如果机器人启用了签名验证)
  • LARK_ENABLE_NOTIFICATION env
    可选:是否启用通知,默认为 true
  • GITLAB_NOTE_MODE env
    可选:通知模式 - gitlab_only(仅GitLab)、lark_only(仅Lark)、both(两者都发),默认为 gitlab_only

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 6, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account dubuqingfeng, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Developer toolsi

  • More stars than 0% of the other 1389 servers in this category
  • Published to the registry more recently than 0% of the other 1389 servers in this category
  • Basic checks equal to or better than 100% of the other 1389 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is GitLab MCP Server safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: GITLAB_TOKEN, LARK_WEBHOOK_URL, LARK_SECRET_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.1) reached the registry 14 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: GitHub, Desktop Commander, Cloudflare MCP

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHub

by github

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

Computer or cloud★ 34,245MITUpdated 3 days ago
Install

Desktop Commander

by wonderwhy-er

MCP server for terminal commands, file operations, and process management

Runs on your computer★ 10,225MITUpdated 15 days ago
Install

Cloudflare MCP

by cloudflare

Cloudflare MCP servers

Runs in the cloud★ 4,446Apache-2.0Updated 14 months ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Gitlab Mcp server

支持服务:

  1. gitlab
  2. code-review-rules (代码审查规则)

场景

  1. gitlab 代码 review,获取信息
  2. 智能代码审查规则 - 根据项目类型提供代码审查建议

GitLab

GitLab 集成使用 @gitbeaker/rest 库支持获取 Merge Request 信息。

环境变量

export GITLAB_TOKEN="your_personal_access_token"

export GITLAB_URL="https://gitlab.com" # 可选,默认为 gitlab.com(注意:不需要 /api/v4 后缀)

可用工具

  • get_merge_request: 获取特定 MR 的详细信息
  • list_merge_requests: 列出项目的 MR 列表
  • gitlab_code_review: 对 MR 进行综合代码审查
  • gitlab_branch_code_review: 对指定分支进行全面代码审查
  • gitlab_commit_review: 对指定提交进行代码审查
  • get_file_content: 获取仓库中特定文件的内容
  • list_branches: 列出项目的所有分支
  • write_gitlab_mr_note: 在 MR 中写入审查备注(支持灵活的通知模式)

依赖

  • @gitbeaker/rest: GitLab API 客户端库

详细使用说明请参考 GitLab 文档

Lark 机器人集成

支持通过 Lark(飞书)机器人发送通知,可以在写入 GitLab MR 评论时自动发送 Lark 通知。

环境变量

export LARK_WEBHOOK_URL="https://open.feishu.cn/open-apis/bot/v2/hook/xxx"  # Lark 机器人 Webhook URL

export LARK_SECRET_KEY="your_secret_key" # 可选:签名密钥(如果机器人启用了签名验证) export LARK_ENABLE_NOTIFICATION="true" # 可选:是否启用通知,默认为 true export GITLAB_NOTE_MODE="gitlab_only" # 可选:通知模式 - gitlab_only(仅GitLab)、lark_only(仅Lark)、both(两者都发),默认为 gitlab_only

功能特性

  • 灵活的通知模式:可以选择只写 GitLab、只发 Lark 或两者都做
  • 支持富文本卡片消息,包含项目名称、MR 标题、评论内容等信息
  • 支持自定义 Lark 消息(文本或卡片格式)
  • 失败不影响主流程,确保 GitLab 操作的可靠性

通知模式说明

  • gitlab_only: 仅写入 GitLab MR 评论,不发送 Lark 通知(默认)
  • lark_only: 仅发送 Lark 通知,不写入 GitLab MR 评论
  • both: 同时写入 GitLab MR 评论并发送 Lark 通知

使用示例

// 使用环境变量配置的默认模式

await write_gitlab_mr_note({ projectId: "group/project", mergeRequestIid: 123, note: "代码审查完成,LGTM!" });

// 明确指定只写入 GitLab await write_gitlab_mr_note({ projectId: "group/project", mergeRequestIid: 123, note: "内部备注", notificationMode: "gitlab_only" });

// 只发送 Lark 通知,不写入 GitLab await write_gitlab_mr_note({ projectId: "group/project", mergeRequestIid: 123, note: "团队通知:代码已审查", notificationMode: "lark_only" });

// 强制两者都执行(覆盖环境变量) await write_gitlab_mr_note({ projectId: "group/project", mergeRequestIid: 123, note: "重要通知", notificationMode: "both" });

Code Review Rules (代码审查规则)

智能代码审查规则系统,根据不同项目类型和文件扩展名提供相应的代码审查建议。

可用工具

  • get_code_review_rules: 获取适用于特定项目和文件的代码审查规则
  • list_all_code_review_rules: 列出所有可用的代码审查规则
  • get_project_types: 获取支持的项目类型信息

支持的项目类型

  • TypeScript / JavaScript
  • React
  • Node.js
  • Go
  • Python
  • Rust
  • Backend (通用后端规则)
  • Database (数据库相关)

规则类别

  • 🔒 Security (安全)
  • ⚡ Performance (性能)
  • 🔧 Maintainability (可维护性)
  • 🎨 Style (代码风格)
  • ✨ Best Practice (最佳实践)

项目特定规则

支持为特定项目配置专属的代码审查规则:

  • 可以通过外部 JSON 配置文件定义项目特定规则
  • 支持启用/禁用默认规则
  • 支持排除特定的默认规则
  • 可以添加额外的项目类型

详细使用说明请参考:

  • Code Review 文档
  • 项目特定规则配置指南
Ask PopNx