Skip to main content
Glama
GitLab MCP Server

GitLab MCP Server

by ttpears

GitLab MCP Server

npm version npm downloads CI Container License: MIT

A community MCP server for GitLab — works with any GitLab tier (Free, Premium, Ultimate), no GitLab Duo required. PAT-based auth. Streamable HTTP and stdio transports.

npx @ttpears/gitlab-mcp-server

Choose your deployment

You're running

Go to

Claude Code or another IDE/AI tool, just for you

Solo IDE

LibreChat for a team with a service-account read token

LibreChat — service-account reads

LibreChat where every operation should use the calling user's token

LibreChat — strict per-user


Related MCP server: GitLab MR MCP

Solo IDE

claude mcp add gitlab \
  --env GITLAB_URL=https://gitlab.com \
  --env GITLAB_TOKEN=glpat-your-pat \
  -- npx -y @ttpears/gitlab-mcp-server

--scope controls where the configuration lives:

  • --scope local (default) — only this user, only this project

  • --scope user — shared across all of your projects

  • --scope project — written to .mcp.json in the project root, intended for team check-in

For team check-in, use a ${VAR} placeholder so the PAT itself stays out of git:

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@ttpears/gitlab-mcp-server"],
      "env": {
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_TOKEN": "${GITLAB_TOKEN}"
      }
    }
  }
}

Each contributor exports GITLAB_TOKEN in their shell; Claude Code expands it on launch.

Cold start

If launching via npx adds noticeable latency, install once:

npm install -g @ttpears/gitlab-mcp-server

…and replace npx -y @ttpears/gitlab-mcp-server with gitlab-mcp-server in your config.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@ttpears/gitlab-mcp-server"],
      "env": {
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_TOKEN": "glpat-your-pat"
      }
    }
  }
}

LibreChat — service-account reads

A read-only service token covers reads (so anyone in the workspace can ask questions). Each user supplies their own PAT for writes through LibreChat's customUserVars.

LibreChat's documented extension point is docker-compose.override.yml — the fragments below assume you're adding gitlab-mcp there alongside LibreChat's own api, mongodb, etc.

.env

GITLAB_URL=https://gitlab.example.com
GITLAB_READ_TOKEN=glpat-readonly-service-token   # read_api scope only

Use https://gitlab.com for SaaS GitLab; use your own host for self-hosted.

docker-compose.override.yml

services:
  gitlab-mcp:
    image: ghcr.io/ttpears/gitlab-mcp:1.14.0
    env_file:
      - .env
    networks:
      - librechat
    restart: unless-stopped

env_file reads GITLAB_URL and GITLAB_READ_TOKEN from .env. No port mapping needed — LibreChat's api container reaches gitlab-mcp over the shared librechat network. Add ports: ["8008:8008"] only if you need to hit it from the host (e.g. for curl http://localhost:8008/health).

Then:

docker compose -f docker-compose.yml -f docker-compose.override.yml up -d gitlab-mcp api

api is restarted alongside so it re-reads librechat.yaml.

librechat.yaml

mcpServers:
  gitlab:
    type: streamable-http
    url: http://gitlab-mcp:8008/
    startup: false                # don't connect until the user supplies their PAT
    initTimeout: 30000
    timeout: 120000
    headers:
      Authorization: "Bearer {{GITLAB_PAT}}"
      X-GitLab-Url: "{{GITLAB_URL_OVERRIDE}}"   # optional; lets a user point at a different GitLab
    customUserVars:
      GITLAB_PAT:
        title: "GitLab Personal Access Token"
        description: "Your GitLab PAT with api scope. Used for issues, MRs, and comments you create or edit."
      GITLAB_URL_OVERRIDE:
        title: "GitLab URL (optional)"
        description: "Leave blank to use the workspace default. Override only if your account is on a different GitLab instance."

initTimeout / timeout are forgiving defaults for slower internal networks and large schemas — drop them if SaaS GitLab feels snappy.

