thezakuloGet the newsletter
← All setup guides

Setup guide · 3 steps · about 10 minutes

How to start using zereight/gitlab-mcp

zereight/gitlab-mcp is an MCP server for GitLab that exposes 278 tools over the GitLab REST/GraphQL API, letting an AI client manage projects, merge requests, issues, pipelines, wikis, and more.

Built from the official docs: GitHub - zereight/gitlab-mcp: MCP server for GitLab: 277 tools for projects, MRs, issues, pipelines, wikis and more via the GitLab REST/GraphQL API · raw.githubusercontent.com · checked 18 November 2026

Local with a Personal Access Token (Claude Code)

  1. Install the binary

    Install the zereight-mcp-gitlab binary globally with npm, as the README recommends for the local personal-access-token setup.

    npm install -g @zereight/mcp-gitlab
  2. Export your GitLab token

    Read your GitLab Personal Access Token without echoing it, then export it so the next command can read it from the environment.

    read -rs GITLAB_PERSONAL_ACCESS_TOKEN && export GITLAB_PERSONAL_ACCESS_TOKEN
  3. Register the server with your client

    Add the server to Claude Code over stdio, passing the exported token and the GitLab API URL.

    claude mcp add gitlab --transport stdio --scope local --env GITLAB_PERSONAL_ACCESS_TOKEN="$GITLAB_PERSONAL_ACCESS_TOKEN" --env GITLAB_API_URL=https://gitlab.com/api/v4 -- zereight-mcp-gitlab

Check it worked

Call the health_check tool, which verifies server status and authentication; when authenticated it also reports the GitLab instance version. You can also run `zereight-mcp-gitlab user whoami` in a terminal to confirm your token works.

Try these first

Get every issue by email

One email a week with the written issue. Free, one-click unsubscribe

Subscribe