GitLab MCP Server
by vish288io.github.vish288/mcp-gitlabv0.15.0
GitLab MCP server for MCP 2026-07-28: projects, MRs, files, reviews, pipelines, CI/CD, issues
context tax
queued
security
queued
cold start
queued
freshness
Active1d ago
Install GitLab MCP server
Install in Claude Code
claude mcp add gitlab-vish288 -e GITLAB_TOKEN='<gitlab-token>' -e GITLAB_URL='<gitlab-url>' -e GITLAB_OAUTH_CLIENT_SECRET='<gitlab-oauth-client-secret>' -e GITLAB_OAUTH_JWT_KEY='<gitlab-oauth-jwt-key>' -- uvx mcp-gitlabInstall in Cursor
{
"mcpServers": {
"gitlab-vish288": {
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "<gitlab-token>",
"GITLAB_URL": "<gitlab-url>",
"GITLAB_OAUTH_CLIENT_SECRET": "<gitlab-oauth-client-secret>",
"GITLAB_OAUTH_JWT_KEY": "<gitlab-oauth-jwt-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"gitlab-vish288": {
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "<gitlab-token>",
"GITLAB_URL": "<gitlab-url>",
"GITLAB_OAUTH_CLIENT_SECRET": "<gitlab-oauth-client-secret>",
"GITLAB_OAUTH_JWT_KEY": "<gitlab-oauth-jwt-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"gitlab-vish288": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "<gitlab-token>",
"GITLAB_URL": "<gitlab-url>",
"GITLAB_OAUTH_CLIENT_SECRET": "<gitlab-oauth-client-secret>",
"GITLAB_OAUTH_JWT_KEY": "<gitlab-oauth-jwt-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"gitlab-vish288": {
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "<gitlab-token>",
"GITLAB_URL": "<gitlab-url>",
"GITLAB_OAUTH_CLIENT_SECRET": "<gitlab-oauth-client-secret>",
"GITLAB_OAUTH_JWT_KEY": "<gitlab-oauth-jwt-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GITLAB_TOKEN | — | yes | GitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN |
| GITLAB_URL | yes | — | GitLab instance URL (e.g. https://gitlab.com) |
| GITLAB_READ_ONLY | — | — | Restrict to read-only operations (true/false) |
| GITLAB_AUTH | — | — | Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only) |
| GITLAB_OAUTH_CLIENT_ID | — | — | Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance) |
| GITLAB_OAUTH_CLIENT_SECRET | — | yes | Secret of the GitLab OAuth app (oauth mode) |
| GITLAB_OAUTH_BASE_URL | — | — | Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback |
| GITLAB_OAUTH_SCOPES | — | — | Space-separated GitLab scopes required on every request (oauth mode; default api) |
| GITLAB_OAUTH_JWT_KEY | — | yes | FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret) |
Freshness
Active — last maintenance signal 1d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 1d ago · GitHub
Latest release
2026-10-06 · 3d ago · GitHub · v0.15.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-06 · 3d ago · official registry · v0.15.0
FAQ
›How do I install the GitLab MCP server in Claude Code?
Run: claude mcp add gitlab-vish288 -e GITLAB_TOKEN='<gitlab-token>' -e GITLAB_URL='<gitlab-url>' -e GITLAB_OAUTH_CLIENT_SECRET='<gitlab-oauth-client-secret>' -e GITLAB_OAUTH_JWT_KEY='<gitlab-oauth-jwt-key>' -- uvx mcp-gitlab. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does GitLab require an API key?
Yes. It expects GITLAB_URL, GITLAB_TOKEN, GITLAB_OAUTH_CLIENT_SECRET, GITLAB_OAUTH_JWT_KEY, of which 3 are secrets.
›Can I use GitLab as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is GitLab in the official MCP registry?
Yes, as io.github.vish288/mcp-gitlab.
Alternatives to GitLab
Other version control MCP servers.