GitLab MCP Server

v3.8.0
io.github.jmrplens/gitlab-mcp-server Checked 39 minutes ago Published 8 days ago

Go MCP server for GitLab: 2 dynamic tools reach ~879 actions on Free/CE, up to ~1106 on Ultimate.

Values you need

VariableWhat it is
GITLAB_URLoptional GitLab instance URL (default: https://gitlab.com; set for self-managed instances) Default: https://gitlab.com
GITLAB_TOKENrequired secret GitLab Personal Access Token (glpat-...)
GITLAB_MCP_SKIP_TLS_VERIFYoptional Skip TLS certificate verification for self-signed certs (default: false) Default: false
GITLAB_MCP_TOOL_SURFACEoptional Tool catalog selector: dynamic, meta, or individual (default: dynamic) Default: dynamic
GITLAB_MCP_TIERoptional 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_ONLYoptional Read-only mode: removes every mutating action from the served surface; reads keep working (default: false) Default: false
GITLAB_MCP_SAFE_MODEoptional 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_LEVELoptional Logging verbosity (default: info) Default: info
GITLAB_MCP_CAPABILITY_SURFACEoptional Resource and prompt catalog selector: full or minimal (default: full); resource subscriptions require full Default: full
GITLAB_MCP_META_PARAM_SCHEMAoptional Meta-tool input schema detail: opaque, compact, or full (default: opaque) Default: opaque
GITLAB_MCP_EMBEDDED_RESOURCESoptional Append EmbeddedResource content blocks (clickable links to MCP resources) to get_* tool results (default: true) Default: true
GITLAB_MCP_EXCLUDE_TOOLSoptional Comma-separated tool names, group names or canonical action IDs to exclude, on every surface (e.g. gitlab_admin,gitlab_runner)
GITLAB_MCP_IGNORE_SCOPESoptional 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_SIZEoptional 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_DIRSoptional 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_DIRSoptional 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_DIRSoptional 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_RPSoptional 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_BURSToptional Token-bucket burst size when GITLAB_MCP_RATE_LIMIT_RPS is greater than 0 (default: 40) Default: 40
GITLAB_MCP_LANGUAGEoptional 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.0
Add 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:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4
Add 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:4488d2dcb855d3816f0ba92f3a21ea7c5072a4318ad8cd0a000172d57002a0c4
Add 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.0
Add 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

  1. Ask the user for: GITLAB_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: gitlab_execute_action, gitlab_find_action.
  5. 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