Skip to main content
Glama

gitlab mcp

更好的 GitLab MCP 服务器

@zereight/mcp-gitlab

GitLab MCP(模型上下文协议)服务器。包含对原始 GitLab MCP 服务器的错误修复和改进。

用法

与 Claude App、Cline、Roo Code、Cursor 一起使用

当使用 Claude App 时,您需要直接设置您的 API 密钥和 URL。

{ "mcpServers": { "GitLab communication server": { "command": "npx", "args": ["-y", "@zereight/mcp-gitlab"], "env": { "GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token", "GITLAB_API_URL": "your_gitlab_api_url", "GITLAB_READ_ONLY_MODE": "false", "USE_GITLAB_WIKI":"true" } } } }

环境变量

  • GITLAB_PERSONAL_ACCESS_TOKEN :您的 GitLab 个人访问令牌。
  • GITLAB_API_URL :您的 GitLab API URL。(默认值: https://gitlab.com/api/v4
  • GITLAB_READ_ONLY_MODE :设置为“true”时,限制服务器仅公开只读操作。适用于增强安全性或不需要写入权限的情况。也适用于与 Cursor 配合使用,并限制其 40 个工具的使用数量。
  • USE_GITLAB_WIKI :设置为“true”时,启用 wiki 相关工具(list_wiki_pages、get_wiki_page、create_wiki_page、update_wiki_page、delete_wiki_page)。默认情况下,wiki 功能处于禁用状态。

工具🛠️

  1. create_or_update_file - 在 GitLab 项目中创建或更新单个文件
  2. search_repositories - 搜索 GitLab 项目
  3. create_repository - 创建一个新的 GitLab 项目
  4. get_file_contents - 从 GitLab 项目获取文件或目录的内容
  5. push_files - 在一次提交中将多个文件推送到 GitLab 项目
  6. create_issue - 在 GitLab 项目中创建新问题
  7. create_merge_request - 在 GitLab 项目中创建新的合并请求
  8. fork_repository - 将 GitLab 项目分叉到您的帐户或指定的命名空间
  9. create_branch - 在 GitLab 项目中创建一个新分支
  10. get_merge_request - 获取合并请求的详细信息(必须提供mergeRequestIid或branchName)
  11. get_merge_request_diffs - 获取合并请求的更改/差异(必须提供mergeRequestIid或branchName)
  12. update_merge_request - 更新合并请求(必须提供mergeRequestIid或branchName)
  13. create_note - 为问题或合并请求创建新注释(评论)
  14. create_merge_request_thread - 在合并请求上创建新线程
  15. mr_discussions - 列出合并请求的讨论项目
  16. update_merge_request_note - 修改现有的合并请求线程注释
  17. create_merge_request_note - 向现有合并请求线程添加新注释
  18. list_issues - 使用过滤选项列出 GitLab 项目中的问题
  19. get_issue - 获取 GitLab 项目中特定问题的详细信息
  20. update_issue - 更新 GitLab 项目中的问题
  21. delete_issue - 从 GitLab 项目中删除问题
  22. list_issue_links - 列出特定问题的所有问题链接
  23. get_issue_link - 获取特定问题链接
  24. create_issue_link - 在两个问题之间创建问题链接
  25. delete_issue_link - 删除问题链接
  26. list_namespaces - 列出当前用户可用的所有命名空间
  27. get_namespace - 通过 ID 或路径获取命名空间的详细信息
  28. verify_namespace - 验证命名空间路径是否存在
  29. get_project - 获取特定项目的详细信息
  30. list_projects - 列出当前用户可访问的项目
  31. list_labels - 列出项目的标签
  32. get_label - 从项目中获取单个标签
  33. create_label - 在项目中创建新标签
  34. update_label - 更新项目中的现有标签
  35. delete_label - 从项目中删除标签
  36. list_group_projects - 使用过滤选项列出 GitLab 组中的项目
  37. list_wiki_pages - 列出 GitLab 项目中的 wiki 页面
  38. get_wiki_page - 获取特定 wiki 页面的详细信息
  39. create_wiki_page - 在 GitLab 项目中创建一个新的 wiki 页面
  40. update_wiki_page - 更新 GitLab 项目中现有的 wiki 页面
  41. delete_wiki_page - 从 GitLab 项目中删除 wiki 页面
  42. get_repository_tree - 获取 GitLab 项目的存储库树(列出文件和目录)

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

GitLab MCP

  1. @zereight/mcp-gitlab
    1. 用法
      1. 与 Claude App、Cline、Roo Code、Cursor 一起使用
      2. 环境变量
    2. 工具🛠️

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        GitLab MCP Server (with activity tracking and group projects listing features) This server is based on the original GitLab MCP server with Group Projects Listing and Activity Tracking enhancements
        Last updated -
        28
        73
        13
        TypeScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        An MCP server that enables communication with GitLab repositories, allowing interaction with GitLab's API to manage projects, issues, and repositories through natural language.
        Last updated -
        20
        1
        JavaScript
        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/zereight/gitlab-mcp'

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