Back to Browse

Gitlab MCP Server

Developer ToolsUse Caution4.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more.

About

GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more.

Security Report

4.8
Use Caution4.8High Risk

Valid MCP server (3 strong, 6 medium validity signals). 7 known CVEs in dependencies (0 critical, 4 high severity) Package registry verified. Imported from the Official MCP Registry.

5 files analyzed · 8 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

GitLab personal access token for local stdio use. A non-empty value overrides GITLAB_PERSONAL_ACCESS_TOKEN_FILE. One of this token, GITLAB_PERSONAL_ACCESS_TOKEN_FILE, GITLAB_JOB_TOKEN, GITLAB_AUTH_COOKIE_PATH, or GITLAB_USE_OAUTH=true must be set. Create a token with the GitLab scopes the tools need, such as api or read_api.Required

Environment variable: GITLAB_PERSONAL_ACCESS_TOKEN

Path to a file that contains the personal access token. Read once at startup and trimmed. Ignored when GITLAB_PERSONAL_ACCESS_TOKEN or --token is non-empty. A missing, unreadable, or empty file stops startup. Does not replace job token, OAuth, cookie, or remote authorization.Optional

Environment variable: GITLAB_PERSONAL_ACCESS_TOKEN_FILE

Optional GitLab CI job token to use instead of a personal access token when running inside GitLab CI.Required

Environment variable: GITLAB_JOB_TOKEN

Optional path to a GitLab authentication cookie file for cookie-based authentication.Optional

Environment variable: GITLAB_AUTH_COOKIE_PATH

Set to true to start with GitLab OAuth instead of a personal access token, job token, or cookie file.Optional

Environment variable: GITLAB_USE_OAUTH

GitLab OAuth application ID. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_TOKEN_SCRIPT.Optional

Environment variable: GITLAB_OAUTH_CLIENT_ID

Command that prints an OAuth access token. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_CLIENT_ID.Optional

Environment variable: GITLAB_OAUTH_TOKEN_SCRIPT

GitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL.Optional

Environment variable: GITLAB_API_URL

Optional comma-separated list of GitLab project IDs that this server is allowed to access.Optional

Environment variable: GITLAB_ALLOWED_PROJECT_IDS

Tool exposure. Allowed values are readonly, modify, and full. Unset uses full. readonly keeps read-only tools. modify blocks delete and teardown tools.Optional

Environment variable: GITLAB_PERMISSION_MODE

Optional comma-separated toolset ids (projects, issues, merge_requests, …). Unset keeps the lean core default plus discover_tools. Do not set all unless you accept loading ~all schemas (~73k tokens).Optional

Environment variable: GITLAB_TOOLSETS

Optional comma-separated list of individual tool names to add on top of enabled toolsets.Optional

Environment variable: GITLAB_TOOLS

Optional regular expression used to hide matching tools from the server.Optional

Environment variable: GITLAB_DENIED_TOOLS_REGEX

Optional comma-separated list of tool names that require explicit approval before execution.Optional

Environment variable: GITLAB_TOOL_POLICY_APPROVE

Optional comma-separated list of tool names to hide from tools/list.Optional

Environment variable: GITLAB_TOOL_POLICY_HIDDEN

Set to 0 only when you intentionally need to connect to a GitLab instance with invalid or self-signed TLS certificates.Optional

Environment variable: NODE_TLS_REJECT_UNAUTHORIZED

Optional path to a custom CA certificate file for self-managed GitLab instances.Optional

Environment variable: GITLAB_CA_CERT_PATH

Set to true to mask text tool results and returned errors using built-in or configured rules.Optional

Environment variable: GITLAB_MASKING_ENABLED

Optional path to a response-masking JSON configuration file.Optional

Environment variable: GITLAB_MASKING_CONFIG

Optional protected server-owned JSON file containing managed masking policies.Optional

Environment variable: GITLAB_MASKING_POLICY_FILE

Directory used to resolve response-masking configuration paths.Optional

Environment variable: GITLAB_MASKING_WORKSPACE_DIR

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-zereight-gitlab-mcp": {
      "env": {
        "GITLAB_TOOLS": "your-gitlab-tools-here",
        "GITLAB_API_URL": "your-gitlab-api-url-here",
        "GITLAB_TOOLSETS": "your-gitlab-toolsets-here",
        "GITLAB_JOB_TOKEN": "your-gitlab-job-token-here",
        "GITLAB_USE_OAUTH": "your-gitlab-use-oauth-here",
        "GITLAB_CA_CERT_PATH": "your-gitlab-ca-cert-path-here",
        "GITLAB_MASKING_CONFIG": "your-gitlab-masking-config-here",
        "GITLAB_MASKING_ENABLED": "your-gitlab-masking-enabled-here",
        "GITLAB_OAUTH_CLIENT_ID": "your-gitlab-oauth-client-id-here",
        "GITLAB_PERMISSION_MODE": "your-gitlab-permission-mode-here",
        "GITLAB_AUTH_COOKIE_PATH": "your-gitlab-auth-cookie-path-here",
        "GITLAB_DENIED_TOOLS_REGEX": "your-gitlab-denied-tools-regex-here",
        "GITLAB_OAUTH_TOKEN_SCRIPT": "your-gitlab-oauth-token-script-here",
        "GITLAB_TOOL_POLICY_HIDDEN": "your-gitlab-tool-policy-hidden-here",
        "GITLAB_ALLOWED_PROJECT_IDS": "your-gitlab-allowed-project-ids-here",
        "GITLAB_MASKING_POLICY_FILE": "your-gitlab-masking-policy-file-here",
        "GITLAB_TOOL_POLICY_APPROVE": "your-gitlab-tool-policy-approve-here",
        "GITLAB_MASKING_WORKSPACE_DIR": "your-gitlab-masking-workspace-dir-here",
        "GITLAB_PERSONAL_ACCESS_TOKEN": "your-gitlab-personal-access-token-here",
        "NODE_TLS_REJECT_UNAUTHORIZED": "your-node-tls-reject-unauthorized-here",
        "GITLAB_PERSONAL_ACCESS_TOKEN_FILE": "your-gitlab-personal-access-token-file-here"
      },
      "args": [
        "-y",
        "@zereight/mcp-gitlab"
      ],
      "command": "npx"
    }
  }
}

Reviews

No reviews yet

Be the first to review this server!