Server-side env vars use ${VAR}. Per-user vars use {{VAR}}. They are not interchangeable.


LibreChat — strict per-user

Every call must carry a user PAT. No service-account fallback. Reads as well as writes are gated on the user's token.

  1. Host gitlab-mcp somewhere LibreChat can reach. For a quick standalone host:

    docker run -d --restart unless-stopped \
      -p 8008:8008 \
      -e GITLAB_URL=https://gitlab.example.com \
      --name gitlab-mcp \
      ghcr.io/ttpears/gitlab-mcp:1.14.0

    Or, when running alongside LibreChat in the same compose project, drop it into docker-compose.override.yml (no token env vars):

    services:
      gitlab-mcp:
        image: ghcr.io/ttpears/gitlab-mcp:1.14.0
        environment:
          GITLAB_URL: https://gitlab.example.com
        networks:
          - librechat
        restart: unless-stopped
  2. In LibreChat → MCP Servers → Add MCP Server:

    • URL: https://your-host/ (or http://gitlab-mcp:8008/ if same network)

    • Authentication: API Key → check User provides key → header format Bearer

    • Save

  3. Each user fills in their PAT through the MCP Tool Select Dialog when configuring an agent.

librechat.yaml equivalent

mcpServers:
  gitlab:
    type: streamable-http
    url: http://gitlab-mcp:8008/
    startup: false
    initTimeout: 30000
    timeout: 120000
    headers:
      Authorization: "Bearer {{GITLAB_PAT}}"
    customUserVars:
      GITLAB_PAT:
        title: "GitLab Personal Access Token"
        description: "Your GitLab PAT with api scope."

The container needs no env-configured token at all in this mode — every request is rejected unless Authorization: Bearer … is present.


Hosting for a remote LibreChat

The server speaks plain HTTP. For LibreChat-as-a-service or any cross-network deployment, terminate TLS at a reverse proxy. Common patterns:

  • Caddy — auto-TLS via Let's Encrypt:

    mcp.example.com {
      reverse_proxy gitlab-mcp:8008
    }
  • Traefik — Docker labels on the gitlab-mcp service.

  • Cloudflare Tunnel — no public IP needed; expose gitlab-mcp:8008 through the tunnel.

The Authorization and Mcp-Session-Id headers must pass through unchanged. Most defaults handle this fine.


How this differs from GitLab's official MCP server

GitLab ships an official MCP server (Beta) that requires Premium/Ultimate and GitLab Duo.

This server

GitLab official

GitLab tier

Free, Premium, Ultimate

Premium / Ultimate only

GitLab Duo required

No

Yes

Auth

Personal Access Token

OAuth 2.0 Dynamic Client Registration

Transport

stdio + streamable HTTP

stdio + HTTP

Multi-user

Per-call PAT or service-account fallback

OAuth per-user

GraphQL schema discovery

Yes — introspect & run custom queries

No

Repository browsing & file reading

Yes

No

Update issues / MRs / notes

Yes

No (create only)

Delete issues / notes

Yes

No

CI/CD pipeline management

Yes

Yes

MR diffs & commits

Yes

Yes

Time tracking & timelogs

Yes

No

MR reviewer & approval status

Yes

No

Iteration / milestone tracking

Yes

No

Project statistics dashboard

Yes

No

Group member listing

Yes

No

Semantic code search

No

Yes (requires additional setup)

Choose this server for Free/CE, GraphQL flexibility, or LibreChat multi-user. Choose the official server for Premium+Duo with semantic code search, or if you prefer OAuth.


Tools

Search & Discovery

Tool

Description

search_gitlab

Global search across projects, issues, and merge requests

search_projects

Find repositories by name or description

search_issues

Search issues globally or within a project (filter by assignee, author, labels, state)

search_merge_requests

Find merge requests by username or within a project

search_users

Find team members and contributors

search_groups

Discover groups and organizations

search_labels

Search labels in a project or group

list_group_members

List group members with access levels

browse_repository

