# GitLab MCP Server

> Access GitLab from AI clients through MCP.

- **URL**: https://followmcp.com/en/servers/mcp-gitlab-server
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 66
- **FMRS Score**: 56/100 (Grade C)
- **Source**: https://github.com/yoda-digital/mcp-gitlab-server
- **Transports**: stdio (local process), SSE, Streamable HTTP
- **Runtimes**: Node.js
- **Auth**: API key / credential required

## Overview
GitLab MCP Server connects the GitLab REST API to MCP-compatible AI clients through 86 tools covering projects, files, branches, issues, merge requests, CI/CD, wikis, and groups. It supports gitlab.com and self-hosted GitLab, with stdio, SSE, and Streamable HTTP transports.

## Best for
- Teams connecting AI clients to GitLab through MCP.
- Users of self-hosted GitLab or deployments that need multiple MCP transports.
- Teams that want local read-only tools or a shared remote service behind an OAuth gateway.

## Not for
- Users who need only GitLab's built-in 15-tool MCP server and have the required subscription.
- Users needing GitLab REST API operations beyond those described in the README.
- Deployments that need to bind a PAT-mode HTTP service to a non-loopback network address.

## Required permissions
- PAT mode requires a GitLab Personal Access Token; its effective permissions depend on the token's granted scopes.
- OAuth mode requires an upstream gateway to provide an Authorization Bearer token per connection; the server forwards it to GitLab.
- Read-only mode removes mutating tools at registration time.

## Risks
- HTTP transport in PAT mode has no authentication, so the server restricts it to loopback binds.
- Network-accessible HTTP deployments must use OAuth mode; a gateway should handle the identity provider and inject a per-connection token.
- When write tools are enabled, an AI client can modify GitLab resources; use read-only mode when appropriate and protect tokens.

## Client config (JSON)
```json
{"mcpServers":{"gitlab":{"command":"npx","args":["-y","@yoda.digital/gitlab-mcp-server"],"env":{"GITLAB_PERSONAL_ACCESS_TOKEN":"glpat-…","GITLAB_API_URL":"https://gitlab.com/api/v4"}}}}
```
