MCP.so
登录

GitLab-MCP-Server

@owayo

关于 GitLab-MCP-Server

暂无概览

配置

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

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

工具

未检测到工具

工具是从 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.

FAQ from GitLab-MCP-Server

What GitLab API token permissions are required?

A token with the read_api scope is needed.

What tools does GitLab-MCP-Server expose?

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

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.

What environment variables are required?

GITLAB_URL, GITLAB_PROJECT_NAME, GITLAB_API_KEY, and GIT_REPO_PATH.

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.

常见问题

What GitLab API token permissions are required?

A token with the `read_api` scope is needed.

What tools does GitLab-MCP-Server expose?

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

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.

What environment variables are required?

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

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 服务器