GitLab MCP Server
v3.8.0Go MCP server for GitLab: 2 dynamic tools reach ~879 actions on Free/CE, up to ~1106 on Ultimate.
Values you need
| Variable | What it is | |
|---|---|---|
GITLAB_URL | optional | GitLab instance URL (default: https://gitlab.com; set for self-managed instances) Default: https://gitlab.com |
GITLAB_TOKEN | required secret | GitLab Personal Access Token (glpat-...) |
GITLAB_MCP_SKIP_TLS_VERIFY | optional | Skip TLS certificate verification for self-signed certs (default: false) Default: false |
GITLAB_MCP_TOOL_SURFACE | optional | Tool catalog selector: dynamic, meta, or individual (default: dynamic) Default: dynamic |
GITLAB_MCP_TIER | optional | GitLab tier: free/ce, premium or ultimate, used as given. When unset, detected from the instance license, then from the plans of the namespaces the token administers, then, on GitLab.com, from the top-level groups the token is a member of, falling back to free. Gates Premium and Ultimate actions; Gi |
GITLAB_MCP_READ_ONLY | optional | Read-only mode: removes every mutating action from the served surface; reads keep working (default: false) Default: false |
GITLAB_MCP_SAFE_MODE | optional | Safe mode: a mutating action returns a preview card naming the action and echoing its arguments instead of running; reads keep working (default: false) Default: false |
GITLAB_MCP_LOG_LEVEL | optional | Logging verbosity (default: info) Default: info |
GITLAB_MCP_CAPABILITY_SURFACE | optional | Resource and prompt catalog selector: full or minimal (default: full); resource subscriptions require full Default: full |
GITLAB_MCP_META_PARAM_SCHEMA | optional | Meta-tool input schema detail: opaque, compact, or full (default: opaque) Default: opaque |
GITLAB_MCP_EMBEDDED_RESOURCES | optional | Append EmbeddedResource content blocks (clickable links to MCP resources) to get_* tool results (default: true) Default: true |
GITLAB_MCP_EXCLUDE_TOOLS | optional | Comma-separated tool names, group names or canonical action IDs to exclude, on every surface (e.g. gitlab_admin,gitlab_runner) |
GITLAB_MCP_IGNORE_SCOPES | optional | Skip the scope filter and the read_api narrowing and register all tools regardless of token permissions; a token carrying neither read_api nor api is still refused (default: false) Default: false |
GITLAB_MCP_UPLOAD_MAX_FILE_SIZE | optional | Largest local file an upload or file-reading action accepts, in bytes or with a KB, MB or GB suffix (e.g. 2GB); at most 1 TB (default: 2147483648, 2 GB) Default: 2147483648 |
GITLAB_MCP_ALLOWED_UPLOAD_DIRS | optional | Extra OS path-list-separated directories an action may read a local file from; the working directory (unless it is the filesystem root or your home directory) and the OS temp directory are always allowed. Unused in HTTP mode, which refuses local paths |
GITLAB_MCP_ALLOWED_DOWNLOAD_DIRS | optional | Extra OS path-list-separated directories an action may write a downloaded file into; the working directory (unless it is the filesystem root or your home directory) and the OS temp directory are always allowed. Unused in HTTP mode, which refuses local paths |
GITLAB_MCP_ALLOWED_IMPORT_DIRS | optional | Extra OS path-list-separated directories a project or group import archive may be read from; the working directory (unless it is the filesystem root or your home directory) and the OS temp directory are always allowed. Unused in HTTP mode, which refuses local paths |
GITLAB_MCP_RATE_LIMIT_RPS | optional | Rate limit per credential, in requests per second, on every call that reaches GitLab, with tools/list charged to a bucket of its own; 0, the default on stdio, disables it (default: 0) Default: 0 |
GITLAB_MCP_RATE_LIMIT_BURST | optional | Token-bucket burst size when GITLAB_MCP_RATE_LIMIT_RPS is greater than 0 (default: 40) Default: 40 |
GITLAB_MCP_LANGUAGE | optional | Language of the elicitation questions, form field titles and progress messages a client shows the user: en or es (default: en). What the model reads stays English Default: en |
npm (npx) verified
Requires Node.js 18+
Run in a terminal
claude mcp add gitlab-mcp-server -e 'GITLAB_TOKEN=<GITLAB_TOKEN>' -- npx -y @jmrp.io/gitlab-mcp-server@3.8.0Add to
claude_desktop_config.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"-y",
"@jmrp.io/gitlab-mcp-server@3.8.0"
],
"command": "npx",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"-y",
"@jmrp.io/gitlab-mcp-server@3.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-server": {
"args": [
"-y",
"@jmrp.io/gitlab-mcp-server@3.8.0"
],
"command": "npx",
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitlab-mcp-server]
command = "npx"
args = ["-y", "@jmrp.io/gitlab-mcp-server@3.8.0"]
env = { "GITLAB_TOKEN" = "<GITLAB_TOKEN>" }Docker
Requires Docker
Run in a terminal
claude mcp add gitlab-mcp-server -e 'GITLAB_TOKEN=<GITLAB_TOKEN>' -- docker run -i --rm -e GITLAB_TOKEN ghcr.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4Add to
claude_desktop_config.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GITLAB_TOKEN",
"ghcr.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"
],
"command": "docker",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GITLAB_TOKEN",
"ghcr.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"
],
"command": "docker",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GITLAB_TOKEN",
"id": "gitlab-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"gitlab-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GITLAB_TOKEN",
"ghcr.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"
],
"command": "docker",
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitlab-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "-e", "GITLAB_TOKEN", "ghcr.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"]
env = { "GITLAB_TOKEN" = "<GITLAB_TOKEN>" }Docker
Requires Docker
Run in a terminal
claude mcp add gitlab-mcp-server -e 'GITLAB_TOKEN=<GITLAB_TOKEN>' -- docker run -i --rm -e GITLAB_TOKEN docker.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4Add to
claude_desktop_config.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GITLAB_TOKEN",
"docker.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"
],
"command": "docker",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GITLAB_TOKEN",
"docker.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"
],
"command": "docker",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GITLAB_TOKEN",
"id": "gitlab-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"gitlab-mcp-server": {
"args": [
"run",
"-i",
"--rm",
"-e",
"GITLAB_TOKEN",
"docker.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"
],
"command": "docker",
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitlab-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "-e", "GITLAB_TOKEN", "docker.io/jmrplens/gitlab-mcp-server:3.8.0@sha256:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4"]
env = { "GITLAB_TOKEN" = "<GITLAB_TOKEN>" }PyPI (uvx)
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add gitlab-mcp-server -e 'GITLAB_TOKEN=<GITLAB_TOKEN>' -- uvx jmrplens-gitlab-mcp-server==3.8.0Add to
claude_desktop_config.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"jmrplens-gitlab-mcp-server==3.8.0"
],
"command": "uvx",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"jmrplens-gitlab-mcp-server==3.8.0"
],
"command": "uvx",
"env": {
"GITLAB_TOKEN": "<GITLAB_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GITLAB_TOKEN",
"id": "gitlab-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"gitlab-mcp-server": {
"args": [
"jmrplens-gitlab-mcp-server==3.8.0"
],
"command": "uvx",
"env": {
"GITLAB_TOKEN": "${input:gitlab-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitlab-mcp-server]
command = "uvx"
args = ["jmrplens-gitlab-mcp-server==3.8.0"]
env = { "GITLAB_TOKEN" = "<GITLAB_TOKEN>" }Remote (hosted)
Run in a terminal
claude mcp add --transport http gitlab-mcp-server https://mcp.jmrp.io/gitlab --header 'Authorization: <Authorization>'Add to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"gitlab-mcp-server": {
"args": [
"-y",
"mcp-remote",
"https://mcp.jmrp.io/gitlab",
"--header",
"Authorization: <Authorization>"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitlab-mcp-server": {
"headers": {
"Authorization": "<Authorization>"
},
"url": "https://mcp.jmrp.io/gitlab"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"gitlab-mcp-server": {
"headers": {
"Authorization": "<Authorization>"
},
"type": "http",
"url": "https://mcp.jmrp.io/gitlab"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitlab-mcp-server]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.jmrp.io/gitlab", "--header", "Authorization: <Authorization>"]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: gitlab_execute_action, gitlab_find_action.
- 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