Explore directory structure and files

get_file_content

Read file contents for code analysis

Read Operations

Tool

Description

get_project

Detailed project information

get_issues

List project issues with pagination

get_merge_requests

List project merge requests with pagination

get_merge_request_pipelines

Get CI/CD pipelines for a merge request

get_pipeline_jobs

Get jobs for a specific pipeline

get_merge_request_diffs

Get diff statistics for a merge request

get_merge_request_commits

Get commits for a merge request

get_notes

Get notes/comments on an issue or merge request

list_milestones

List milestones with progress statistics

list_iterations

List iterations/sprints (Premium/Ultimate)

get_time_tracking

Get time estimate, spent, and timelogs

get_merge_request_reviewers

Get MR approval and reviewer status

get_project_statistics

Aggregate project stats dashboard

get_user_issues

Get all issues assigned to a user

get_user_merge_requests

Get MRs authored by or assigned to a user

get_work_item

Fetch a work item (issue, task, epic, incident, OKR) by ID with full widget data

list_work_items

List work items in a group or project, filtered by type and state

list_broadcast_messages

List instance-wide broadcast messages

get_broadcast_message

Get a specific broadcast message by ID

list_my_events

Authenticated user's activity feed — pushes, MRs, comments, approvals

list_user_events

Another user's public activity feed by username or ID

list_project_events

Activity events for a specific project

resolve_path

Resolve a path to a project or group

get_available_queries

Discover available GraphQL operations

execute_custom_query

Run custom GraphQL queries

Write Operations (require user authentication)

Tool

Description

create_issue

Create new issues

create_merge_request

Create new merge requests

create_note

Add a comment/note to an issue or merge request

update_issue

Update title, description, assignees, labels, due date

update_merge_request

Update title, description, assignees, reviewers, labels

update_note

Edit the body of an existing comment

delete_issue

Delete an issue (issue author or maintainer required)

delete_note

Delete a comment (note author or maintainer required)

manage_pipeline

Retry or cancel a CI/CD pipeline

create_broadcast_message

Create a broadcast message (instance admin)

update_broadcast_message

Update a broadcast message (instance admin)

delete_broadcast_message

Delete a broadcast message (instance admin)


Configuration

Environment variables

Variable

Description

Default

GITLAB_URL

GitLab instance URL

https://gitlab.com

GITLAB_TOKEN

Full-access fallback token (reads + writes)

—

GITLAB_READ_TOKEN

Read-only fallback token (writes always rejected)

—

GITLAB_MAX_PAGE_SIZE

Maximum items per page (1–100)

50

GITLAB_TIMEOUT

Request timeout in milliseconds

30000

GITLAB_MCP_PORT

HTTP server port

8008

MCP_TRANSPORT

Transport mode (http for LibreChat)

stdio

GITLAB_TOKEN and GITLAB_READ_TOKEN are mutually exclusive; setting both is a startup error.

Removed in 1.14.0

  • GITLAB_AUTH_MODE — the three-way enum is gone. Pick your deployment shape by which env var you set; see Choose your deployment.

  • GITLAB_SHARED_ACCESS_TOKEN — rename to GITLAB_TOKEN (full access) or GITLAB_READ_TOKEN (read-only).

Old env vars trigger a deprecation warning at startup and are otherwise ignored.


Troubleshooting

"This operation requires authentication" / "Write operation requires a user token":

  • For LibreChat: check the user filled in their PAT in the MCP Tool Select Dialog (or in their customUserVars).

  • For Claude Code: confirm GITLAB_TOKEN is set in the MCP server's env block.

  • If you set GITLAB_READ_TOKEN, write operations against it are rejected by design — supply per-call user creds for writes.

