Advanced GitLab MCP server
MCP server by structured-world Community
Advanced GitLab MCP server lets AI assistants work with GitLab through 66 tools. The tool list is filtered to each instance's GitLab version, tier and token scopes. It suits developers who use GitLab from MCP-compatible clients.
Install Advanced GitLab MCP server
Built from the published package, never by AI.
claude mcp add advanced-gitlab-mcp-server -e GITLAB_TOKEN=YOUR_GITLAB_TOKEN -- npx -y @structured-world/gitlab-mcpRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install Advanced GitLab MCP server in Claude Code
{
"mcpServers": {
"advanced-gitlab-mcp-server": {
"env": {
"GITLAB_TOKEN": "YOUR_GITLAB_TOKEN"
},
"args": [
"-y",
"@structured-world/gitlab-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Advanced GitLab MCP server in Claude Desktop
{
"mcpServers": {
"advanced-gitlab-mcp-server": {
"env": {
"GITLAB_TOKEN": "YOUR_GITLAB_TOKEN"
},
"args": [
"-y",
"@structured-world/gitlab-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"advanced-gitlab-mcp-server": {
"env": {
"GITLAB_TOKEN": "YOUR_GITLAB_TOKEN"
},
"args": [
"-y",
"@structured-world/gitlab-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add advanced-gitlab-mcp-server --env GITLAB_TOKEN=YOUR_GITLAB_TOKEN -- npx -y @structured-world/gitlab-mcp{
"mcpServers": {
"advanced-gitlab-mcp-server": {
"env": {
"GITLAB_TOKEN": "YOUR_GITLAB_TOKEN"
},
"args": [
"-y",
"@structured-world/gitlab-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Advanced GitLab MCP server in Antigravity CLI
gemini mcp add advanced-gitlab-mcp-server npx -y @structured-world/gitlab-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install Advanced GitLab MCP server in Gemini CLI
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the advanced-gitlab-mcp-server block.
About
Advanced GitLab MCP server gives AI assistants access to GitLab through 66 tools across 27 registry groups. Most of these are 60 CQRS tools that expose 241 typed actions, with 6 setup helpers. Browse tools handle read-only queries and manage tools handle writes. Sub-resources such as jobs and logs fold into actions rather than separate tools.
The tool list, actions and parameters are resolved against each instance's GitLab version, tier, token scopes and feature flags, so the agent sees only what the connected instance supports. It works with GitLab.com and self-managed instances and supports stdio, SSE and StreamableHTTP transports. It is aimed at developers and teams who use GitLab from clients such as Claude Desktop, Claude Code, Codex, VS Code and Cursor.
Written from the project's README and checked against it.
Tools it gives your assistant
browse_pipelinesLists pipelines and covers jobs, job details, logs and triggers.manage_pipelineCreates, retries or cancels pipelines.browse_environmentsLists and gets environments and their deployments.manage_environmentCreates, updates, stops or deletes environments and updates deployment status.browse_deploy_keysLists and gets deploy keys.manage_deploy_keyAdds, enables, updates or deletes deploy keys.manage_contextProvides local actions such as whoami, switch_preset and set_scope.
What you need
- Node.js 24 or later
- A GitLab token (GITLAB_TOKEN)
- A GitLab instance URL (GITLAB_API_URL)
| Setting | Needed | What it is |
|---|---|---|
GITLAB_Environment variable, secret | Required | GitLab Personal Access Token with 'api' and 'read_user' scopes |
GITLAB_Environment variable | Optional | GitLab instance API URL for self-hosted instances (defaults to https://gitlab.com) |
GITLAB_Environment variable | Optional | Enable read-only mode (disable all manage_* write operations) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List the failed pipelines in my GitLab project this week
- Retry the latest pipeline for the main branch
- Show the deployments for the production environment
Good to know
- When GitLab is unreachable, only the manage_context tool is exposed.
- Duo session commands can consume credits and change GitLab.
- Mid-session token revocation checks run only in static token mode, not OAuth mode.
- Antigravity CLI 1.4.10 is qualified on macOS and Linux.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Advanced GitLab MCP server
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Advanced GitLab MCP server: common questions
Does it work with self-managed GitLab?
Yes. The source says it connects to GitLab.com, self-managed and self-hosted instances, with per-instance OAuth and rate limiting.
Can it run in read-only mode?
Yes. The source lists a read-only mode for safe operation in production environments.
What happens if GitLab is down?
The server starts within a bounded time and enters a disconnected mode. It reconnects with exponential backoff when GitLab becomes reachable again.
How do I install Advanced GitLab MCP server?
In Claude Code run claude mcp add advanced-gitlab-mcp-server -e GITLAB_TOKEN=YOUR_GITLAB_TOKEN -- npx -y @structured-world/gitlab-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Advanced GitLab MCP server the official server?
Advanced GitLab MCP server is a community project by structured-world, not verified by a company domain.
Is Advanced GitLab MCP server free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Advanced GitLab MCP server safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Advanced GitLab MCP server?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Advanced GitLab MCP server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
