MCP.so
登录

GitLab MCP Server

@TheRealChrisThomas

基本信息

分类

版本控制

许可证

MIT

传输方式

stdio

作者

TheRealChrisThomas

关于 GitLab MCP Server

Gitlab MCP Server

GitLab MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "gitlab-mcp-server-therealchristhomas": {
      "command": "npx",
      "args": [
        "@therealchristhomas/gitlab-mcp-server"
      ]
    }
  }
}

GitLab MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is GitLab MCP Server?

A Model Context Protocol (MCP) server that wraps the GitLab API, enabling project management, file operations, issue and merge request management, and milestone tracking. It is for developers and teams using GitLab who want AI assistants (like Claude) to interact directly with their repositories, groups, and projects.

How to use GitLab MCP Server?

Install via npx @therealchristhomas/gitlab-mcp-server or globally with npm install -g @therealchristhomas/gitlab-mcp-server. Configure a GitLab Personal Access Token and set the environment variables GITLAB_PERSONAL_ACCESS_TOKEN and GITLAB_API_URL. Then add the server to your MCP client (Claude Desktop, Cursor, VSCode, Windsurf) using the appropriate configuration file (e.g., claude_desktop_config.json).

Key features of GitLab MCP Server

  • Automatic branch creation on file operations.
  • Comprehensive error handling with clear messages.
  • Batch operations for single and multiple files.
  • Project and group milestone management.
  • Issue and merge request creation, listing, and commenting.
  • Label management (create, update, delete).
  • Group operations including search and milestone management.

Use cases of GitLab MCP Server

  • Automate file creation and updates across multiple GitLab projects via AI assistants.
  • Track cross-project releases using group milestones that span multiple repositories.
  • Manage issues and merge requests with natural language commands from an MCP client.
  • Search for groups and projects, then create milestones or labels programmatically.
  • Fork repositories and create branches without leaving the conversation.

常见问题

1

What is the difference between group milestones and project milestones?

Group milestones span multiple projects within a group and are managed with dedicated tools (`list_group_milestones`, `create_group_milestone`), while project milestones are scoped to a single project and use tools like `list_milestones`, `create_milestone`.

2

How do I set up authentication for the GitLab MCP Server?

You need a GitLab Personal Access Token. Set it as the environment variable `GITLAB_PERSONAL_ACCESS_TOKEN`. Also set `GITLAB_API_URL` (defaults to `https://gitlab.com/api/v4` if not provided).

3

What runtime or dependencies are required?

The server runs via Node.js and is distributed as an npm package. No additional runtime beyond Node.js is required.

4

Which GitLab operations are supported?

The server provides tools for file operations, repository management (search, create, fork, branch), issue management, merge request management, label management, milestone management (project and group), and group operations (search groups).

5

Is there a limit on how many files I can push at once?

The `push_files` tool accepts an array of files (each with `file_path` and `content`) in a single commit. The README does not specify a hard limit, but GitLab API limits apply.

评论

版本控制 分类下的更多 MCP 服务器