mcp-gitlab MCP Server
GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only
mcp-gitlab scores 68 (Good), licensed MIT and written in Python. It installs as a local process. It declares 40 tools. Filed under Version control. GitHub shows 7 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade D
54/100 for listing completeness. Lost points: no README, 33 of 40 tools barely described, short summary.
How quality is graded
Where the 68 comes from
22 + 20 + 3 + 10 + 10 + 3 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "vish288-mcp-gitlab": { "command": "uvx", "args": [ "mcp-gitlab" ], "env": { "GITLAB_TOKEN": "YOUR_GITLAB_TOKEN", "GITLAB_URL": "", "GITLAB_READ_ONLY": "", "MCP_READ_ONLY": "", "MCP_TOOLSETS": "", "MCP_TOOLS": "", "MCP_EXCLUDE_TOOLS": "", "GITLAB_AUTH": "", "GITLAB_OAUTH_CLIENT_ID": "", "GITLAB_OAUTH_CLIENT_SECRET": "YOUR_GITLAB_OAUTH_CLIENT_SECRET", "GITLAB_OAUTH_BASE_URL": "", "GITLAB_OAUTH_SCOPES": "", "GITLAB_OAUTH_JWT_KEY": "YOUR_GITLAB_OAUTH_JWT_KEY", "GITLAB_HTTP_BEARER_TOKEN": "YOUR_GITLAB_HTTP_BEARER_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GITLAB_TOKENSecret | Optional | 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 | Required | GitLab instance URL (e.g. https://gitlab.com) |
GITLAB_READ_ONLY | Optional | Alias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lock |
MCP_READ_ONLY | Optional | Locks 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; set it in the deployer's env |
MCP_TOOLSETS | Optional | Comma 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 budget; MCP_READ_ONLY still applies after the selection |
MCP_TOOLS | Optional | Comma list of tool names to expose, exactly as in tools/list (e.g. gitlab_get_mr,gitlab_list_mrs); unset lists every tool the toolsets allow. Applied after MCP_TOOLSETS; unknown names exit 2 |
MCP_EXCLUDE_TOOLS | Optional | Comma list of tool names to hide, exactly as in tools/list; applied after MCP_TOOLSETS and MCP_TOOLS. Unknown names, or a selection that leaves no tools, exit 2 |
GITLAB_AUTH | Optional | Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only) |
GITLAB_OAUTH_CLIENT_ID | Optional | Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance) |
GITLAB_OAUTH_CLIENT_SECRETSecret | Optional | Secret of the GitLab OAuth app (oauth mode) |
GITLAB_OAUTH_BASE_URL | Optional | Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback |
GITLAB_OAUTH_SCOPES | Optional | Space-separated GitLab scopes required on every request (oauth mode; default api) |
GITLAB_OAUTH_JWT_KEYSecret | Optional | FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret) |
GITLAB_HTTP_BEARER_TOKENSecret | Optional | Bearer token (min 16 chars) required to bind an HTTP transport to a non-loopback host; clients send it as 'Authorization: Bearer <token>' (token mode; --auth oauth has its own sign-in) |
GITLAB_TOKENSecret | Optional | 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 | Required | GitLab instance URL (e.g. https://gitlab.com) |
GITLAB_READ_ONLY | Optional | Alias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lock |
MCP_READ_ONLY | Optional | Locks 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; set it in the deployer's env |
MCP_TOOLSETS | Optional | Comma 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 budget; MCP_READ_ONLY still applies after the selection |
MCP_TOOLS | Optional | Comma list of tool names to expose, exactly as in tools/list (e.g. gitlab_get_mr,gitlab_list_mrs); unset lists every tool the toolsets allow. Applied after MCP_TOOLSETS; unknown names exit 2 |
MCP_EXCLUDE_TOOLS | Optional | Comma list of tool names to hide, exactly as in tools/list; applied after MCP_TOOLSETS and MCP_TOOLS. Unknown names, or a selection that leaves no tools, exit 2 |
GITLAB_AUTH | Optional | Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only) |
GITLAB_OAUTH_CLIENT_ID | Optional | Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance) |
GITLAB_OAUTH_CLIENT_SECRETSecret | Optional | Secret of the GitLab OAuth app (oauth mode) |
GITLAB_OAUTH_BASE_URL | Optional | Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback |
GITLAB_OAUTH_SCOPES | Optional | Space-separated GitLab scopes required on every request (oauth mode; default api) |
GITLAB_OAUTH_JWT_KEYSecret | Optional | FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret) |
GITLAB_HTTP_BEARER_TOKENSecret | Optional | Bearer token (min 16 chars) required to bind an HTTP transport to a non-loopback host; clients send it as 'Authorization: Bearer <token>' (token mode; --auth oauth has its own sign-in) |
Tools40Tool docs quality grade D
All capabilitiesApprove a merge request
gitlab_comparetoolCompare branches/tags/commits
Create a branch
Create commit with file actions
gitlab_create_mrtoolCreate merge request
Create MR approval rule
Create a new project
Create approval rule
Delete a branch
Delete MR approval rule
Delete a project
Delete approval rule
About
GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only
Frequently asked questions
What is mcp-gitlab MCP Server?
GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only
How do I install mcp-gitlab MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-gitlab MCP Server runs locally from the PyPI package mcp-gitlab with the command uvx mcp-gitlab.
Is mcp-gitlab MCP Server free and open source?
Yes. mcp-gitlab MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcp-gitlab MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-gitlab MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-gitlab MCP Server provide?
mcp-gitlab MCP Server provides 40 tools, including gitlab_approve_mr, gitlab_compare, gitlab_create_branch, and gitlab_create_commit. See the full tool list for descriptions and parameters.
How is mcp-gitlab MCP Server's trust score calculated?
mcp-gitlab MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.