← Back to directory
G

GitLab MCP Server

Community
Access GitLab from AI clients through MCP.
Category
Dev Tools #178 of 751
Stars
★ 66 Popular
Transport
stdio (local process) · SSE · Streamable HTTP
Runtime
Node.js
Credentials
API key / credential required
License
MIT
Last commit
⚠
56FMRS · C

The README describes 86 GitLab MCP tools, three transports, PAT and OAuth authentication modes, and read-only tool filtering. The server is maintained by the Yoda Digital team and is not an official GitLab server. Suitability depends on client configuration, GitLab token permissions, and deployment mode.

Strongest · Setup experience 14/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
11/20
Maintenance
10/20
Documentation
13/20
Setup experience
14/20
Why each score
Reliability 8/20
The README claims 86 tools, schema validation, pagination, three transports, read-only mode, and CI tests, but no manifest or source is available to verify that the tools match actual behavior, and the tests and workflows cannot be reviewed. Startup and initialization appear plausible; lack of static evidence leaves error handling, edge cases, and handshake reliability unverified, so the score is conservative.
Security and permissions 11/20
The README describes PAT and OAuth modes, a loopback restriction for non-OAuth binds, read-only mode, a non-root container, and a vulnerability reporting channel, indicating attention to permission boundaries. However, HTTP in PAT mode is unauthenticated, read-only enforcement relies on registration filtering, and neither source nor the threat model is available for verification; users must also supply their own potentially privileged token. No red-line evidence is present, but unverified permission and data-flow controls warrant deductions.
Maintenance 10/20
The supplied material states an MIT license, non-archived status, a private vulnerability reporting channel, Dependabot, and a release process; it also names maintainers and external contributors. Commit history, release dates, issue responses, and update status are not provided, so sustained maintenance cannot be confirmed and the score stays moderate.
Documentation 13/20
The README covers scope, transports, authentication, environment variables, Docker and Helm deployment, security notes, and a client configuration example. Tool parameters are deferred to files not supplied, and evidence on costs, limitations, and troubleshooting is limited; key security claims also cannot be checked against source.
Setup experience 14/20
The README gives an npx configuration for local clients, plus Docker and Helm deployment paths, and explains self-hosted URLs and read-only demos. The steps are clear and relatively short, but no execution or handshake evidence is available; npm dependencies are mutable, and users must configure a GitLab token or OAuth gateway themselves, so full marks are not justified.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Teams connecting AI clients to GitLab through MCP.
  • Users of self-hosted GitLab or deployments that need multiple MCP transports.
  • Teams that want local read-only tools or a shared remote service behind an OAuth gateway.

Not for

  • Users who need only GitLab's built-in 15-tool MCP server and have the required subscription.
  • Users needing GitLab REST API operations beyond those described in the README.
  • Deployments that need to bind a PAT-mode HTTP service to a non-loopback network address.

Required permissions

  • PAT mode requires a GitLab Personal Access Token; its effective permissions depend on the token's granted scopes.
  • OAuth mode requires an upstream gateway to provide an Authorization Bearer token per connection; the server forwards it to GitLab.
  • Read-only mode removes mutating tools at registration time.

Risks and side effects

  • HTTP transport in PAT mode has no authentication, so the server restricts it to loopback binds.
  • Network-accessible HTTP deployments must use OAuth mode; a gateway should handle the identity provider and inject a per-connection token.
  • When write tools are enabled, an AI client can modify GitLab resources; use read-only mode when appropriate and protect tokens.

Setup

Before you start

Runtime:Node.js

GITLAB_PERSONAL_ACCESS_TOKEN requiredsecret GitLab personal access token, created in GitLab; required in PAT mode.
Other optional settings (9)
GITLAB_API_URL optional GitLab API base URL; defaults to https://gitlab.com/api/v4, or set it to your self-hosted instance's API URL.
GITLAB_READ_ONLY_MODE optional Set to true to hide all write tools.
AUTH_MODE optional Authentication mode: pat or oauth; network-exposed deployments require oauth.
HOST optional Bind address for HTTP transports; defaults to 127.0.0.1.
USE_SSE optional Set to true to enable the legacy SSE transport.
USE_STREAMABLE_HTTP optional Set to true to enable the Streamable HTTP transport.
PORT optional Listen port for SSE and Streamable HTTP; defaults to 3000.
CORS_ALLOW_ORIGINS optional Comma-separated allowlist of origins.
HEALTHZ_MAX_SESSIONS optional Maximum active sessions before the health endpoint returns 503; defaults to 10000.

For a local client, start the server with the npx command in the supplied configuration and set GITLAB_PERSONAL_ACCESS_TOKEN and GITLAB_API_URL. Point the API URL at your self-hosted instance if needed. Set GITLAB_READ_ONLY_MODE=true to hide write tools. Remote HTTP deployments require OAuth mode and a gateway that forwards a Bearer token for each connection.

claude_desktop_config.json
{"mcpServers":{"gitlab":{"command":"npx","args":["-y","@yoda.digital/gitlab-mcp-server"],"env":{"GITLAB_PERSONAL_ACCESS_TOKEN":"glpat-…","GITLAB_API_URL":"https://gitlab.com/api/v4"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@yoda.digital/gitlab-mcp-server"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-…",
        "GITLAB_API_URL": "https://gitlab.com/api/v4"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.gitlab]
command = "npx"
args = ["-y", "@yoda.digital/gitlab-mcp-server"]

[mcp_servers.gitlab.env]
GITLAB_PERSONAL_ACCESS_TOKEN = "glpat-…"
GITLAB_API_URL = "https://gitlab.com/api/v4"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add gitlab -e 'GITLAB_PERSONAL_ACCESS_TOKEN=glpat-…' -e GITLAB_API_URL=https://gitlab.com/api/v4 -- npx -y @yoda.digital/gitlab-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm GitLab tools appear in your client's MCP tool list, then ask it to list projects or show the current user to verify the connection.

Troubleshooting

  1. Confirm the PAT is set and GITLAB_API_URL points to the correct GitLab API endpoint.
  2. For remote deployments, check that AUTH_MODE is oauth and the gateway forwards an Authorization Bearer token.
  3. If startup fails on a non-loopback bind, verify the server is not using PAT mode.
  4. Check that USE_SSE or USE_STREAMABLE_HTTP matches the transport expected by the client.
  5. For remote connections, check the gateway address, CORS_ALLOW_ORIGINS, and /healthz status.

Things to try

Once connected, you can ask your AI assistant things like:

  • List my GitLab projects.
  • Show recent project events.
  • Create an issue in a project.

Use cases

Search and manage GitLab projects, files, branches, and releases from an AI client.
Assist with issues, merge requests, approvals, and discussions.
Inspect or trigger CI/CD pipelines and jobs.

Supported clients

Claude Desktop
Claude CodePartial support
Cursor
Zed
VS CodePartial support

Listed from the project's documentation, not tested by this site.

Overview

GitLab MCP Server connects the GitLab REST API to MCP-compatible AI clients through 86 tools covering projects, files, branches, issues, merge requests, CI/CD, wikis, and groups. It supports gitlab.com and self-hosted GitLab, with stdio, SSE, and Streamable HTTP transports.

Similar servers

Source revision 177adc871ef9 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-gitlab-server.svg)](https://followmcp.com/en/servers/mcp-gitlab-server)