Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

GitLab MCP Server

MCP server by jmrplens Community

GitLab MCP Server lets an AI assistant work with GitLab through up to 1,103 actions over its REST and GraphQL APIs. It is for developers and teams who want to review merge requests, check pipelines and manage issues in plain language.

  • Score 79
  • 57 stars
  • 521 a week
  • MIT
  • Updated

Install GitLab MCP Server

Built from the published package, never by AI.

claude mcp add --transport http gitlab-mcp-server https://mcp.jmrp.io/gitlab

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install GitLab MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gitlab-mcp-server block.

About

GitLab MCP Server is a Go server that gives an AI assistant access to GitLab. It exposes up to 1,103 actions over GitLab's REST and GraphQL APIs, depending on the GitLab tier, and ships as a single self-contained binary. It works with Claude, Cursor, VS Code, Codex and other MCP clients.

Two discovery tools reach the whole catalog by default, which the source says keeps startup context at 11,396 tokens. The server supports read-only and safe modes, stdio and HTTP transports, and uses a GitLab personal, project or group access token. It is aimed at developers who want to review merge requests, check pipelines or manage issues from their assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Merge request reviewReviews a merge request and says whether it is safe to merge.
  • Pipeline diagnosisExplains why the most recent pipeline failed.
  • Issue listsLists open issues assigned to the user.
  • Release notesGenerates release notes between two versions.
  • Discovery toolsTwo tools by default reach the full catalog of actions.
  • Read-only modeBlocks all writes when the GITLAB_MCP_READ_ONLY setting is true.
  • Safe modeShows a preview of each write instead of applying it.
  • Resources and promptsAdds 45 resources and 37 prompts besides the tools.

What you need

  • A GitLab personal, project or group access token with the api scope or read_api
  • A GitLab.com account or a self-managed GitLab instance
  • Docker, for the Docker image and one-click install buttons
  • The .NET 10 SDK, for the dnx install route
SettingNeededWhat it is
GITLAB_TOKENEnvironment variable, secretRequiredGitLab Personal Access Token (glpat-...)
GITLAB_URLEnvironment variableOptionalGitLab instance URL (default: https://gitlab.com; set for self-managed instances) Default: https://gitlab.com
GITLAB_MCP_SKIP_TLS_VERIFYEnvironment variableOptionalSkip TLS certificate verification for self-signed certs (default: false) Default: false
GITLAB_MCP_TOOL_SURFACEEnvironment variableOptionalTool catalog selector: dynamic, meta, or individual (default: dynamic) Default: dynamic
GITLAB_MCP_TIEREnvironment variableOptionalGitLab tier: free/ce, premium or ultimate, used as given. When unset, detected from the instance license, then from the plans of the namespaces the token administers, then, on GitLab.com, from the top-level groups the token is a member of,
GITLAB_MCP_READ_ONLYEnvironment variableOptionalRead-only mode: removes every mutating action from the served surface; reads keep working (default: false) Default: false
GITLAB_MCP_SAFE_MODEEnvironment variableOptionalSafe mode: a mutating action returns a preview card naming the action and echoing its arguments instead of running; reads keep working (default: false) Default: false
GITLAB_MCP_LOG_LEVELEnvironment variableOptionalLogging verbosity (default: info) Default: info
AuthorizationHeader, secretOptionalBearer <token>. The endpoint runs in OAuth mode: a client that speaks the OAuth flow needs no header at all and discovers the authorization server from the 401 challenge. A GitLab personal access token also works here, sent as 'Bearer glpat

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Review merge request !15: is it safe to merge?
  • Why did the last pipeline fail?
  • List open issues assigned to me

Good to know

  • Some actions need the api scope; read_api covers only the actions GitLab accepts from it.
  • The catalog depends on the GitLab tier, from about 876 actions on Free/CE to 1,103 on Ultimate.
  • The public hosted instance passes tokens and requests through the publisher's machine.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to GitLab MCP Server

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

GitLab MCP Server: common questions

Which GitLab tiers are supported?

The source says Free/CE, Premium and Ultimate are supported, on self-managed instances or GitLab.com. The server detects the tier and the available catalog follows it.

Can it work with a self-managed GitLab instance?

Yes. The source says to set GITLAB_URL to the instance address beside the token.

Can the server be limited to read-only use?

Yes. Setting GITLAB_MCP_READ_ONLY to true blocks writes, and safe mode previews each write instead of applying it.

How do I install GitLab MCP Server?

In Claude Code run claude mcp add --transport http gitlab-mcp-server https://mcp.jmrp.io/gitlab. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is GitLab MCP Server the official server?

GitLab MCP Server is a community project by jmrplens, not verified by a company domain.

Is GitLab MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is GitLab MCP Server safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to GitLab MCP Server?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does GitLab MCP Server work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

GitLab MCP Server Install

Add to stack

Loading.