GitLab MCP Server
● Archivedio.github.dubuqingfeng/gitlab-mcp-server
GitLab MCP (Model Context Protocol) server for AI agents
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"gitlab-mcp-server": {
"command": "npx",
"args": [
"-y",
"@dubuqingfeng/gitlab-mcp-server@2.0.12"
],
"env": {
"GITLAB_TOKEN": "<your GITLAB_TOKEN>",
"LARK_WEBHOOK_URL": "<your LARK_WEBHOOK_URL>",
"LARK_SECRET_KEY": "<your LARK_SECRET_KEY>"
}
}
}
}claude mcp add --env GITLAB_TOKEN='<your GITLAB_TOKEN>' --env LARK_WEBHOOK_URL='<your LARK_WEBHOOK_URL>' --env LARK_SECRET_KEY='<your LARK_SECRET_KEY>' --transport stdio gitlab-mcp-server -- npx -y @dubuqingfeng/gitlab-mcp-server@2.0.12codex mcp add gitlab-mcp-server --env GITLAB_TOKEN='<your GITLAB_TOKEN>' --env LARK_WEBHOOK_URL='<your LARK_WEBHOOK_URL>' --env LARK_SECRET_KEY='<your LARK_SECRET_KEY>' -- npx -y @dubuqingfeng/gitlab-mcp-server@2.0.12code --add-mcp '{"name":"gitlab-mcp-server","type":"stdio","command":"npx","args":["-y","@dubuqingfeng/gitlab-mcp-server@2.0.12"],"env":{"GITLAB_TOKEN":"<your GITLAB_TOKEN>","LARK_WEBHOOK_URL":"<your LARK_WEBHOOK_URL>","LARK_SECRET_KEY":"<your LARK_SECRET_KEY>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- GITLAB_TOKENrequiredsecretYour API key for the gitlab
- LARK_WEBHOOK_URLsecretLark 机器人 Webhook URL
- LARK_SECRET_KEYsecret可选:签名密钥(如果机器人启用了签名验证)
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
- Category
- Developer Tools
- Version
- 1.0.1
- Registry
- active
- Published
- 9/11/2025
On GitHub
read Nov 17, 2026This repository is archived on GitHub: it is read-only and no longer maintained.
- Stars
- 9
- Forks
- 5
- Last push
- Sep 10, 2025
- License
- MIT
TypeScript
From the README
Gitlab Mcp server 支持服务: 1. gitlab 6. code-review-rules (代码审查规则) 场景 1. gitlab 代码 review,获取信息 4. 智能代码审查规则 - 根据项目类型提供代码审查建议 GitLab GitLab 集成使用 @gitbeaker/rest 库支持获取 Merge Request 信息。 环境变量 可用工具 • getmergerequest: 获取特定 MR 的详细信息 • listmergerequests: 列出项目的 MR 列表 • gitlabcodereview: 对 MR 进行综合代码审查 • gitlabbranchcode_review: 对指定分支进行全面代码审查 • gitlabcommitreview: 对指定提交进行代码审查 • getfilecontent: 获取仓库中特定文件的内容 • list_branches: 列出项目的所有分支 • writegitlabmr_note: 在 MR 中写入审查备注(支持灵活的通知模式) 依赖 • @gitbeaker/rest: GitLab API 客户端库 详细使用说明请参考 GitLab 文档 Lark 机器人集成 支持通过 Lark(飞书)机器人发送通知,可以在写入 GitLab MR 评论时自动发送 Lark 通知。 环境变量 功能特性 • 灵活的通知模式:可以选择只写 GitLab、只发 Lark 或两者都做 • 支持富文本卡片消息,包含项目名称、MR 标题、评论内容等信息 • 支持自定义 Lark 消息(文本或卡片格式) • 失败不影响主流程,确保 GitLab 操作的可靠性 通知模式说明 • gitlab_only: 仅写入 GitLab MR 评论,不发送 Lark 通知(默认) • lark_only: 仅发送 Lark 通知,不写入 GitLab MR 评论 • both: 同时写入 GitLab MR 评论并发送 Lark 通知 使用示例 Code Review Rules (代码审查规则) 智能代码审查规则系统,根据不同项目类型和文件扩展名提供相应的代码审查建议。 可用工具 • getcodereview_rules: 获取适用于特定项目和文件的代码审查规则 • listallcodereviewrules: 列出所有可用的代码审查规则 • getprojecttypes: 获取支持的项目类型信息 支持的项目类型 • TypeScript / JavaScript • React • Node.js • Go • Python • Rust • Backend (通用后端规则) • Database (数据库相关) 规则类别 • 🔒 Security (安全) • ⚡ Performance (性能) • 🔧 Maintainability (可维护性) • 🎨 Style (代码风格) • ✨ Best Practice (最佳实践) 项目特定规则 支持为特定项目配置专属的代码审查规则: • 可以通过外部 JSON 配置文件定义项目特定规则 • 支持启用/禁用默认规则 • 支持排除特定的默认规则 • 可以添加额外的项目类型 详细使用说明请参考: • Code Review 文档 • 项目特定规则配置指南
Read the full README on GitHub →Alternatives to GitLab MCP Server
Best Developer Tools servers →The most-starred Developer Tools servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| REA | 466,935 | Nov 2026 | Local / not checked |
| GitHub | 34,466 | Nov 2026 | Needs sign-in |
| Repomix | 29,280 | Nov 2026 | Local / not checked |
| Compiler Explorer | 19,188 | Nov 2026 | Working |
| XERJ | 19,135 | Nov 2026 | Local / not checked |
GitLab MCP Server: questions people ask
- Is GitLab MCP Server a remote or a local MCP server?
- According to its entry in the official MCP registry, GitLab MCP Server ships as a local package (npm) that your client starts on your machine.
- Does GitLab MCP Server need an API key?
- Its registry entry declares 3 required environment variables: GITLAB_TOKEN, LARK_WEBHOOK_URL, LARK_SECRET_KEY. The config on this page shows where each goes.
- Is GitLab MCP Server still maintained?
- Archived: the repository's Archived on GitHub — read-only and no longer maintained., and it is archived on GitHub (read-only). Last push Sep 10, 2025, 9 GitHub stars, MIT licence. Read from GitHub on Nov 17, 2026.
- How do I add GitLab MCP Server to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Developer Tools servers
Browse all Developer Tools →Scopture
ducflair
Work on physical engineering projects, inspect CAD/BIM, run simulations, and manage project context
Duck Framework MCP
duckframework
Official Duck Framework MCP server for AI-assisted development and project scaffolding.
Skylos
duriantaco
Dead code, security, secrets detection and code quality for Python, TypeScript, Go.
Pituitary
dusk-network
Catch spec drift before it catches you. Detect overlap, stale docs, and code drift.
Chassis
dvd90
Scaffold an Express 5 + TypeScript backend: database, auth, optional Next.js front end.
SmartCLI — drive terminal TUIs
dwgx
Let agents drive vim, htop, lazygit: send keys, wait on screen state, read the rendered cell grid.
Add the badge to your site
Show visitors that GitLab MCP Server is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-dubuqingfeng-gitlab-mcp-server?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="GitLab MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-dubuqingfeng-gitlab-mcp-server?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.