
Gitlab Mcp
io.github.mmedumPublished by GitHub account mmedumv4.3.0Updated Nov 4, 2026
GitLab over MCP from your own account: issues, merge requests, reviews, the repository and CI.
The publisher's own server: Gitlab
Overview
Local stdio MCP server that lets an assistant work inside your gitlab.com projects as you: issues, merge requests, reviews, repository and CI.
- What you can do
- Find and read projects, members, users, issues, merge requests, diffs, commits, branches, tags, pipelines, job logs, test reports, wiki pages, snippets, releases, environments and your to-dos
- Create and update issues, comments, discussions, links, merge requests, branches, commits, labels, milestones and snippets, with dry-run and stale-read checks
- Review merge requests with draft comments, inline diff comments, publishing, resolving threads and re-requesting reviews
- Read and lint CI configuration, inspect pipelines and jobs, and read artifacts with secrets masked
- Optionally, when enabled, merge, approve, rebase, apply suggestions, run or retry pipelines, create releases and tags, and…
- When to use it
- Useful when you work in gitlab.com projects and want an assistant to triage issues, review merge requests, follow CI failures or make small repository changes on your behalf, without leaving your client. It is not for self-managed GitLab, instance or group administration, or raw API access.
- Requirements
- Runs as a local binary over stdio (Go install or a release archive, or the .mcpb bundle for Claude Desktop). Needs a gitlab.com account and your own OAuth application with redirect URI confidential unchecked, and scope api or read_api; log in once from a terminal so the token is stored in the OS keyring. Settings use the GITLAB_MCP_ prefix, including GITLAB_MCP_READ_ONLY, GITLAB_MCP_ENABLE_SHIP, GITLAB_MCP_ENABLE_DESTRUCTIVE, GITLAB_MCP_TOOLSETS, GITLAB_MCP_UPLOAD_DIRS and write_namespaces.
Installation
In SourceWeft
- Open Gitlab Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
gitlab-mcp
[CI] [Release] [Go Reference] [License: Apache 2.0]
An MCP server for gitlab.com. One binary over stdio, signed in as you, with your own OAuth application and the token in your OS keyring.
It is for a person with a gitlab.com account who wants an assistant to find and read issues, review merge requests, follow CI and make the changes they ask for, as them. It works inside projects: issues, merge requests, reviews, the repository and CI. It does not administer an instance or a group, and it does not serve self-managed instances.
Unofficial, and not affiliated with GitLab Inc. See NOTICE.
Goals and non-goals
Goals:
- Content never steers the assistant through the server. Issues, reviews, files and job logs come back marked as untrusted data, hidden text is counted, nothing they link to is fetched, and token shapes in CI output are masked.
- Nothing it writes runs a command. A quick action such as
/mergein a comment is refused or escaped, never executed. - Nothing ships, deletes or reaches further unless you turn it on. Merging, approving, running CI and deleting are not registered by default, code reaches a protected branch only through a merge request, and writes can be confined to the groups you name.
- A write changes only what you read and named. Writes carry what
they read and are refused when it moved, a lost create is settled by
reading, and every write takes
dry_run. - Reads are bounded. Every read has a budget and says what it left out and how to continue.
- Act as you, and log nothing about your work. Every call runs as the signed-in account, and the logs never carry paths, titles or bodies.
Non-goals:
- Self-managed instances. It talks to gitlab.com and nothing else.
- Administration. Instance and group settings, users, runners, access tokens, deploy keys, webhooks and integrations are out.
- CI variables and secure files. Reading them would put secrets in a model's context.
- Deleting projects or groups, force pushes and protected-branch settings, not even behind a switch.
- A raw API tool. Every call is a tool with its own guards; nothing sends an arbitrary REST or GraphQL request.
- Events pushed to it. Webhooks need a listener, and a stdio process has none.
- A hosted service. It speaks stdio only, so Claude on the web and on mobile cannot reach it.
- Asking you before a call. Your client approves each call; the server asks nothing.
What makes this one different
- A curated surface, gated by registration. A tool for each thing a person does in a project, rather than an API mirror, and a tool that is switched off is not registered, so it cannot be called at all.
- Nothing it writes runs a quick action. GitLab runs
/mergeand the rest from any comment or description sent through its API. - Content is marked as untrusted. Issues, reviews, files and job logs come back inside boundaries the content cannot close.
- Reviews the way people review. Draft comments, published together, and the server, not the model, computes where an inline comment lands.
- Signs in like a desktop app. Your own OAuth application, a browser tab, the token in the OS keyring. GitLab's own MCP server runs on the instance over HTTP, and a stdio client reaches it through a Node.js proxy.
- Verifiable releases. Signed checksums, build provenance and SBOMs.
Tools
Ship and Destructive tools are registered only with the settings below,
and the toolsets only when GITLAB_MCP_TOOLSETS names them.
Resources carry the same text for clients that attach rather than call: an issue, a merge request and a job log.
Install
Download an archive for your platform from the releases page, or:
Claude Desktop users can open the .mcpb bundle from the same release.
It does not log you in; do the steps below first.
Sign in
You bring your own OAuth application. Nothing is shipped in the binary, and there are no personal access tokens.
-
Register an application, once. On gitlab.com: your avatar → Edit profile → Applications (or a group's). Redirect URI
http://127.0.0.1/callback, Confidential unchecked, scopeapi(read_apifor read-only).docs/setup.mdhas the exact values. -
Log in from a terminal:
It prints the scopes it will ask for, opens your browser, and stores the token in the OS keyring. On a machine without a browser,
--no-browserprints the URL and thessh -Lline to forward the callback. -
Check it:
doctorwalks the connection, TLS, the sign-in, the application, the granted scopes and one call as you, and names what is missing.statusandlogoutdo what they say;--profilekeeps two gitlab.com logins side by side.
Connect a client
Claude Code:
Any client that takes a JSON server list:
Claude Desktop can instead open the .mcpb bundle from a release. It
asks for the same settings: merging, approving, rebasing, applying
suggestions, moving issues, CI and releases (enable_ship) and deleting
(enable_destructive) stay off unless you turn them on, and
write_namespaces confines writes to the groups and projects you name.
This server asks nobody before a call. Claude Desktop approves each
tool, and a tool you always allow then runs unasked, so
leave a switch off unless you need its tools.
Configuration
Every setting is an environment variable with the GITLAB_MCP_ prefix
and a matching flag. docs/configuration.md lists them all.
Safety
GitLab content was written by someone other than you, and some of it is written to steer an agent. The server marks it as untrusted data, never fetches what it references, and nothing it adds tells the model to act on it.
What can be registered depends on the settings, because GitLab's api
scope cannot separate any of it:
Your MCP client approves each call; the server does not ask you
itself. claude.ai, Claude Desktop and Codex prompt for every tool
marked destructive: every write but the ones that only add, such as
create_issue and create_label. VS Code prompts for every tool that
writes. In Claude Code, delete_label, delete_milestone and
make_issue_public ask on every call whatever your rules say, since
none can be undone and each reaches past the one item: a label or
milestone comes off every issue and merge request, and a public issue
is read by everyone. For the rest, list the
calls you want to approve one by one under permissions.ask in your
settings, with the name you gave the server in place of gitlab. For
example, the writes that ship, publish, upload or delete:
- No quick actions. GitLab runs
/merge,/closeand the rest from a description or comment. Every body this server sends is checked, and a quick-action line is refused, or escaped when you ask. - Protected branches. Code reaches the default branch or a protected branch only through a merge request; a direct commit there is refused.
- No blind retries. A create that may or may not have happened is settled by reading, never by creating again.
- Local files only from where you allow.
upload_filereads an image only from the directoriesGITLAB_MCP_UPLOAD_DIRSnames, and only a PNG, JPEG, GIF or WebP judged from its bytes, so a comment asking for a key file to be "attached" gets nothing.
The default token can still merge and approve; leaving Ship off stops
this server doing so, not anything else holding the token.
docs/security.md says more.
Verify a release
Each release signs checksums.txt with a keyless Sigstore certificate
and attests every archive and the bundle:
Getting help
Run gitlab-mcp doctor first: it checks the connection, the sign-in,
the application and the granted scopes, and names what is missing.
docs/troubleshooting.md covers each
failure. Then open an issue with doctor's output and the version.
Do not paste a tool result: it is your organization's code and other
people's words.
Documentation
docs/setup.md: registering the OAuth application and logging in.docs/configuration.md: every setting, what each registers, and where state is stored.docs/troubleshooting.md: symptoms and their fixes, then rotating the token, revoking access and handling a suspected exposure.docs/security.md: the threat model.docs/architecture.md: how it works, and the design decisions a contributor should not undo.docs/release.md: how a release is cut and checked.CHANGELOG.md: what each release changed. The tool names and their output fields are the contract, and anything you have to act on is marked Breaking.
Contributing
CONTRIBUTING.md covers the gates, the live run and
the review flow. Security reports go through SECURITY.md,
not an issue.
License
Apache-2.0. See LICENSE and NOTICE.
Source: README.md at commit 79e23ef
Tools
0Version history
15- v4.3.0LatestNov 4, 2026
- v4.2.1Nov 4, 2026
- v4.2.0Nov 1, 2026
- v4.1.4Oct 29, 2026
- v4.1.3Oct 25, 2026
- v4.1.2Oct 24, 2026
- v4.0.1Oct 23, 2026
- v3.0.0Oct 22, 2026
- v2.4.0Oct 10, 2026
- v2.3.0Oct 8, 2026
- v2.2.1Oct 2, 2026
- v2.1.0Oct 1, 2026
- v2.0.0Sep 30, 2026
- v1.1.0Sep 28, 2026
- v1.0.0Sep 27, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Gitlab integrations
Gitlab
com.gitlabOfficial publisher
Gitlab's hosted MCP server, published by gitlab.com; credential required; Streamable HTTP.

GitLab MCP Server
Published by GitHub account sumirati
A local GitLab MCP server that lets an assistant read and manage projects, branches, commits, merge requests, issues and CI/CD pipelines on GitLab.com or self‑h

Gitlab Ci Break Lint
Published by GitHub account jmshinhwa
A local MCP server that points out .gitlab-ci.yml lines your GitLab runner will reject after the next major GitLab upgrade.

Gitlab Mcp
Published by GitHub account mrfentmen
Lets an assistant look up public GitLab projects and users without any API key.

GitLab MCP Server
Published by GitHub account zereight
GitLab MCP server that lets an assistant work with projects, merge requests, issues, pipelines, wiki and releases in GitLab.