GitLab MCP by usefulapi

Read projects, issues, merge requests and pipelines; create issues and comments in GitLab.

Should I use this

Quality & Safety

A
Description quality
98%
Schema completeness
93%
Naming quality
80%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~3,199Tokens (tool definitions)
~1.7 KBTypical response size
Significant attention impact (2.50% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "gitlab": {
      "url": "https://gitlab.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://gitlab.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (16)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢gitlab_whoami

Return the GitLab user this token belongs to (id, username, name). Good first call to check the connection. GET /user.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_projects(membership, search, archived, order_by, sort, ...)

List projects visible to the token. Set membership to true to list only the projects you belong to. GET /projects.

Input Schema

{
  "type": "object",
  "properties": {
    "membership": {
      "description": "Only projects the user is a member of.",
      "type": "boolean"
    },
    "search": {
      "description": "Match project names.",
      "type": "string"
    },
    "archived": {
      "description": "Limit by archived status: true returns only archived projects. Omit for both.",
      "type": "boolean"
    },
    "order_by": {
      "type": "string",
      "enum": [
        "id",
        "name",
        "path",
        "created_at",
        "updated_at",
        "last_activity_at"
      ]
    },
    "sort": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_get_project(project)

Return one project: path, default branch, visibility, topics and links. GET /projects/:id.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    }
  },
  "required": [
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_groups(search, page, per_page)

List groups visible to the token, optionally filtered by name. GET /groups.

Input Schema

{
  "type": "object",
  "properties": {
    "search": {
      "description": "Match group names.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_issues(project, state, labels, search, assignee_username, ...)

List issues in a project, filtered by state, labels, assignee or author. GET /projects/:id/issues.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "state": {
      "description": "Issue state (default all).",
      "type": "string",
      "enum": [
        "opened",
        "closed",
        "all"
      ]
    },
    "labels": {
      "description": "Comma-separated label names; all must match.",
      "type": "string"
    },
    "search": {
      "description": "Match titles and descriptions.",
      "type": "string"
    },
    "assignee_username": {
      "description": "Only issues assigned to this username.",
      "type": "string"
    },
    "author_username": {
      "description": "Only issues created by this username.",
      "type": "string"
    },
    "order_by": {
      "type": "string",
      "enum": [
        "created_at",
        "updated_at",
        "priority",
        "due_date",
        "popularity",
        "weight"
      ]
    },
    "sort": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_get_issue(project, iid)

Return one issue by its project-scoped iid: title, description, state, labels and assignees. GET /projects/:id/issues/:iid.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "iid": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project-scoped number shown in the URL (for example 42 for !42 or #42)."
    }
  },
  "required": [
    "project",
    "iid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_issue_notes(project, iid, sort, order_by, page, ...)

List the comments (notes) on an issue, oldest first by default. GET /projects/:id/issues/:iid/notes.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "iid": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project-scoped number shown in the URL (for example 42 for !42 or #42)."
    },
    "sort": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "order_by": {
      "type": "string",
      "enum": [
        "created_at",
        "updated_at"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project",
    "iid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_merge_requests(project, state, source_branch, target_branch, labels, ...)

List merge requests in a project, filtered by state, branches or author. GET /projects/:id/merge_requests.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "state": {
      "description": "Merge request state (default all).",
      "type": "string",
      "enum": [
        "all",
        "opened",
        "closed",
        "locked",
        "merged"
      ]
    },
    "source_branch": {
      "type": "string"
    },
    "target_branch": {
      "type": "string"
    },
    "labels": {
      "description": "Comma-separated label names; all must match.",
      "type": "string"
    },
    "search": {
      "type": "string"
    },
    "author_username": {
      "type": "string"
    },
    "order_by": {
      "type": "string",
      "enum": [
        "created_at",
        "updated_at",
        "title"
      ]
    },
    "sort": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_get_merge_request(project, iid)

Return one merge request by its project-scoped iid: title, state, branches, author, reviewers and merge status. GET /projects/:id/merge_requests/:iid.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "iid": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project-scoped number shown in the URL (for example 42 for !42 or #42)."
    }
  },
  "required": [
    "project",
    "iid"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_pipelines(project, status, ref, order_by, sort, ...)

List CI/CD pipelines in a project, filtered by status or branch or tag. GET /projects/:id/pipelines.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "status": {
      "type": "string",
      "enum": [
        "created",
        "waiting_for_resource",
        "preparing",
        "pending",
        "running",
        "success",
        "failed",
        "canceled",
        "skipped",
        "manual",
        "scheduled"
      ]
    },
    "ref": {
      "description": "Branch or tag name.",
      "type": "string"
    },
    "order_by": {
      "type": "string",
      "enum": [
        "id",
        "status",
        "ref",
        "updated_at"
      ]
    },
    "sort": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_get_pipeline(project, pipeline_id)

Return one pipeline: status, ref, commit sha, duration and who triggered it. GET /projects/:id/pipelines/:pipeline_id.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "pipeline_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Pipeline id."
    }
  },
  "required": [
    "project",
    "pipeline_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_pipeline_jobs(project, pipeline_id, page, per_page)

List the jobs of one pipeline with their stage, status and duration. GET /projects/:id/pipelines/:pipeline_id/jobs.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "pipeline_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Pipeline id."
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project",
    "pipeline_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_branches(project, search, page, per_page)

List branches of a repository, optionally filtered by name. GET /projects/:id/repository/branches.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "search": {
      "description": "Match branch names.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢gitlab_list_commits(project, ref_name, since, until, path, ...)

List commits on a branch, tag or sha, optionally in a time window or touching one path. GET /projects/:id/repository/commits.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "ref_name": {
      "description": "Branch, tag or sha (default: default branch).",
      "type": "string"
    },
    "since": {
      "description": "ISO 8601 timestamp, for example 2026-01-31T00:00:00Z.",
      "type": "string"
    },
    "until": {
      "description": "ISO 8601 timestamp, for example 2026-01-31T00:00:00Z.",
      "type": "string"
    },
    "path": {
      "description": "Only commits that change this file or folder.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page, 1 to 100 (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "project"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴gitlab_create_issue(project, title, description, labels)

Create a new issue in a project with a title, optional description and optional labels. POST /projects/:id/issues.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "description": "Issue title."
    },
    "description": {
      "description": "Issue body, Markdown.",
      "type": "string"
    },
    "labels": {
      "description": "Comma-separated label names.",
      "type": "string"
    }
  },
  "required": [
    "project",
    "title"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴gitlab_create_issue_note(project, iid, body)

Add a comment (note) to an existing issue. POST /projects/:id/issues/:iid/notes.

Input Schema

{
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "minLength": 1,
      "description": "Project id (number) or full path, for example gitlab-org/gitlab."
    },
    "iid": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project-scoped number shown in the URL (for example 42 for !42 or #42)."
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "description": "Comment text, Markdown."
    }
  },
  "required": [
    "project",
    "iid",
    "body"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded16 tools