GitLab MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITLAB_HOST | Yes | The GitLab instance URL, e.g. https://gitlab.com. | |
| GITLAB_TOKEN | Yes | Your GitLab Personal Access Token with api, read_user, read_repository, and write_repository scopes. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_merge_requestC | 获取指定项目的合并请求信息 |
| get_merge_request_changesC | 获取合并请求的文件变更列表 |
| list_merge_requestsC | 列出项目的合并请求 |
| update_merge_request_descriptionC | 更新指定合并请求的描述信息,支持Markdown格式 |
| get_file_contentC | 获取指定项目的文件内容 |
| analyze_mr_changesB | 分析合并请求的文件变更和差异信息,为代码审查提供基础数据 |
| push_code_review_commentsB | 将代码审查评论推送到GitLab MR,支持行内评论和文件级评论 |
| get_file_code_review_rulesC | 根据文件类型和路径获取相应的代码审查规则 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| mr-description | 生成合并请求描述 |
| code-review-typescript | TypeScript 代码审查提示模板 |
| code-review-vue | Vue 代码审查提示模板 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Code Review Rules | 代码审查规则配置 |
TDQS
Scored across 8 tools
analyze_mr_changes and get_merge_request_changes overlap significantly — both deal with an MR's changed files/diff, and an agent must read carefully to know one lists changes while the other produces review-oriented analysis. get_file_code_review_rules vs analyze_mr_changes also border on related review-prep concerns, though descriptions do help separate them.
All names are snake_case verb_noun (get_*, list_*, update_*, push_*, analyze_*), following a single predictable convention. There are no stylistic deviations or mixed casing.
Eight tools is well-scoped for a focused MR code-review assistant. Each tool maps to a distinct step in the review workflow (list, fetch, analyze, get rules, push comments).
The surface covers the read-and-comment review loop but lacks any way to read existing discussions/comments on an MR (risking duplicate comments) and has no MR create/approve/state-change operations. For a review-focused server these are notable gaps, though the core flow is usable.