MCP.so
登录

Gitlab MCP Server

@piatra-automation

基本信息

分类

版本控制

许可证

MIT

传输方式

stdio

作者

piatra-automation

关于 Gitlab MCP Server

Improved implementation of Anthropic's modelcontextprotocol/servers Gitlab MCP server

Gitlab MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Gitlab MCP Server 工具

工具列表暂未提供

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

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

概览

What is GitLab MCP Server?

A Model Context Protocol (MCP) server that allows AI assistants (like Claude) to interact with GitLab repositories. It provides comprehensive capabilities for managing projects, issues, merge requests, comments, labels, milestones, time tracking, and more. This enhanced implementation includes additional endpoints and improved error handling compared to the original MCP GitLab server.

How to use GitLab MCP Server?

Install globally (npm install -g @piatra-open-source/gitlab-mcp-server) or as a project dependency. Set the required environment variable GITLAB_PERSONAL_ACCESS_TOKEN (and optionally GITLAB_API_URL for self-managed instances). Run the server with gitlab-mcp-server or embed it in your application using the Node.js child process API.

Key features of GitLab MCP Server

  • Project creation, update, deletion, forking, and search
  • File operations: fetch, create/update, commit multiple files
  • Issue management with filtering and time tracking
  • Full CRUD for issue comments
  • Label management: create, update, delete, attach/detach
  • Milestone retrieval and creation
  • User assignment and unassignment on issues
  • Issue linking (relates_to, etc.) and link deletion

Use cases of GitLab MCP Server

  • Create a project in a specific GitLab group with custom visibility
  • Retrieve open issues with time tracking statistics
  • Add spent time to an issue and update its attributes
  • Manage comments (create, update, delete) on issues
  • Create and assign labels and milestones to issues
  • Link, unlink, and manage relationships between issues
  • Automate repository administration (fork, delete, change visibility)

常见问题

1

What distinguishes this server from the original MCP GitLab server?

It adds comprehensive endpoints for delete/update projects, time tracking, notes, labels, milestones, user assignment, and issue linking, with fixed namespace_id handling and enhanced error messages.

2

What environment variables are required?

`GITLAB_PERSONAL_ACCESS_TOKEN` (mandatory) and `GITLAB_API_URL` (optional, defaults to `https://gitlab.com/api/v4`).

3

Why do I get a “file_path should be a valid file path” error?

GitLab expects properly formatted paths (forward slashes, no invalid characters, case-sensitive). Ensure the file path exists in the repository for updates and avoid special characters like `#`, `?`, `[`, `]`.

4

How do I handle authentication or permission issues?

Verify your personal access token has the necessary scopes. Check you have adequate access rights to the repository and group. Be aware of GitLab API rate limits.

5

Does the server support self-managed GitLab instances?

Yes, by setting the `GITLAB_API_URL` environment variable to your custom GitLab API endpoint.

评论

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