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.
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
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js
GITLAB_PERSONAL_ACCESS_TOKEN
GitLab personal access token, created in GitLab; required in PAT mode.
GITLAB_API_URL
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
Set to true to hide all write tools.
AUTH_MODE
Authentication mode: pat or oauth; network-exposed deployments require oauth.
HOST
Bind address for HTTP transports; defaults to 127.0.0.1.
USE_SSE
Set to true to enable the legacy SSE transport.
USE_STREAMABLE_HTTP
Set to true to enable the Streamable HTTP transport.
PORT
Listen port for SSE and Streamable HTTP; defaults to 3000.
CORS_ALLOW_ORIGINS
Comma-separated allowlist of origins.
HEALTHZ_MAX_SESSIONS
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.
{"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.
{
"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).
[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).
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.
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.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
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.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 177adc871ef9 Data synced 2026-12-05 Read the FMRS scoring method Markdown