What is mcp-gitlab-server?
mcp-gitlab-server is a GitLab integration server for the Model Context Protocol (MCP). Built on python-gitlab, it provides tools for repository and project management, code reading, and merge request analytics. It is intended for developers and teams using GitLab who want to interact with their projects through MCP clients like Claude Desktop.
How to use mcp-gitlab-server?
Install by adding a configuration entry to your MCP client using the command uvx with the package gitlab-mcp-server. Set the environment variables GITLAB_TOKEN (or GITLAB_OAUTH_TOKEN) and optionally GITLAB_URL (defaults to https://gitlab.com). You can authenticate with a personal access token or an OAuth2 token.
Key features of mcp-gitlab-server
- List, search, and get details for GitLab projects and groups
- Read repository code and files with glob filtering and size limits
- Analyze merge request lifetime statistics (average, percentiles, distribution)
- Support for GitLab.com and self-hosted GitLab instances
- Authentication via personal access token or OAuth2 token
Use cases of mcp-gitlab-server
- Automatically index all projects accessible to a user
- Read code contents from a repository without cloning it locally
- Calculate and report merge request turnaround times for a team
- Search across repositories by name, description, or keywords
コメント