GitLab MCP by usefulapi
Read projects, issues, merge requests and pipelines; create issues and comments in GitLab.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://gitlab.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (16)
🟢gitlab_whoami
Return the GitLab user this token belongs to (id, username, name). Good first call to check the connection. GET /user.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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
Nachweis