Skip to main content
Glama

GitLab MCP Server

自定义 GitLab MCP 服务器

GitLab MCP(模型上下文协议)服务器的自定义实现,用于与 Claude 和其他符合 MCP 的 AI 助手集成。

概述

该 MCP 服务器与 GitLab 存储库无缝集成,允许 AI 助手:

  • 搜索 GitLab 存储库
  • 获取文件内容
  • 创建或更新文件
  • 在一次提交中推送多个文件
  • 创建问题并合并请求
  • 分叉存储库
  • 创建分支

固定实施

此自定义实现修复了标准 GitLab MCP 服务器实现中存在的模式验证问题,特别是针对search_repositories工具。

安装

  1. 克隆此存储库
  2. 安装依赖项:
    npm install
  3. 在您的 Claude 设置文件或 Claude Desktop 配置文件中进行配置:
    { "mcpServers": { "github.com/modelcontextprotocol/servers/tree/main/src/gitlab": { "command": "node", "args": [ "/path/to/custom-gitlab-server/index.js" ], "env": { "GITLAB_PERSONAL_ACCESS_TOKEN": "your-gitlab-token", "GITLAB_API_URL": "https://your-gitlab-instance/api/v4" } } } }

先决条件

  • Node.js(v14 或更高版本)
  • 具有适当范围的 GitLab 个人访问令牌:
    • api用于完整 API 访问
    • read_api用于只读访问
    • read_repositorywrite_repository用于存储库操作

可用工具

工具名称描述
search_repositories搜索 GitLab 项目
get_file_contents获取文件或目录的内容
create_or_update_file创建或更新单个文件
push_files在一次提交中推送多个文件
create_repository创建新的 GitLab 项目
create_issue创建新问题
create_merge_request创建新的合并请求
fork_repository派生一个项目
create_branch创建新分支

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

自定义服务器实现,允许 AI 助手与 GitLab 存储库交互,提供搜索、获取文件、创建/更新内容以及管理问题和合并请求的功能。

  1. 概述
    1. 固定实施
      1. 安装
        1. 先决条件
          1. 可用工具
            1. 执照

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A server that allows AI assistants to browse and read files from specified GitHub repositories, providing access to repository contents via the Model Context Protocol.
                Last updated -
                5
                JavaScript
                MIT License
                • Apple
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables AI assistants to interact with GitLab repositories, allowing tasks like managing merge requests, searching projects, and creating comments through RESTful API integration.
                Last updated -
                8
                2
                TypeScript
                • Apple
              • -
                security
                F
                license
                -
                quality
                A set of tools allowing AI assistants to interact directly with GitHub, enabling automation of tasks like fetching user profiles, creating repositories, and managing pull requests.
                Last updated -
                Python
              • A
                security
                A
                license
                A
                quality
                Provides comprehensive Git operations as tools for AI assistants and applications. This server enables AI systems to interact with Git repositories, allowing to initialize, fetch, commit, log, status, etc..
                Last updated -
                10
                2
                TypeScript
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/chris-miaskowski/custom-gitlab-mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server