- Version
0.25.2- Runs
- Locally
- Packages
- pypi, oci
- Published
- Nov 30, 2026
Get started
Add it to your agent
claude mcp add gitlab -e GITLAB_URL=… -e GITLAB_URL=… -- uvx mcp-gitlab==0.25.2Run in your terminal. Add --scope project to share it with your team through .mcp.json.
codex mcp add gitlab --env GITLAB_URL=… --env GITLAB_URL=… -- uvx mcp-gitlab==0.25.2Saved to ~/.codex/config.toml.
{
"mcpServers": {
"gitlab": {
"command": "uvx",
"args": [
"mcp-gitlab==0.25.2"
],
"env": {
"GITLAB_URL": "…"
}
}
}
}Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
{
"servers": {
"gitlab": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-gitlab==0.25.2"
],
"env": {
"GITLAB_URL": "…"
}
}
}
}Add to .vscode/mcp.json, then start it from the MCP view in Copilot Chat.
gemini mcp add gitlab uvx mcp-gitlab==0.25.2Saved to .gemini/settings.json.
Before you start
Environment variables
GITLAB_TOKENsecretGitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKENGITLAB_URLrequiredGitLab instance URL (e.g. https://gitlab.com)GITLAB_READ_ONLYAlias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lockMCP_READ_ONLYLocks the server read-only: write tools and write-workflow prompts are not listed and nothing lifts the lock at runtime. Shared name across the mcp-* servers; sMCP_TOOLSETSComma list of tool groups to expose (code, review, ci, issues, release, admin); unset or 'all' lists every tool. Shrinks tools/list for clients with a tool budgGITLAB_AUTHAuthentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)GITLAB_OAUTH_CLIENT_IDApplication ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)GITLAB_OAUTH_CLIENT_SECRETsecretSecret of the GitLab OAuth app (oauth mode)GITLAB_OAUTH_BASE_URLPublic URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callbackGITLAB_OAUTH_SCOPESSpace-separated GitLab scopes required on every request (oauth mode; default api)GITLAB_TOKENsecretGitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKENGITLAB_URLrequiredGitLab instance URL (e.g. https://gitlab.com)GITLAB_READ_ONLYAlias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lockMCP_READ_ONLYLocks the server read-only: write tools and write-workflow prompts are not listed and nothing lifts the lock at runtime. Shared name across the mcp-* servers; sMCP_TOOLSETSComma list of tool groups to expose (code, review, ci, issues, release, admin); unset or 'all' lists every tool. Shrinks tools/list for clients with a tool budgGITLAB_AUTHAuthentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)GITLAB_OAUTH_CLIENT_IDApplication ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)GITLAB_OAUTH_CLIENT_SECRETsecretSecret of the GitLab OAuth app (oauth mode)GITLAB_OAUTH_BASE_URLPublic URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callbackGITLAB_OAUTH_SCOPESSpace-separated GitLab scopes required on every request (oauth mode; default api)