Official MCP Registry · published 33m ago

GitLab

io.github.vish288/mcp-gitlab

GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only

Version
0.25.2
Runs
Locally
Packages
pypi, oci
Published
Nov 30, 2026

Get started

Add it to your agent

claude mcp add gitlab -e GITLAB_URL=… -e GITLAB_URL=… -- uvx mcp-gitlab==0.25.2

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Before you start

Environment variables

  • GITLAB_TOKENsecretGitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN
  • GITLAB_URLrequiredGitLab instance URL (e.g. https://gitlab.com)
  • GITLAB_READ_ONLYAlias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lock
  • MCP_READ_ONLYLocks the server read-only: write tools and write-workflow prompts are not listed and nothing lifts the lock at runtime. Shared name across the mcp-* servers; s
  • MCP_TOOLSETSComma list of tool groups to expose (code, review, ci, issues, release, admin); unset or 'all' lists every tool. Shrinks tools/list for clients with a tool budg
  • GITLAB_AUTHAuthentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)
  • GITLAB_OAUTH_CLIENT_IDApplication ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)
  • GITLAB_OAUTH_CLIENT_SECRETsecretSecret of the GitLab OAuth app (oauth mode)
  • GITLAB_OAUTH_BASE_URLPublic URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback
  • GITLAB_OAUTH_SCOPESSpace-separated GitLab scopes required on every request (oauth mode; default api)
  • GITLAB_TOKENsecretGitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN
  • GITLAB_URLrequiredGitLab instance URL (e.g. https://gitlab.com)
  • GITLAB_READ_ONLYAlias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lock
  • MCP_READ_ONLYLocks the server read-only: write tools and write-workflow prompts are not listed and nothing lifts the lock at runtime. Shared name across the mcp-* servers; s
  • MCP_TOOLSETSComma list of tool groups to expose (code, review, ci, issues, release, admin); unset or 'all' lists every tool. Shrinks tools/list for clients with a tool budg
  • GITLAB_AUTHAuthentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)
  • GITLAB_OAUTH_CLIENT_IDApplication ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)
  • GITLAB_OAUTH_CLIENT_SECRETsecretSecret of the GitLab OAuth app (oauth mode)
  • GITLAB_OAUTH_BASE_URLPublic URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback
  • GITLAB_OAUTH_SCOPESSpace-separated GitLab scopes required on every request (oauth mode; default api)