Connection issues with LibreChat:

  • type: streamable-http (not sse).

  • URL is the Docker service name (http://gitlab-mcp:8008/), not localhost, when LibreChat and gitlab-mcp share a Docker network.

  • docker logs gitlab-mcp shows session init and request lines.

Schema introspection failed:

  • GitLab 12.0+ with GraphQL API enabled.

  • Verify GITLAB_URL is reachable from the container.

Debug logging:

NODE_ENV=development GITLAB_TOKEN=glpat-... npm start

Health check (HTTP mode):

curl http://localhost:8008/health

Changelog

See CHANGELOG.md. Releases before 1.14.0 are in GitHub releases.

License

MIT

Available Tools

69 tools
analytics_group_summaryGroup Activity SummaryA
Read-onlyIdempotent

Aggregated activity summary for an entire group (optionally including subgroups) over a time window — totals by action type (pushes, MRs opened/merged, comments, approvals), with breakdowns by project, by contributor, and by day. Use this to answer "what did this team do" without fanning out across list_project_events yourself.

Inputs: group (required), since (required), until, maxEvents, +4 more.

analytics_review_bottlenecksReview BottlenecksA
Read-onlyIdempotent

Aggregate open (non-draft) merge requests across a group or project to surface review bottlenecks. Returns per-reviewer queue stats, age-bucket histogram, and the stalest MRs by updatedAt. MRs with no reviewer assigned are bucketed under "(unassigned)".

Inputs: group, maxMRs, project, topStalest, +2 more.

analytics_user_summaryUser Activity SummaryA
Read-onlyIdempotent

Aggregated activity summary for a user over a time window — totals by action type (pushes, MRs opened/merged, comments, approvals), breakdown by project and by day. Use this instead of list_user_events when you want counts rather than a raw event feed.

Inputs: user (required), since (required), until, maxEvents, +1 more.

award_achievementAward AchievementA

Award an achievement to a GitLab username. Multiple awards to the same user are allowed. Requires group Maintainer/Owner. GitLab notifies the recipient, who may need to accept before it appears on their profile.

Inputs: username (required), achievementId (required), awardMessage, userCredentials.

browse_repositoryBrowse RepositoryB
Read-onlyIdempotent

Browse repository files and folders - essential for exploring codebase structure

Inputs: projectPath (required), ref, path, userCredentials.

create_achievementCreate AchievementA

Create a group achievement with name and optional description. Requires group Maintainer/Owner and enabled Achievements. Set avatars in GitLab UI; file uploads are not supported by this tool.

Inputs: name (required), group (required), description, userCredentials.

create_broadcast_messageCreate Broadcast MessageA

Create a GitLab broadcast message. Requires administrator privileges on the GitLab instance.

Inputs: message (required), font, color, theme, +7 more.

create_issueCreate IssueA

Create a new issue in a GitLab project (requires user authentication with write permissions)

Inputs: title (required), projectPath (required), description, userCredentials. Returns: id, iid, title, webUrl

create_merge_requestCreate Merge RequestB

Create a new merge request in a GitLab project (requires user authentication with write permissions)

Inputs: title (required), projectPath (required), sourceBranch (required), targetBranch (required), +2 more. Returns: id, iid, title, webUrl

create_noteCreate NoteB

Add a comment/note to an issue or merge request (requires user authentication)

Inputs: iid (required), body (required), projectPath (required), noteableType (required), +2 more.

delete_achievementDelete AchievementA
DestructiveIdempotent

Delete a group achievement and every related awarded or revoked instance. Destructive; requires group Maintainer/Owner.

Inputs: achievementId (required), userCredentials.

delete_broadcast_messageDelete Broadcast MessageA
DestructiveIdempotent

Delete a GitLab broadcast message by ID. Requires administrator privileges.

Inputs: id (required), userCredentials.

delete_issueDelete IssueA
DestructiveIdempotent

Delete a GitLab issue. Requires a user token with permission to delete issues in the project (typically the issue author or a maintainer).

Inputs: iid (required), projectPath (required), userCredentials.

delete_noteDelete NoteA
DestructiveIdempotent

Delete a comment (note) on a GitLab issue or merge request. Requires a user token belonging to the note author or a maintainer.

Inputs: noteId (required), userCredentials.

execute_custom_queryCustom GraphQL QueryA

Execute custom GraphQL queries for complex filtering (e.g., issues with assigneeUsernames: ["user"], labelName: ["bug"]). Use this for structured filtering by assignee/author/labels when search tools return 0 results. Use pagination and limit complexity to avoid timeouts.

Inputs: query (required), variables, requiresWrite, userCredentials.

execute_rest_readCustom REST ReadA
Read-onlyIdempotent

Execute an arbitrary GET request against the GitLab REST API at /api/v4. Open-ended escape hatch for read endpoints not covered by a dedicated tool — e.g. /projects/:id/repository/files, /projects/:id/pipelines/:pipeline_id/test_report, /admin/*. Provide the path beginning with "/" (no host, no /api/v4 prefix) and an optional query object. For writes, use execute_rest_write.

Inputs: path (required), query, userCredentials.

execute_rest_writeCustom REST WriteA
Destructive

Execute an arbitrary POST/PUT/PATCH/DELETE request against the GitLab REST API at /api/v4. Open-ended escape hatch for write endpoints not covered by a dedicated tool. Destructive — DELETE is permitted, so check the path before invoking. For reads, use execute_rest_read.

Inputs: path (required), method (required), body, query, +1 more.

get_available_queriesAvailable QueriesC
Read-onlyIdempotent

Get list of available GraphQL queries and mutations from the GitLab schema

Inputs: userCredentials.

get_broadcast_messageGet Broadcast MessageA
Read-onlyIdempotent

Get a specific GitLab broadcast message by ID.

Inputs: id (required), userCredentials.

get_current_userCurrent UserA
Read-onlyIdempotent

Get information about the current authenticated GitLab user

Inputs: userCredentials. Returns: id, name, username

get_file_contentFile ContentC
Read-onlyIdempotent

Get the content of a specific file from a GitLab repository - crucial for code analysis

Inputs: filePath (required), projectPath (required), ref, userCredentials.

get_group_projectsGroup ProjectsC
Read-onlyIdempotent

List projects inside a GitLab group (optionally filter by search term)

Inputs: fullPath (required), after, first, searchTerm, +1 more.

get_issue_contextGet Issue ContextA
Read-onlyIdempotent

Bundle issue body, all notes (paginated up to maxNotes), related merge requests (mentioning), closing merge requests, linked issues (relates_to/blocks/is_blocked_by) into a single call. Use this instead of fanning out across get_issues + get_notes + search_merge_requests when investigating an issue.

Inputs: iid (required), projectPath (required), maxNotes, userCredentials, +1 more.

get_issuesProject IssuesC
Read-onlyIdempotent

Get issues from a specific GitLab project (read-only)

Inputs: projectPath (required), sort, after, first, +2 more. Returns: nodes, hasMore, pageInfo, totalFetched

get_merge_request_commitsMR CommitsA
Read-onlyIdempotent

Get commits for a merge request (excluding merge commits), with commit count and details

Inputs: iid (required), projectPath (required), after, first, +2 more.

get_merge_request_contextGet Merge Request ContextA
Read-onlyIdempotent

Bundle MR body, all notes (paginated up to maxNotes, filtered to non-system by default), commits, pipeline summary, reviewers with approval state, and issues this MR will close into a single call. Use this instead of fanning out across get_merge_requests + get_notes + get_merge_request_commits + get_merge_request_pipelines when investigating an MR.

Inputs: iid (required), projectPath (required), maxNotes, maxCommits, +2 more.

get_merge_request_diffsMR DiffsB
Read-onlyIdempotent

Get diff statistics for a merge request, including per-file additions/deletions and diff refs

Inputs: iid (required), projectPath (required), userCredentials.

get_merge_request_pipelinesMR PipelinesB
Read-onlyIdempotent

Get CI/CD pipelines for a merge request, including status, duration, and stages

Inputs: iid (required), projectPath (required), after, first, +2 more.

get_merge_request_reviewersMR ReviewersA
Read-onlyIdempotent

Get approval and reviewer status for a merge request, including who approved and review states

Inputs: iid (required), projectPath (required), userCredentials.

get_merge_requestsMerge RequestsC
Read-onlyIdempotent

Get merge requests from a specific GitLab project (read-only)

Inputs: projectPath (required), sort, after, first, +2 more. Returns: nodes, hasMore, pageInfo, totalFetched

get_notesNotes/CommentsB
Read-onlyIdempotent

Get notes (comments) on an issue or merge request, including system notes and inline MR comments

Inputs: iid (required), projectPath (required), noteableType (required), after, +3 more.

get_pipeline_jobsPipeline JobsA
Read-onlyIdempotent

Get jobs for a specific pipeline, including status, stage, duration, and retry/cancel info

Inputs: pipelineIid (required), projectPath (required), after, first, +2 more.

get_projectProject DetailsC
Read-onlyIdempotent

Get detailed information about a specific GitLab project (read-only)

Inputs: fullPath (required), userCredentials. Returns: id, name, webUrl, fullPath

get_projectsList ProjectsB
Read-onlyIdempotent

List projects accessible to the user (requires authentication to see private projects)

Inputs: sort, after, first, fetchAll, +1 more. Returns: nodes, hasMore, pageInfo, totalFetched

get_project_statisticsProject StatisticsA
Read-onlyIdempotent

Get aggregate project statistics: open issues/MRs, star/fork counts, storage sizes, commit count, last pipeline status, release count, and language breakdown

Inputs: projectPath (required), userCredentials.

get_time_trackingTime TrackingA
Read-onlyIdempotent

Get time tracking data (estimate, spent, timelogs) for an issue or merge request

Inputs: iid (required), projectPath (required), resourceType (required), after, +3 more.

get_type_fieldsGraphQL Type FieldsA
Read-onlyIdempotent

List available fields on a GraphQL type using introspected schema (requires schema to be introspected)

Inputs: typeName (required), userCredentials.

get_user_issuesUser IssuesB
Read-onlyIdempotent

Get all issues assigned to a specific user - uses proper GraphQL filtering for reliable results

Inputs: username (required), after, first, state, +3 more.

get_user_merge_requestsUser Merge RequestsC
Read-onlyIdempotent

Get merge requests for a specific user (as author or assignee) - uses proper GraphQL filtering

Inputs: username (required), role, after, first, +4 more.

get_work_itemGet Work ItemA
Read-onlyIdempotent

Fetch a GitLab work item (issue, task, epic, incident, OKR) by global ID. Returns the raw widgets array so epic hierarchy, health status, iteration, milestone, and dates are all visible. Accepts either a numeric id or a full gid (gid://gitlab/WorkItem/123).

Inputs: id (required), userCredentials.

list_achievementsList AchievementsA
Read-onlyIdempotent

List group achievements with cursor pagination. Requires Achievements to be enabled on the GitLab instance. Optional recipient previews are a single page per achievement; each preview includes pageInfo.

Inputs: group (required), ids, after, first, +3 more.

list_broadcast_messagesList Broadcast MessagesA
Read-onlyIdempotent

List all GitLab broadcast messages (instance-wide announcements). Read-only.

Inputs: page, perPage, userCredentials.

list_group_membersGroup MembersA
Read-onlyIdempotent

List group members with access levels, optionally filtered by search term

Inputs: groupPath (required), after, first, search, +2 more.

list_iterationsIterationsA
Read-onlyIdempotent

List iterations (sprints) for a group with cadence info. Requires GitLab Premium/Ultimate.

Inputs: groupPath (required), after, first, state, +2 more.

list_milestonesMilestonesA
Read-onlyIdempotent

List milestones for a project or group with progress statistics (total/closed issue counts)

Inputs: fullPath (required), isProject (required), after, first, +5 more.

list_my_eventsMy EventsB
Read-onlyIdempotent

List the authenticated user's GitLab activity feed — pushes, MRs, comments, approvals, issue actions. Primary tool for "what did I just do". Requires user authentication.

Inputs: page, sort, after, scope, +5 more.

list_my_todosMy TodosA
Read-onlyIdempotent

List the authenticated user's GitLab to-do items (notifications about issues, MRs, mentions, reviews requested, etc.). Filter by state, action, target type, or group/project. Requires user authentication.

Inputs: sort, type, after, first, +8 more.

list_project_eventsProject EventsA
Read-onlyIdempotent

List activity events for a single GitLab project — commits pushed, MRs opened/merged, issues touched, notes added. Accepts project full path or numeric ID.

Inputs: project (required), page, sort, after, +5 more.

list_user_eventsUser EventsA
Read-onlyIdempotent

List a specific user's public GitLab activity feed by username or numeric ID. Use for tracking what a teammate has been working on.

Inputs: user (required), page, sort, after, +5 more.

list_work_itemsList Work ItemsA
Read-onlyIdempotent

List work items within a namespace (group or project fullPath). Supports filtering by type (ISSUE, TASK, EPIC, INCIDENT, OBJECTIVE, KEY_RESULT) and state, plus cursor pagination and fetchAll.

Inputs: fullPath (required), sort, after, first, +4 more.

manage_pipelineManage PipelineA

Retry or cancel a CI/CD pipeline (requires user authentication with write permissions)

Inputs: action (required), pipelineIid (required), projectPath (required), userCredentials.

mark_all_todos_doneMark All Todos DoneA
DestructiveIdempotent

Mark pending to-do items as done for the authenticated user. With no arguments, marks every pending todo. Optional scoping args (groupPath, projectPath, action, type, authorIds, targetId) narrow which todos are marked. Irreversible without per-item restore_todo calls. Returns the actual list of updated todos.

Inputs: type, action, targetId, authorIds, +3 more.

mark_todo_doneMark Todo DoneA
Idempotent

Mark a single to-do item as done for the authenticated user. Requires the todo's ID (numeric or full gid://gitlab/Todo/N form) from list_my_todos.

Inputs: todoId (required), userCredentials.

resolve_pathResolve PathB
Read-onlyIdempotent

Resolve a GitLab path to either a project or group and list group projects when applicable

Inputs: fullPath (required), after, first, userCredentials.

restore_todoRestore TodoA
Idempotent

Restore a previously-marked-done to-do item back to pending state. Accepts the todo's ID (numeric or full gid://gitlab/Todo/N form).

Inputs: todoId (required), userCredentials.

revoke_achievementRevoke AchievementA
DestructiveIdempotent

Revoke one awarded achievement. Provide either userAchievementId, or group + achievementId + username. Username lookup scans recipient pages and rejects ambiguous repeated awards; use a specific userAchievementId in that case. Requires group Maintainer/Owner.

Inputs: group, username, achievementId, userCredentials, +1 more.

search_gitlabSearch GitLabA
Read-onlyIdempotent

Text search across GitLab projects and issues (Note: Does not support filtering by assignee/labels - use search_issues for that. MRs cannot be searched globally - use search_merge_requests with username)

Inputs: after, first, fetchAll, searchTerm, +1 more.

search_groupsSearch GroupsC
Read-onlyIdempotent

Search for GitLab groups and organizations

Inputs: searchTerm (required), after, first, fetchAll, +1 more.

search_issuesSearch IssuesB
Read-onlyIdempotent

Search for issues with text search and/or structured filtering (assignee, author, labels, state). For filtering by assignee/author/labels without text search, leave searchTerm empty.

Inputs: sort, after, first, state, +7 more. Returns: nodes, hasMore, pageInfo, totalFetched

search_labelsSearch LabelsB
Read-onlyIdempotent

Search for labels in a project or group, with optional text filtering

Inputs: fullPath (required), isProject (required), after, first, +3 more.

search_merge_requestsSearch Merge RequestsA
Read-onlyIdempotent

Search merge requests by username (supports "username", "author:username", "assignee:username") or search within a specific project. Note: GitLab does not support global text search for MRs - use projectPath for text searches.

Inputs: searchTerm (required), sort, after, first, +4 more. Returns: nodes, hasMore, pageInfo, totalFetched

search_notesSearch Notes (Comments)A
Read-onlyIdempotent

Full-text search across issue and merge request comments. Scope can be global, a project, or a group. NOTE: on self-hosted GitLab, the "notes" search scope requires Advanced Search (Elasticsearch) to be enabled — without it, this endpoint returns an error. search_gitlab does NOT search note bodies; this tool does.

Inputs: search (required), page, scope, perPage, +3 more.

search_projectsSearch ProjectsC
Read-onlyIdempotent

Search for GitLab projects by name or description

Inputs: searchTerm (required), after, first, fetchAll, +1 more. Returns: nodes, hasMore, pageInfo, totalFetched

search_usersSearch UsersB
Read-onlyIdempotent

Search for GitLab users by username or name - useful for finding team members or contributors

Inputs: searchTerm (required), after, first, fetchAll, +1 more.

update_achievementUpdate AchievementA
Idempotent

Update an achievement name or description. Requires group Maintainer/Owner. Provide at least one changed field; an empty description clears it.

Inputs: achievementId (required), name, description, userCredentials.

update_broadcast_messageUpdate Broadcast MessageB
Idempotent

Update an existing GitLab broadcast message. Requires administrator privileges.

Inputs: id (required), font, color, theme, +8 more.

update_issueUpdate IssueB
Idempotent

Update an issue (title, description, assignees, labels, due date) with schema-aware mutations

Inputs: iid (required), projectPath (required), title, dueDate, +4 more.

update_merge_requestUpdate Merge RequestB
Idempotent

Update a merge request (title, description, assignees, reviewers, labels) with schema-aware mutations

Inputs: iid (required), projectPath (required), title, labelNames, +4 more.

update_noteUpdate NoteA
Idempotent

Edit the body of an existing comment (note) on a GitLab issue or merge request. Requires a user token belonging to the note author.

Inputs: body (required), noteId (required), userCredentials.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 69 tools

    Disambiguation3/5

    There are several overlapping retrieval paths—get_issues/search_issues/get_user_issues/list_work_items/get_issue_context for issues and analogous merge request tools—plus get_notes vs search_notes and dedicated tools vs execute_rest_read/execute_custom_query. Descriptions generally explain when to use which, so boundaries are recoverable, but the set still invites misselection.

    Naming Consistency4/5

    Almost all tools use snake_case verb_noun naming such as get_project, create_issue, delete_note, and search_merge_requests. Minor deviations like analytics_user_summary, execute_rest_read, and mark_all_todos_done are readable and do not break the overall pattern.

    Tool Count1/5

    69 tools is far beyond a well-scoped MCP surface and includes many specialized, overlapping, and escape-hatch tools. This creates a large selection burden for an agent and is an extreme mismatch for typical usage.

    Completeness3/5

    Core issue, merge request, note, pipeline, todo, event, achievement, and broadcast workflows are covered, and generic REST/GraphQL escape hatches prevent total dead ends. However, common GitLab operations like project/group CRUD, label/milestone lifecycle, branches, and file writes lack dedicated tools, so coverage is only partial.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with GitLab repositories through secure OAuth 2.0 authentication. Supports comprehensive GitLab operations including merge requests, issues, file management, commits, and branch operations through natural language.
      22 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with GitLab repositories, manage merge requests, review code diffs, post comments, and handle issues directly through natural language.
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI agents to interact with GitLab repositories, monitor documentation changes, manage issues and merge requests, and search across projects with comprehensive file and commit operations.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with GitLab for managing projects, branches, issues, and merge requests. It provides tools for searching code and performing file operations like reading and writing directly within repositories.
      25 npm
      MIT