Provides 44 tools across 18 entity types to manage GitLab resources, including projects, merge requests, pipelines, work items (issues, epics, tasks), wiki pages, repository files, and CI/CD configurations.
GitLab MCP Server
A Model Context Protocol server that connects AI agents to the GitLab API — 44 tools across 18 entity types with CQRS architecture, OAuth 2.1, and multiple transport modes.
Quick Start
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@structured-world/gitlab-mcp"],
"env": {
"GITLAB_TOKEN": "your_gitlab_token",
"GITLAB_API_URL": "https://gitlab.com"
}
}
}
}Requirements: Node.js >= 24
Highlights
44 tools across 18 entity types — projects, merge requests, pipelines, work items, wiki, and more
CQRS architecture —
browse_*for queries,manage_*for commandsMultiple transports — stdio, SSE, StreamableHTTP
OAuth 2.1 — Per-user authentication via Claude Custom Connector
Read-only mode — Safe operation for production environments
Auto-discovery — Detects GitLab config from git remotes
Fine-grained control — Enable/disable tool groups, filter actions, customize descriptions
Docker support —
ghcr.io/structured-world/gitlab-mcp:latest
Documentation
Full documentation is available at gitlab-mcp.sw.foundation
Section | Description |
npm, Docker, VS Code, Codex | |
Environment variables, feature flags | |
All 44 tools with parameters | |
Team authentication with Claude | |
Production deployment with SSL | |
Tool descriptions, action filtering | |
Browse and export tool documentation |
Auto-generated Tool Reference
For the complete tool reference with parameters:
# View locally
yarn list-tools --detail
# Generate documentation
yarn list-tools --export --toc > docs/TOOLS.mdSee Tools Reference for the auto-generated reference.
Docker
# HTTP mode
docker run -e PORT=3002 -e GITLAB_TOKEN=your_token -p 3333:3002 \
ghcr.io/structured-world/gitlab-mcp:latest
# stdio mode
docker run -i --rm -e GITLAB_TOKEN=your_token \
ghcr.io/structured-world/gitlab-mcp:latestFeature Flags
Flag | Default | Tools Enabled |
|
| Label management |
|
| Merge requests |
|
| File operations |
|
| CI/CD variables |
|
| Issues, epics, tasks |
|
| Webhook management |
|
| Code snippets |
|
| 50+ integrations |
|
| Wiki pages |
|
| Milestones |
|
| Pipelines & CI/CD |
|
| Release management |
|
| Branch & tag management |
|
| Team members |
|
| Cross-project search |
|
| Iteration planning (sprints) |
Contributing
See CONTRIBUTING.md for development setup, testing, and PR guidelines.
Support the Project
USDT (TRC-20): TFDsezHa1cBkoeZT5q2T49Wp66K8t2DmdA
License
Apache License 2.0 — see LICENSE for details.
Based on zereight/gitlab-mcp (MIT). See LICENSE.MIT.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.