GitLab MCP Server
GitLab API access for project management, file operations, and repository automation.
Data last scanned today · Reviewed yesterday
Overview
The GitLab MCP Server provides a direct interface to GitLab API functionality, allowing AI models to handle repository tasks and project management. Users can search for projects, read file contents, and create new repositories directly through their AI-assisted workflow. Advanced features include automatic branch creation for file updates, support for batch file operations, and the ability to open merge requests and issues. The server maintains Git history integrity by avoiding forced pushes during file operations.
Our verdict
This server carries a high-risk security score of 0/100 and should be avoided in sensitive environments. The repository is explicitly archived and unmaintained, with the last commit occurring over 400 days ago. Crucially, the server lacks an authentication method and provides full write access by default without a read-only mode, meaning any misconfiguration exposes significant risk to your GitLab projects.
- Supports batch file and multi-file push operations
- Maintains proper Git history without forced pushes
- Uses a lightweight structure with only 4 dependencies
- Repository is archived and no longer receives updates
- Lacks authentication, posing a significant access risk
- Full write access is granted without read-only restrictions
Setup
{
"mcpServers": {
"gitlab": {
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"command": "npx"
}
}
}Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.
- No read-only mode — running this grants full read/write access.
- No built-in authentication — anyone with access to this config can invoke every tool it exposes.
Tools
| Tool | Description | Risk |
|---|---|---|
| create_or_update_file | Create or update a single file in a project | medium |
| push_files | Push multiple files in a single commit | medium |
| search_repositories | Search for GitLab projects | low |
| create_repository | Create a new GitLab project | medium |
| get_file_contents | Get contents of a file or directory | low |
| create_issue | Create a new issue | medium |
| create_merge_request | Create a new merge request | medium |
| fork_repository | Fork a project | medium |
| create_branch | Create a new branch | medium |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| ChatGPT | ||||
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf |
Alternatives
Badge
Maintain this server? Add the live badge to your README.