GitLab MCP Server

io.github.zereight/gitlab-mcp

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@zereight/mcp-gitlab@2.3.22"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<your GITLAB_PERSONAL_ACCESS_TOKEN>",
        "GITLAB_JOB_TOKEN": "<your GITLAB_JOB_TOKEN>",
        "GITLAB_API_URL": "https://gitlab.com/api/v4",
        "GITLAB_MASKING_ENABLED": "false"
      }
    }
  }
}
Environment variables
  • GITLAB_PERSONAL_ACCESS_TOKENsecretGitLab 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.
  • GITLAB_JOB_TOKENsecretOptional GitLab CI job token to use instead of a personal access token when running inside GitLab CI.
  • GITLAB_API_URLGitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL.
  • GITLAB_MASKING_ENABLEDSet to true to mask text tool results and returned errors using built-in or configured rules.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
2.3.22
Registry
active
Published
11/5/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that GitLab MCP Server is listed here — it’s also the link we check for a free listing.

GitLab MCP Server — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-zereight-gitlab-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="GitLab MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![GitLab MCP Server — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-zereight-gitlab-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.