Koskamo

GitLab MCP Server

A comprehensive Model Context Protocol server for GitLab that allows AI clients to manage projects, merge requests, issues, pipelines, wikis, releases, tags, milestones, and more. It supports multiple authentication methods including Personal Access Tokens and OAuth2, and offers various installation paths for local IDEs, shared HTTP, and Claude.ai connectors.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

GitLab MCP Server logo, by zereightCommunity listingLocal stdioSource reviewed; not executedPublished by zereight
You need:Install the server once: brew tap zereight/gitlab-mcp https://github.com/zereight/gitlab-mcp brew install zereight/gitlab-mcp/zereight-mcp-gitlabnpm install -g @zereight/mcp-gitlabPersonal Access Token OAuth2 (local browser) CLI arguments
Vendor documentation

What you can do with it

  • Manage projects, merge requests, and issues
  • Monitor pipelines, jobs, and deployments
  • Browse repository files and branches
  • Access wikis and releases

Source and maintenance

Community listingRegistry 2.3.19
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@zereight/mcp-gitlab 2.3.19

npm
@zereight/mcp-gitlab package definition
{
  "version": "2.3.19",
  "transport": "stdio",
  "identifier": "@zereight/mcp-gitlab",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "GITLAB_PERSONAL_ACCESS_TOKEN",
      "format": "string",
      "description": "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."
    },
    {
      "name": "GITLAB_PERSONAL_ACCESS_TOKEN_FILE",
      "format": "filepath",
      "description": "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."
    },
    {
      "name": "GITLAB_JOB_TOKEN",
      "format": "string",
      "description": "Optional GitLab CI job token to use instead of a personal access token when running inside GitLab CI."
    },
    {
      "name": "GITLAB_AUTH_COOKIE_PATH",
      "format": "filepath",
      "description": "Optional path to a GitLab authentication cookie file for cookie-based authentication."
    },
    {
      "name": "GITLAB_USE_OAUTH",
      "format": "boolean",
      "description": "Set to true to start with GitLab OAuth instead of a personal access token, job token, or cookie file."
    },
    {
      "name": "GITLAB_OAUTH_CLIENT_ID",
      "format": "string",
      "description": "GitLab OAuth application ID. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_TOKEN_SCRIPT."
    },
    {
      "name": "GITLAB_OAUTH_TOKEN_SCRIPT",
      "format": "string",
      "description": "Command that prints an OAuth access token. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_CLIENT_ID."
    },
    {
      "name": "GITLAB_API_URL",
      "format": "string",
      "default": "https://gitlab.com/api/v4",
      "description": "GitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL."
    },
    {
      "name": "GITLAB_ALLOWED_PROJECT_IDS",
      "format": "string",
      "description": "Optional comma-separated list of GitLab project IDs that this server is allowed to access."
    },
    {
      "name": "GITLAB_PERMISSION_MODE",
      "format": "string",
      "choices": [
        "readonly",
        "modify",
        "full"
      ],
      "description": "Tool exposure. Allowed values are readonly, modify, and full. Unset uses full. readonly keeps read-only tools. modify blocks delete and teardown tools."
    },
    {
      "name": "GITLAB_TOOLSETS",
      "format": "string",
      "description": "Optional comma-separated list of toolsets to enable, such as projects, issues, merge_requests, pipelines, releases, users, groups, wiki, or search."
    },
    {
      "name": "GITLAB_TOOLS",
      "format": "string",
      "description": "Optional comma-separated list of individual tool names to add on top of enabled toolsets."
    },
    {
      "name": "GITLAB_DENIED_TOOLS_REGEX",
      "format": "string",
      "description": "Optional regular expression used to hide matching tools from the server."
    },
    {
      "name": "GITLAB_TOOL_POLICY_APPROVE",
      "format": "string",
      "description": "Optional comma-separated list of tool names that require explicit approval before execution."
    },
    {
      "name": "GITLAB_TOOL_POLICY_HIDDEN",
      "format": "string",
      "description": "Optional comma-separated list of tool names to hide from tools/list."
    },
    {
      "name": "NODE_TLS_REJECT_UNAUTHORIZED",
      "format": "string",
      "description": "Set to 0 only when you intentionally need to connect to a GitLab instance with invalid or self-signed TLS certificates."
    },
    {
      "name": "GITLAB_CA_CERT_PATH",
      "format": "filepath",
      "description": "Optional path to a custom CA certificate file for self-managed GitLab instances."
    },
    {
      "name": "GITLAB_MASKING_ENABLED",
      "format": "string",
      "default": "false",
      "description": "Set to true to mask text tool results and returned errors using built-in or configured rules."
    },
    {
      "name": "GITLAB_MASKING_CONFIG",
      "format": "filepath",
      "description": "Optional path to a response-masking JSON configuration file."
    },
    {
      "name": "GITLAB_MASKING_POLICY_FILE",
      "format": "filepath",
      "description": "Optional protected server-owned JSON file containing managed masking policies."
    },
    {
      "name": "GITLAB_MASKING_WORKSPACE_DIR",
      "format": "filepath",
      "description": "Directory used to resolve response-masking configuration paths."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "gitlab-mcp-server-zereight-mcp-gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab@2.3.19"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN>",
        "GITLAB_PERSONAL_ACCESS_TOKEN_FILE": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN_FILE>",
        "GITLAB_JOB_TOKEN": "<YOUR_GITLAB_JOB_TOKEN>",
        "GITLAB_AUTH_COOKIE_PATH": "<YOUR_GITLAB_AUTH_COOKIE_PATH>",
        "GITLAB_USE_OAUTH": "<YOUR_GITLAB_USE_OAUTH>",
        "GITLAB_OAUTH_CLIENT_ID": "<YOUR_GITLAB_OAUTH_CLIENT_ID>",
        "GITLAB_OAUTH_TOKEN_SCRIPT": "<YOUR_GITLAB_OAUTH_TOKEN_SCRIPT>",
        "GITLAB_API_URL": "<YOUR_GITLAB_API_URL>",
        "GITLAB_ALLOWED_PROJECT_IDS": "<YOUR_GITLAB_ALLOWED_PROJECT_IDS>",
        "GITLAB_PERMISSION_MODE": "<YOUR_GITLAB_PERMISSION_MODE>",
        "GITLAB_TOOLSETS": "<YOUR_GITLAB_TOOLSETS>",
        "GITLAB_TOOLS": "<YOUR_GITLAB_TOOLS>",
        "GITLAB_DENIED_TOOLS_REGEX": "<YOUR_GITLAB_DENIED_TOOLS_REGEX>",
        "GITLAB_TOOL_POLICY_APPROVE": "<YOUR_GITLAB_TOOL_POLICY_APPROVE>",
        "GITLAB_TOOL_POLICY_HIDDEN": "<YOUR_GITLAB_TOOL_POLICY_HIDDEN>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
        "GITLAB_CA_CERT_PATH": "<YOUR_GITLAB_CA_CERT_PATH>",
        "GITLAB_MASKING_ENABLED": "<YOUR_GITLAB_MASKING_ENABLED>",
        "GITLAB_MASKING_CONFIG": "<YOUR_GITLAB_MASKING_CONFIG>",
        "GITLAB_MASKING_POLICY_FILE": "<YOUR_GITLAB_MASKING_POLICY_FILE>",
        "GITLAB_MASKING_WORKSPACE_DIR": "<YOUR_GITLAB_MASKING_WORKSPACE_DIR>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "gitlab-mcp-server-zereight-mcp-gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab@2.3.19"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN>",
        "GITLAB_PERSONAL_ACCESS_TOKEN_FILE": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN_FILE>",
        "GITLAB_JOB_TOKEN": "<YOUR_GITLAB_JOB_TOKEN>",
        "GITLAB_AUTH_COOKIE_PATH": "<YOUR_GITLAB_AUTH_COOKIE_PATH>",
        "GITLAB_USE_OAUTH": "<YOUR_GITLAB_USE_OAUTH>",
        "GITLAB_OAUTH_CLIENT_ID": "<YOUR_GITLAB_OAUTH_CLIENT_ID>",
        "GITLAB_OAUTH_TOKEN_SCRIPT": "<YOUR_GITLAB_OAUTH_TOKEN_SCRIPT>",
        "GITLAB_API_URL": "<YOUR_GITLAB_API_URL>",
        "GITLAB_ALLOWED_PROJECT_IDS": "<YOUR_GITLAB_ALLOWED_PROJECT_IDS>",
        "GITLAB_PERMISSION_MODE": "<YOUR_GITLAB_PERMISSION_MODE>",
        "GITLAB_TOOLSETS": "<YOUR_GITLAB_TOOLSETS>",
        "GITLAB_TOOLS": "<YOUR_GITLAB_TOOLS>",
        "GITLAB_DENIED_TOOLS_REGEX": "<YOUR_GITLAB_DENIED_TOOLS_REGEX>",
        "GITLAB_TOOL_POLICY_APPROVE": "<YOUR_GITLAB_TOOL_POLICY_APPROVE>",
        "GITLAB_TOOL_POLICY_HIDDEN": "<YOUR_GITLAB_TOOL_POLICY_HIDDEN>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
        "GITLAB_CA_CERT_PATH": "<YOUR_GITLAB_CA_CERT_PATH>",
        "GITLAB_MASKING_ENABLED": "<YOUR_GITLAB_MASKING_ENABLED>",
        "GITLAB_MASKING_CONFIG": "<YOUR_GITLAB_MASKING_CONFIG>",
        "GITLAB_MASKING_POLICY_FILE": "<YOUR_GITLAB_MASKING_POLICY_FILE>",
        "GITLAB_MASKING_WORKSPACE_DIR": "<YOUR_GITLAB_MASKING_WORKSPACE_DIR>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "gitlab-mcp-server-zereight-mcp-gitlab": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab@2.3.19"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN>",
        "GITLAB_PERSONAL_ACCESS_TOKEN_FILE": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN_FILE>",
        "GITLAB_JOB_TOKEN": "<YOUR_GITLAB_JOB_TOKEN>",
        "GITLAB_AUTH_COOKIE_PATH": "<YOUR_GITLAB_AUTH_COOKIE_PATH>",
        "GITLAB_USE_OAUTH": "<YOUR_GITLAB_USE_OAUTH>",
        "GITLAB_OAUTH_CLIENT_ID": "<YOUR_GITLAB_OAUTH_CLIENT_ID>",
        "GITLAB_OAUTH_TOKEN_SCRIPT": "<YOUR_GITLAB_OAUTH_TOKEN_SCRIPT>",
        "GITLAB_API_URL": "<YOUR_GITLAB_API_URL>",
        "GITLAB_ALLOWED_PROJECT_IDS": "<YOUR_GITLAB_ALLOWED_PROJECT_IDS>",
        "GITLAB_PERMISSION_MODE": "<YOUR_GITLAB_PERMISSION_MODE>",
        "GITLAB_TOOLSETS": "<YOUR_GITLAB_TOOLSETS>",
        "GITLAB_TOOLS": "<YOUR_GITLAB_TOOLS>",
        "GITLAB_DENIED_TOOLS_REGEX": "<YOUR_GITLAB_DENIED_TOOLS_REGEX>",
        "GITLAB_TOOL_POLICY_APPROVE": "<YOUR_GITLAB_TOOL_POLICY_APPROVE>",
        "GITLAB_TOOL_POLICY_HIDDEN": "<YOUR_GITLAB_TOOL_POLICY_HIDDEN>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
        "GITLAB_CA_CERT_PATH": "<YOUR_GITLAB_CA_CERT_PATH>",
        "GITLAB_MASKING_ENABLED": "<YOUR_GITLAB_MASKING_ENABLED>",
        "GITLAB_MASKING_CONFIG": "<YOUR_GITLAB_MASKING_CONFIG>",
        "GITLAB_MASKING_POLICY_FILE": "<YOUR_GITLAB_MASKING_POLICY_FILE>",
        "GITLAB_MASKING_WORKSPACE_DIR": "<YOUR_GITLAB_MASKING_WORKSPACE_DIR>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "gitlab-mcp-server-zereight-mcp-gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab@2.3.19"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN>",
        "GITLAB_PERSONAL_ACCESS_TOKEN_FILE": "<YOUR_GITLAB_PERSONAL_ACCESS_TOKEN_FILE>",
        "GITLAB_JOB_TOKEN": "<YOUR_GITLAB_JOB_TOKEN>",
        "GITLAB_AUTH_COOKIE_PATH": "<YOUR_GITLAB_AUTH_COOKIE_PATH>",
        "GITLAB_USE_OAUTH": "<YOUR_GITLAB_USE_OAUTH>",
        "GITLAB_OAUTH_CLIENT_ID": "<YOUR_GITLAB_OAUTH_CLIENT_ID>",
        "GITLAB_OAUTH_TOKEN_SCRIPT": "<YOUR_GITLAB_OAUTH_TOKEN_SCRIPT>",
        "GITLAB_API_URL": "<YOUR_GITLAB_API_URL>",
        "GITLAB_ALLOWED_PROJECT_IDS": "<YOUR_GITLAB_ALLOWED_PROJECT_IDS>",
        "GITLAB_PERMISSION_MODE": "<YOUR_GITLAB_PERMISSION_MODE>",
        "GITLAB_TOOLSETS": "<YOUR_GITLAB_TOOLSETS>",
        "GITLAB_TOOLS": "<YOUR_GITLAB_TOOLS>",
        "GITLAB_DENIED_TOOLS_REGEX": "<YOUR_GITLAB_DENIED_TOOLS_REGEX>",
        "GITLAB_TOOL_POLICY_APPROVE": "<YOUR_GITLAB_TOOL_POLICY_APPROVE>",
        "GITLAB_TOOL_POLICY_HIDDEN": "<YOUR_GITLAB_TOOL_POLICY_HIDDEN>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "<YOUR_NODE_TLS_REJECT_UNAUTHORIZED>",
        "GITLAB_CA_CERT_PATH": "<YOUR_GITLAB_CA_CERT_PATH>",
        "GITLAB_MASKING_ENABLED": "<YOUR_GITLAB_MASKING_ENABLED>",
        "GITLAB_MASKING_CONFIG": "<YOUR_GITLAB_MASKING_CONFIG>",
        "GITLAB_MASKING_POLICY_FILE": "<YOUR_GITLAB_MASKING_POLICY_FILE>",
        "GITLAB_MASKING_WORKSPACE_DIR": "<YOUR_GITLAB_MASKING_WORKSPACE_DIR>"
      }
    }
  }
}

Let your agent find its tools

Find servers like GitLab MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.