GitLab MCP by usefulapi
Read projects, issues, merge requests and pipelines; create issues and comments in GitLab.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://gitlab.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(16)
🟢gitlab_whoami
Return the GitLab user this token belongs to (id, username, name). Good first call to check the connection. GET /user.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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"
}コミュニティ
エビデンス