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

stdiocommunityservice

Package Details

Transportstdio

Environment Variables

GITLAB_PERSONAL_ACCESS_TOKEN(str)
RequiredSecret

GitLab personal access token for local stdio use. Create a token with the GitLab scopes needed by the tools you plan to use, such as api or read_api.

GITLAB_JOB_TOKEN(str)
Secret

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

GITLAB_AUTH_COOKIE_PATH(file)

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

GITLAB_API_URL(str)
Default:https://gitlab.com/api/v4

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

GITLAB_ALLOWED_PROJECT_IDS(str)

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

GITLAB_READ_ONLY_MODE(str)
Default:false

Set to true to expose only read-only tools and block write operations.

USE_GITLAB_WIKI(str)
Default:false

Set to true to enable GitLab wiki tools.

GITLAB_TOOLSETS(str)

Optional comma-separated list of toolsets to enable, such as projects, issues, merge_requests, pipelines, releases, users, groups, wiki, or search.

GITLAB_TOOLS(str)

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

GITLAB_DENIED_TOOLS_REGEX(str)

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

GITLAB_TOOL_POLICY_APPROVE(str)

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

GITLAB_TOOL_POLICY_HIDDEN(str)

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

NODE_TLS_REJECT_UNAUTHORIZED(str)

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

GITLAB_CA_CERT_PATH(file)

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