Advanced GitLab MCP server
v13.8.066 tools, 253 typed actions, 27 registry groups
Has high-severity static-analysis findings pending human review.
Values you need
| Variable | What it is | |
|---|---|---|
GITLAB_TOKEN | required secret | GitLab Personal Access Token with 'api' and 'read_user' scopes |
GITLAB_API_URL | optional | GitLab instance API URL for self-hosted instances (defaults to https://gitlab.com) |
GITLAB_READ_ONLY_MODE | optional | Enable read-only mode (disable all manage_* write operations) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add gitlab-mcp -e 'GITLAB_TOKEN=<GITLAB_TOKEN>' -- npx -y @structured-world/gitlab-mcp@13.8.0Add to
claude_desktop_config.json{
"mcpServers": {
"gitlab-mcp": {
"args": [
"-y",
"@structured-world/gitlab-mcp@13.8.0"
],
"command": "npx",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitlab-mcp": {
"args": [
"-y",
"@structured-world/gitlab-mcp@13.8.0"
],
"command": "npx",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GITLAB_TOKEN",
"id": "gitlab-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"gitlab-mcp": {
"args": [
"-y",
"@structured-world/gitlab-mcp@13.8.0"
],
"command": "npx",
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitlab-mcp]
command = "npx"
args = ["-y", "@structured-world/gitlab-mcp@13.8.0"]
env = { "GITLAB_TOKEN" = "<GITLAB_TOKEN>" }For AI agents
- Ask the user for: GITLAB_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: manage_context, get_profile, get_settings, update_settings, check_connection, open_settings_panel, find_scope_targets.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json