MCP.so
登录

GitLab MCP Server

@owayo

基本信息

分类

版本控制

许可证

MIT license

传输方式

stdio

作者

owayo

关于 GitLab MCP Server

暂无概览

GitLab MCP Server 配置

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

{
  "mcpServers": {
    "gitlab-mcp-server-owayo": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

GitLab MCP Server 工具

工具列表暂未提供

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

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is GitLab-MCP-Server?

GitLab-MCP-Server is a Model Context Protocol (MCP) server that integrates with GitLab to fetch pipeline failure details, unresolved merge request review comments, and MR changes from a specific project. It provides this data to AI assistants (e.g., Claude) so they can help diagnose issues, address review feedback, and review code changes.

How to use GitLab-MCP-Server?

Install via uv (uv sync), obtain a GitLab API token with read_api scope, and set the environment variables GITLAB_URL, GITLAB_PROJECT_NAME, GITLAB_API_KEY, and GIT_REPO_PATH. Add the server configuration to Claude for Desktop (claude_desktop_config.json) or Cursor (.cursor/mcp.json) using the uv command and main.py script.

Key features of GitLab-MCP-Server

  • Fetches console output from failed pipeline jobs.
  • Retrieves unresolved, file‑linked MR review comments.
  • Obtains MR diff between base commit and local repository state.
  • Provides data directly to AI assistants via MCP tools.

Use cases of GitLab-MCP-Server

  • AI assistant analyzes pipeline failures and suggests fixes.
  • AI assistant reviews unresolved MR comments and helps address them.
  • AI assistant reviews MR changes against local working state for code review.
  • Integration with coding tools (Claude Desktop, Cursor) for automated assistance.

常见问题

1

What GitLab API token permissions are required?

A token with the `read_api` scope is needed.

2

What tools does GitLab-MCP-Server expose?

Three tools: `get_pipeline_failed_jobs()`, `get_review_comments()`, and `get_review_changes()`.

3

How do I configure GitLab-MCP-Server for Claude for Desktop?

Add an entry in `claude_desktop_config.json` with `uv` as the command, the server directory, `main.py`, and the required environment variables.

4

What environment variables are required?

`GITLAB_URL`, `GITLAB_PROJECT_NAME`, `GITLAB_API_KEY`, and `GIT_REPO_PATH`.

5

Can GitLab-MCP-Server be used with Cursor?

Yes, by adding a configuration in `.cursor/mcp.json` that passes the environment variables as arguments to the command.

评论

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