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)
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-gitlabExport 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_TOKENRegister 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.