用于GitLab API的MCP服务器,支持项目管理、文件操作等功能,可通过Docker运行,提供安全的API交互能力。

25 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:1 年前
下载命令
点击查看

GitLab (已归档) MCP服务器

用于GitLab API的MCP服务器,支持项目管理、文件操作等功能。

https://www.anthropic.com/news/model-context-protocol

MCP信息

属性详情
Docker镜像https://hub.docker.com/repository/docker/mcp/gitlab
作者https://github.com/modelcontextprotocol
代码仓库https://github.com/modelcontextprotocol/servers

镜像构建信息

属性详情
Dockerfilehttps://github.com/modelcontextprotocol/servers/blob/b4ee623039a6c60053ce67269701ad9e95073306/src/gitlab/Dockerfile
提交记录b4ee623039a6c60053ce67269701ad9e95073306
Docker镜像构建者Docker Inc.
Docker Scout健康评分
验证签名COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/gitlab --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
许可证MIT许可证

可用工具(9个)

服务器提供的工具简短描述
create_branch在GitLab项目中创建新分支
create_issue在GitLab项目中创建新议题
create_merge_request在GitLab项目中创建新合并请求
create_or_update_file在GitLab项目中创建或更新单个文件
create_repository创建新的GitLab项目
fork_repository将GitLab项目分叉到您的账户或指定命名空间
get_file_contents获取GitLab项目中文件或目录的内容
push_files在单次提交中向GitLab项目推送多个文件
search_repositories搜索GitLab项目

工具详情

工具:create_branch

在GitLab项目中创建新分支

参数类型描述
branchstring新分支的名称
project_idstring项目ID或URL编码路径
refstring 可选新分支的源分支/提交

工具:create_issue

在GitLab项目中创建新议题

参数类型描述
project_idstring项目ID或URL编码路径
titlestring议题标题
assignee_idsarray 可选要分配的用户ID数组
descriptionstring 可选议题描述
labelsarray 可选标签名称数组
milestone_idnumber 可选要分配的里程碑ID

工具:create_merge_request

在GitLab项目中创建新合并请求

参数类型描述
project_idstring项目ID或URL编码路径
source_branchstring包含更改的分支
target_branchstring要合并到的分支
titlestring合并请求标题
allow_collaborationboolean 可选允许上游成员提交
descriptionstring 可选合并请求描述
draftboolean 可选创建为草稿合并请求

工具:create_or_update_file

在GitLab项目中创建或更新单个文件

参数类型描述
branchstring要创建/更新文件的分支
commit_messagestring提交消息
contentstring文件内容
file_pathstring要创建/更新文件的路径
project_idstring项目ID或URL编码路径
previous_pathstring 可选要移动/重命名的文件路径

工具:create_repository

创建新的GitLab项目

参数类型描述
namestring仓库名称
descriptionstring 可选仓库描述
initialize_with_readmeboolean 可选使用README.md初始化
visibilitystring 可选仓库可见性级别

工具:fork_repository

将GitLab项目分叉到您的账户或指定命名空间

参数类型描述
project_idstring项目ID或URL编码路径
namespacestring 可选要分叉到的命名空间(完整路径)

工具:get_file_contents

获取GitLab项目中文件或目录的内容

参数类型描述
file_pathstring文件或目录的路径
project_idstring项目ID或URL编码路径
refstring 可选要获取内容的分支/标签/提交

工具:push_files

在单次提交中向GitLab项目推送多个文件

参数类型描述
branchstring要推送的分支
commit_messagestring提交消息
filesarray要推送的文件数组
project_idstring项目ID或URL编码路径

工具:search_repositories

搜索GitLab项目

参数类型描述
searchstring搜索查询
pagenumber 可选分页页码(默认:1)
per_pagenumber 可选每页结果数(默认:20)

使用此MCP服务器

json
{
  "mcpServers": {
    "gitlab": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITLAB_API_URL",
        "-e",
        "GITLAB_PERSONAL_ACCESS_TOKEN",
        "mcp/gitlab"
      ],
      "env": {
        "GITLAB_API_URL": "https://gitlab.com/api/v4",
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<您的令牌>"
      }
    }
  }
}

https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 gitlab 镜像标签

docker pull docker.xuanyuan.run/mcp/gitlab:<标签>

DockerHub 原生拉取命令

docker pull mcp/gitlab:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告