Back to MCP Servers
🧩

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

To add mcp-gitlab to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It needs 11 environment variables, listed below.

DevTools

Install

uvx mcp-gitlab@0.21.2

Environment variables

GITLAB_TOKENSet in your MCP config
GITLAB_URLSet in your MCP config
GITLAB_READ_ONLYSet in your MCP config
MCP_READ_ONLYSet in your MCP config
GITLAB_AUTHSet in your MCP config
GITLAB_OAUTH_CLIENT_IDSet in your MCP config
GITLAB_OAUTH_CLIENT_SECRETSet in your MCP config
GITLAB_OAUTH_BASE_URLSet in your MCP config
GITLAB_OAUTH_SCOPESSet in your MCP config
GITLAB_OAUTH_JWT_KEYSet in your MCP config
GITLAB_HTTP_BEARER_TOKENSet in your MCP config

Install with your client

Terminal
claude mcp add mcp-gitlab --env GITLAB_TOKEN=<YOUR_GITLAB_TOKEN> --env GITLAB_URL=<YOUR_GITLAB_URL> --env GITLAB_READ_ONLY=<YOUR_GITLAB_READ_ONLY> --env MCP_READ_ONLY=<YOUR_MCP_READ_ONLY> --env GITLAB_AUTH=<YOUR_GITLAB_AUTH> --env GITLAB_OAUTH_CLIENT_ID=<YOUR_GITLAB_OAUTH_CLIENT_ID> --env GITLAB_OAUTH_CLIENT_SECRET=<YOUR_GITLAB_OAUTH_CLIENT_SECRET> --env GITLAB_OAUTH_BASE_URL=<YOUR_GITLAB_OAUTH_BASE_URL> --env GITLAB_OAUTH_SCOPES=<YOUR_GITLAB_OAUTH_SCOPES> --env GITLAB_OAUTH_JWT_KEY=<YOUR_GITLAB_OAUTH_JWT_KEY> --env GITLAB_HTTP_BEARER_TOKEN=<YOUR_GITLAB_HTTP_BEARER_TOKEN> -- uvx mcp-gitlab@0.21.2

Run this in a terminal to add the server to Claude Code.

What this does

mcp-gitlab exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.

Requirements

This server needs the following environment variables to be set before it can run:

GITLAB_TOKEN
GITLAB_URL
GITLAB_READ_ONLY
MCP_READ_ONLY
GITLAB_AUTH
GITLAB_OAUTH_CLIENT_ID
GITLAB_OAUTH_CLIENT_SECRET
GITLAB_OAUTH_BASE_URL
GITLAB_OAUTH_SCOPES
GITLAB_OAUTH_JWT_KEY
GITLAB_HTTP_BEARER_TOKEN

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Frequently asked questions

How do I install mcp-gitlab?

Run the Claude Code command in the install section to add mcp-gitlab to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.

Which clients work with mcp-gitlab?

This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to mcp-gitlab as well.

Does mcp-gitlab need an API key?

Yes. Before it can run, set these environment variables: GITLAB_TOKEN, GITLAB_URL, GITLAB_READ_ONLY, MCP_READ_ONLY, GITLAB_AUTH, GITLAB_OAUTH_CLIENT_ID, GITLAB_OAUTH_CLIENT_SECRET, GITLAB_OAUTH_BASE_URL, GITLAB_OAUTH_SCOPES, GITLAB_OAUTH_JWT_KEY, GITLAB_HTTP_BEARER_TOKEN. They go in the env block of your MCP config.

Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.

Is this your MCP server?

Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.

Listed on clauderules.net

Add this badge to your README

Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.

Markdown
[![Listed on clauderules.net](https://clauderules.net/api/badge/io-github-vish288-mcp-gitlab)](https://clauderules.net/mcp/io-github-vish288-mcp-gitlab)
HTML
<a href="https://clauderules.net/mcp/io-github-vish288-mcp-gitlab" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-vish288-mcp-gitlab" alt="Listed on clauderules.net" /></a>