Skip to main content

GitLab

io.github.vish288/mcp-gitlab

v0.25.1Updated Nov 23, 2026stdio · Dockerstdio · PyPI

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

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add mcp-gitlab -e 'GITLAB_URL=<your-gitlab-url>' -- uvx mcp-gitlab==0.25.1

Configuration

12 settings.

  • GITLAB_URL
    Env var· required
    GitLab instance URL (e.g. https://gitlab.com)
  • GITLAB_TOKEN
    Env var· optional· secret
    GitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN
  • GITLAB_OAUTH_CLIENT_SECRET
    Env var· optional· secret
    Secret of the GitLab OAuth app (oauth mode)
  • GITLAB_OAUTH_JWT_KEY
    Env var· optional· secret
    FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret)
  • GITLAB_HTTP_BEARER_TOKEN
    Env var· optional· secret
    Bearer token (min 16 chars) required to bind an HTTP transport to a non-loopback host; clients send it as 'Authorization: Bearer <token>' (token mode; --auth oauth has its own sign-in)
  • GITLAB_READ_ONLY
    Env var· optional
    Alias 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
Show 6 more
  • MCP_READ_ONLY
    Env var· optional
    Locks 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; set it in the deployer's env
  • MCP_TOOLSETS
    Env var· optional
    Comma 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 budget; MCP_READ_ONLY still applies after the selection
  • GITLAB_AUTH
    Env var· optional
    Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)
  • GITLAB_OAUTH_CLIENT_ID
    Env var· optional
    Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)
  • GITLAB_OAUTH_BASE_URL
    Env var· optional
    Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback
  • GITLAB_OAUTH_SCOPES
    Env var· optional
    Space-separated GitLab scopes required on every request (oauth mode; default api)

Listed in the official MCP Registry since Nov 23, 2026. Mirrored daily; last checked Nov 26, 2026.