MCP directory

GitLab

by github.com/vish288 · v0.25.1 · updated Nov 23, 2026

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

PyPIDocker

Run it locally

Install the package and point your AI client at it.

PyPI

uvx mcp-gitlab==0.25.1

Environment variables

  • GITLAB_TOKENsecret

    GitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN

  • GITLAB_URLrequired

    GitLab instance URL (e.g. https://gitlab.com)

  • GITLAB_READ_ONLY

    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

  • MCP_READ_ONLY

    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

    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

    Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)

  • GITLAB_OAUTH_CLIENT_ID

    Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)

  • GITLAB_OAUTH_CLIENT_SECRETsecret

    Secret of the GitLab OAuth app (oauth mode)

  • GITLAB_OAUTH_BASE_URL

    Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback

  • GITLAB_OAUTH_SCOPES

    Space-separated GitLab scopes required on every request (oauth mode; default api)

  • GITLAB_OAUTH_JWT_KEYsecret

    FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret)

  • GITLAB_HTTP_BEARER_TOKENsecret

    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)

Docker

docker run -i --rm ghcr.io/vish288/mcp-gitlab:0.25.1

Environment variables

  • GITLAB_TOKENsecret

    GitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN

  • GITLAB_URLrequired

    GitLab instance URL (e.g. https://gitlab.com)

  • GITLAB_READ_ONLY

    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

  • MCP_READ_ONLY

    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

    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

    Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)

  • GITLAB_OAUTH_CLIENT_ID

    Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)

  • GITLAB_OAUTH_CLIENT_SECRETsecret

    Secret of the GitLab OAuth app (oauth mode)

  • GITLAB_OAUTH_BASE_URL

    Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback

  • GITLAB_OAUTH_SCOPES

    Space-separated GitLab scopes required on every request (oauth mode; default api)

  • GITLAB_OAUTH_JWT_KEYsecret

    FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret)

  • GITLAB_HTTP_BEARER_TOKENsecret

    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)

More from github.com/vish288

More MCP servers