# GitLab MCP MCP Server

> **GitLab MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to GitLab MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/gitlab-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

GitLab connects AI agents to software development workflows, enabling them to manage projects, issues, merge requests, pipelines, repositories, and code reviews. Search code, inspect CI/CD jobs, review security findings, and automate development tasks across GitLab projects.

---

## Details

- Server ID: `gitlab-mcp`
- Version: 1.0.0
- Tools: 36
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — GitLab MCP has to be in the toolset
first. In order:

1. Add GitLab MCP to your toolset at https://mewcp.com/mcp/gitlab-mcp
2. Connect your GitLab MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If GitLab MCP isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `gitlab-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (36)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_artifact_file` _(read)_ — Read a file from inside the artifacts archive of a CI/CD job as text. To discover what a job or pipeline produced, use get_job or get_pipeline with include:…
- `get_job` _(read)_ — Get a CI/CD job in a GitLab project. Add include: log to also get the job's trace/log, which you can page through with byte_offset and byte_limit. Add include:…
- `get_mcp_server_version` _(read)_ — Get the current version of MCP server.
- `list_releases` _(read)_ — List releases in a GitLab project, most recently released first. Identify the project with exactly one of url or project_id. Returns release metadata and asset…
- `list_tags` _(read)_ — List tags in a GitLab project, most recently updated first. Identify the project with exactly one of url or project_id. When search is given, a tag whose name…
- `accept_merge_request` _(destructive)_ — Merge a merge request, or schedule it to merge automatically. Without strategy the merge starts immediately and completes asynchronously; with strategy,…
- `add_branch` _(write)_ — Add a branch to a GitLab project from a source ref. Examples: - Use branch and ref to create a new branch from an existing branch or commit SHA
- `add_commit` _(destructive)_ — Add a commit with one or more file actions to a project branch.
- `get_commit` _(read)_ — Get a single commit's metadata, optionally including its diff or notes. Identify the commit with either url, or project_id and commit_sha.
- `get_merge_request` _(read)_ — Get a merge request and optionally its diffs, commits, notes, pipelines, discussions, approvals, or conflicts. By default only the base merge request metadata…
- `get_repository_file` _(read)_ — Read a file from a GitLab repository at a given ref. Reads from GitLab, not the local filesystem: use it for a project you have not checked out, or a specific…
- `get_pipeline` _(read)_ — Get a CI/CD pipeline in a GitLab project, and optionally its jobs, downstream pipelines, bridge (trigger) jobs, or the artifacts its jobs produced. A bridge…
- `get_project` _(read)_ — Get metadata for a single GitLab project: numeric ID, full path, default branch, visibility, and web URL. Identify the project with exactly one of url or…
- `get_saved_view_work_items` _(read)_ — Fetch a saved view and its work items list from a namespace
- `get_user` _(read)_ — Get a single GitLab user. Use me: true to look up the authenticated user, for example to find your own user id before setting assignee_ids or reviewer_ids.…
- `get_work_item` _(read)_ — Get a single work item (issue, epic, task, incident, objective, key result) with its type, dates, assignees, labels, milestone, and parent. Optionally include…
- `get_work_item_types` _(read)_ — List the work item types available in a namespace (group or project), including system-defined types (Issue, Epic, Task, etc.) and custom types. Each returned…
- `link_work_items` _(write)_ — Link a work item to other work items with a relationship type (relates_to, blocks, blocked_by)
- `list_commits` _(read)_ — List commits in a GitLab project, filtered by ref, author, path, or date. Identify the project with exactly one of url or project_id. Returns compact commit…
- `list_groups` _(read)_ — List GitLab groups. Without group_id, lists top-level groups where you are a member. With group_id, lists the direct subgroups of that group, regardless of…
- `list_merge_requests` _(read)_ — List or search merge requests in a GitLab project or group by author, assignee, reviewer, state, milestone, labels, or text. Identify the project or group with…
- `list_projects` _(read)_ — List GitLab projects. Without group_id, defaults to projects you have at least guest access to; pass min_access_level to raise the threshold. With group_id,…
- `list_repository_tree` _(read)_ — List files and directories in a GitLab repository at a given path and ref. Identify the project with exactly one of url or project_id. Returns entry metadata…
- `list_project_members` _(read)_ — List the members of a GitLab project with their role and access level. Direct members only, unless include_inherited is true.
- `list_work_items` _(read)_ — List or search work items (ISSUE, INCIDENT, TEST_CASE, REQUIREMENT, TASK, TICKET, OBJECTIVE, KEY_RESULT, EPIC) in a group or project. Filter by state, author,…
- `save_merge_request_review` _(write)_ — Write merge request review artifacts as the authenticated user. Exactly one method per call: create_note adds a top-level comment; reply_discussion replies…
- `save_note` _(write)_ — Add a comment to a GitLab merge request or work item, or reply to an existing discussion thread. Identify the target with url, or with merge_request_iid or…
- `save_pipeline` _(destructive)_ — Run, retry, cancel, or rename a CI/CD pipeline in a GitLab project. Omit pipeline_id and pass ref to run a new pipeline, and identify the project with exactly…
- `save_work_item` _(write)_ — Create or update a GitLab work item, such as an issue, task, or epic. Omit work_item_iid to create a new work item; provide work_item_iid or a work item URL to…
- `search_labels` _(read)_ — Search labels in a GitLab project or group by multiple terms
- `fork_repository` _(write)_ — Create a fork of a project
- `list_pipelines` _(read)_ — List all project pipelines
- `list_branches` _(read)_ — List all repository branches
- `semantic_search` _(read)_ — Semantic (meaning-based) search over different types of content. Searches indexed project content using embedding-based similarity rather than keyword…
- `search` _(read)_ — Search across GitLab with automatic selection of the best available search method. **Capabilities:** basic (keywords, file filters), advanced (boolean…
- `save_merge_request` _(write)_ — Create or update a merge request in a GitLab project. merge_request_iid alone decides the operation. Omitting it always creates a new merge request; provide it…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/gitlab-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/gitlab-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/gitlab-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/gitlab-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/gitlab-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/gitlab-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/gitlab-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/gitlab-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/gitlab-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/gitlab-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/gitlab-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/gitlab-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/gitlab-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/gitlab-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/gitlab-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/gitlab-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/gitlab-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/gitlab-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/gitlab-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/gitlab-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/gitlab-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/gitlab-mcp/connect/junie
- Amp: https://mewcp.com/mcp/gitlab-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/gitlab-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/gitlab-mcp/connect/goose
- Python: https://mewcp.com/mcp/gitlab-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/gitlab-mcp/connect/typescript