MCP Gitlab

v0.4.1
io.github.crunchtools/gitlab Checked 11 hours ago Published 9 months ago

Secure MCP server for GitLab projects, merge requests, issues, and pipelines

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_projects_tool List Projects Tool

List GitLab projects accessible by the API token.

ParameterTypeDescription
membershipbooleanOnly list projects the user is a member of
order_bystringOrder by field (created_at, updated_at, name, path)
ownedbooleanOnly list projects owned by the authenticated user
pageintegerPage number for pagination (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchSearch for projects by name
sortstringSort direction (asc, desc)
visibilityFilter by visibility (public, internal, private)

get_project_tool Get Project Tool

Get GitLab project details by ID or path.

ParameterTypeDescription
project_id *stringProject ID (numeric) or path (e.g., "group/project")

list_project_branches_tool List Project Branches Tool

List repository branches for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchFilter branches by name

get_project_branch_tool Get Project Branch Tool

Get a single repository branch.

ParameterTypeDescription
branch *stringBranch name
project_id *stringProject ID or path

list_project_commits_tool List Project Commits Tool

List repository commits for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
pathOnly commits touching this file path
per_pageintegerResults per page, max 100 (default: 20)
ref_nameBranch or tag name (default: default branch)
sinceOnly commits after this date (ISO 8601)
untilOnly commits before this date (ISO 8601)

create_project_tool Create Project Tool

Create a new GitLab project.

ParameterTypeDescription
name *stringProject name
descriptionProject description
initialize_with_readmebooleanInitialize with a README file (default: false)
namespace_idNamespace ID to create the project under (group or user)
visibilitystringVisibility level (public, internal, private)

delete_project_tool Delete Project Tool

Delete a GitLab project permanently.

ParameterTypeDescription
project_id *stringProject ID (numeric) or path (e.g., "group/project")

list_groups_tool List Groups Tool

List GitLab groups accessible by the API token.

ParameterTypeDescription
order_bystringOrder by field (name, path, id)
ownedbooleanOnly list groups owned by the authenticated user
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchSearch for groups by name
sortstringSort direction (asc, desc)
top_level_onlybooleanOnly list top-level groups

get_group_tool Get Group Tool

Get GitLab group details by ID or path.

ParameterTypeDescription
group_id *stringGroup ID (numeric) or path (e.g., "parent-group/child-group")
with_projectsbooleanInclude group projects (default: true)

list_group_projects_tool List Group Projects Tool

List projects within a GitLab group.

ParameterTypeDescription
group_id *stringGroup ID or path
include_subgroupsbooleanInclude projects from subgroups
order_bystringOrder by field (created_at, updated_at, name, path)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchFilter projects by name
sortstringSort direction (asc, desc)
visibilityFilter by visibility (public, internal, private)

list_merge_requests_tool List Merge Requests Tool

List merge requests for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
labelsComma-separated label names
milestoneMilestone title
order_bystringOrder by field (created_at, updated_at)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchSearch in title and description
sortstringSort direction (asc, desc)
statestringFilter by state (opened, closed, merged, all)

get_merge_request_tool Get Merge Request Tool

Get a single merge request by its IID.

ParameterTypeDescription
merge_request_iid *integerMerge request internal ID (the number shown in the UI, e.g., !42)
project_id *stringProject ID or path

create_merge_request_tool Create Merge Request Tool

Create a new merge request.

ParameterTypeDescription
project_id *stringProject ID or path
source_branch *stringSource branch name (must already exist)
target_branch *stringTarget branch name
title *stringMR title
assignee_idsUser IDs to assign
descriptionMR description (Markdown)
labelsComma-separated label names
milestone_idMilestone ID
remove_source_branchbooleanRemove source branch after merge (default: false)
reviewer_idsUser IDs to review

update_merge_request_tool Update Merge Request Tool

Update an existing merge request.

ParameterTypeDescription
merge_request_iid *integerMerge request internal ID
project_id *stringProject ID or path
assignee_idsUser IDs to assign
descriptionMR description (Markdown)
labelsComma-separated label names
milestone_idMilestone ID
remove_source_branchRemove source branch after merge
reviewer_idsUser IDs to review
state_eventState transition (close, reopen)
target_branchTarget branch
titleMR title

list_mr_notes_tool List Mr Notes Tool

List notes (comments) on a merge request.

ParameterTypeDescription
merge_request_iid *integerMerge request internal ID
project_id *stringProject ID or path
order_bystringOrder by field (created_at, updated_at)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
sortstringSort direction (asc, desc)

create_mr_note_tool Create Mr Note Tool

Create a note (comment) on a merge request.

ParameterTypeDescription
body *stringNote content (Markdown)
merge_request_iid *integerMerge request internal ID
project_id *stringProject ID or path

get_mr_changes_tool Get Mr Changes Tool

Get the changes (diff) for a merge request.

ParameterTypeDescription
merge_request_iid *integerMerge request internal ID
project_id *stringProject ID or path

list_mr_discussions_tool List Mr Discussions Tool

List discussions (threaded comments) on a merge request. Discussions include inline code review comments with file position data.

ParameterTypeDescription
merge_request_iid *integerMerge request internal ID
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)

create_mr_discussion_tool Create Mr Discussion Tool

Create a new discussion on a merge request.

ParameterTypeDescription
body *stringDiscussion body (Markdown)
merge_request_iid *integerMerge request internal ID
project_id *stringProject ID or path

list_issues_tool List Issues Tool

List issues for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
assignee_idFilter by assignee user ID
labelsComma-separated label names
milestoneMilestone title
order_bystringOrder by field (created_at, updated_at, priority, due_date)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchSearch in title and description
sortstringSort direction (asc, desc)
statestringFilter by state (opened, closed, all)

get_issue_tool Get Issue Tool

Get a single issue by its IID.

ParameterTypeDescription
issue_iid *integerIssue internal ID (the number shown in the UI, e.g., #15)
project_id *stringProject ID or path

create_issue_tool Create Issue Tool

Create a new issue in a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
title *stringIssue title
assignee_idsUser IDs to assign
confidentialbooleanWhether the issue is confidential (default: false)
descriptionIssue description (Markdown)
labelsComma-separated label names
milestone_idMilestone ID

update_issue_tool Update Issue Tool

Update an existing issue.

ParameterTypeDescription
issue_iid *integerIssue internal ID
project_id *stringProject ID or path
assignee_idsUser IDs to assign
confidentialWhether the issue is confidential
descriptionIssue description (Markdown)
labelsComma-separated label names
milestone_idMilestone ID
state_eventState transition (close, reopen)
titleIssue title

list_issue_notes_tool List Issue Notes Tool

List notes (comments) on an issue.

ParameterTypeDescription
issue_iid *integerIssue internal ID
project_id *stringProject ID or path
order_bystringOrder by field (created_at, updated_at)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
sortstringSort direction (asc, desc)

create_issue_note_tool Create Issue Note Tool

Create a note (comment) on an issue.

ParameterTypeDescription
body *stringNote content (Markdown)
issue_iid *integerIssue internal ID
project_id *stringProject ID or path

list_pipelines_tool List Pipelines Tool

List CI/CD pipelines for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
order_bystringOrder by field (id, status, ref, updated_at, user_id)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
refFilter by branch or tag name
sortstringSort direction (asc, desc)
statusFilter by status (created, waiting_for_resource, preparing, pending, running, success, failed, canceled, skipped, manual, scheduled)

get_pipeline_tool Get Pipeline Tool

Get a single CI/CD pipeline by ID.

ParameterTypeDescription
pipeline_id *integerPipeline ID
project_id *stringProject ID or path

list_pipeline_jobs_tool List Pipeline Jobs Tool

List jobs for a CI/CD pipeline.

ParameterTypeDescription
pipeline_id *integerPipeline ID
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
scopeFilter by job scope (created, pending, running, failed, success, canceled, skipped, manual)

get_job_log_tool Get Job Log Tool

Get the log (trace) output of a CI/CD job.

ParameterTypeDescription
job_id *integerJob ID
project_id *stringProject ID or path

create_pipeline_tool Create Pipeline Tool

Create (trigger) a new CI/CD pipeline.

ParameterTypeDescription
project_id *stringProject ID or path
refstringBranch or tag name to run the pipeline for (default: main)

retry_pipeline_tool Retry Pipeline Tool

Retry all failed jobs in a CI/CD pipeline.

ParameterTypeDescription
pipeline_id *integerPipeline ID
project_id *stringProject ID or path

cancel_pipeline_tool Cancel Pipeline Tool

Cancel a running CI/CD pipeline.

ParameterTypeDescription
pipeline_id *integerPipeline ID
project_id *stringProject ID or path

delete_pipeline_tool Delete Pipeline Tool

Delete a CI/CD pipeline and all its jobs permanently.

ParameterTypeDescription
pipeline_id *integerPipeline ID
project_id *stringProject ID or path

retry_job_tool Retry Job Tool

Retry a specific failed CI/CD job.

ParameterTypeDescription
job_id *integerJob ID
project_id *stringProject ID or path

cancel_job_tool Cancel Job Tool

Cancel a running CI/CD job.

ParameterTypeDescription
job_id *integerJob ID
project_id *stringProject ID or path

delete_job_tool Delete Job Tool

Delete a CI/CD job's artifacts and trace log.

ParameterTypeDescription
job_id *integerJob ID
project_id *stringProject ID or path

search_global_tool Search Global Tool

Search across all GitLab resources accessible by the token.

ParameterTypeDescription
search *stringSearch query string
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
scopestringSearch scope (projects, issues, merge_requests, milestones, snippet_titles, wiki_blobs, commits, blobs, notes, users)

search_project_tool Search Project Tool

Search within a specific GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
search *stringSearch query string
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
scopestringSearch scope (issues, merge_requests, milestones, wiki_blobs, commits, blobs, notes)

list_repository_tree_tool List Repository Tree Tool

List repository tree (files and directories).

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
pathstringPath inside the repository (default: root)
per_pageintegerResults per page, max 100 (default: 20)
recursivebooleanList files recursively
refBranch, tag, or commit SHA (default: default branch)

get_file_tool Get File Tool

Get a file from a GitLab repository. Returns file metadata and content (base64 encoded).

ParameterTypeDescription
file_path *stringPath to the file in the repository
project_id *stringProject ID or path
refstringBranch, tag, or commit SHA (default: HEAD)

create_file_tool Create File Tool

Create a new file in a GitLab repository.

ParameterTypeDescription
branch *stringBranch to commit to
commit_message *stringCommit message
content *stringFile content (text or base64 depending on encoding)
file_path *stringPath for the new file
project_id *stringProject ID or path
encodingstringContent encoding - "text" or "base64" (default: text)

update_file_tool Update File Tool

Update an existing file in a GitLab repository.

ParameterTypeDescription
branch *stringBranch to commit to
commit_message *stringCommit message
content *stringNew file content
file_path *stringPath to the file
project_id *stringProject ID or path
encodingstringContent encoding - "text" or "base64" (default: text)

create_branch_tool Create Branch Tool

Create a new branch in a GitLab repository.

ParameterTypeDescription
branch *stringName of the new branch
project_id *stringProject ID or path
ref *stringBranch name or commit SHA to create from

delete_branch_tool Delete Branch Tool

Delete a branch from a GitLab repository.

ParameterTypeDescription
branch *stringBranch name to delete
project_id *stringProject ID or path

compare_branches_tool Compare Branches Tool

Compare two branches, tags, or commits.

ParameterTypeDescription
from_ref *stringBase branch/tag/commit
project_id *stringProject ID or path
to_ref *stringHead branch/tag/commit
straightbooleanUse straight comparison instead of merge-base (default: false)

list_labels_tool List Labels Tool

List labels for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchFilter labels by keyword

create_label_tool Create Label Tool

Create a new label in a GitLab project.

ParameterTypeDescription
color *stringColor hex code (e.g., "#FF0000") or named color
name *stringLabel name
project_id *stringProject ID or path
descriptionLabel description
priorityLabel priority (lower = higher priority)

update_label_tool Update Label Tool

Update an existing label in a GitLab project.

ParameterTypeDescription
label_id *integerLabel ID
project_id *stringProject ID or path
colorNew color hex code
descriptionNew description
new_nameNew label name
priorityNew priority

delete_label_tool Delete Label Tool

Delete a label from a GitLab project.

ParameterTypeDescription
label_id *integerLabel ID
project_id *stringProject ID or path

get_current_user_tool Get Current User Tool

Get the currently authenticated GitLab user.

list_users_tool List Users Tool

List GitLab users.

ParameterTypeDescription
activebooleanOnly return active users (default: true)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchSearch for users by name or email
usernameFilter by exact username

get_user_tool Get User Tool

Get a specific GitLab user by ID.

ParameterTypeDescription
user_id *integerUser ID

list_releases_tool List Releases Tool

List releases for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
order_bystringOrder by field (released_at, created_at)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
sortstringSort direction (asc, desc)

get_release_tool Get Release Tool

Get a single release by tag name.

ParameterTypeDescription
project_id *stringProject ID or path
tag_name *stringTag associated with the release

create_release_tool Create Release Tool

Create a new release for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
tag_name *stringTag name for the release (created if it doesn't exist)
descriptionRelease notes (Markdown)
nameRelease title (defaults to tag_name)
refCommit SHA or branch to tag from (required if tag doesn't exist)
released_atRelease date (ISO 8601, default: now)

list_milestones_tool List Milestones Tool

List milestones for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
searchFilter by title
statestringFilter by state (active, closed, all)

create_milestone_tool Create Milestone Tool

Create a new milestone in a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
title *stringMilestone title
descriptionMilestone description (Markdown)
due_dateDue date (YYYY-MM-DD)
start_dateStart date (YYYY-MM-DD)

update_milestone_tool Update Milestone Tool

Update an existing milestone.

ParameterTypeDescription
milestone_id *integerMilestone ID
project_id *stringProject ID or path
descriptionNew description (Markdown)
due_dateNew due date (YYYY-MM-DD)
start_dateNew start date (YYYY-MM-DD)
state_eventState transition (close, activate)
titleNew title

list_wiki_pages_tool List Wiki Pages Tool

List wiki pages for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
with_contentbooleanInclude page content in response (default: false)

get_wiki_page_tool Get Wiki Page Tool

Get a single wiki page by slug.

ParameterTypeDescription
project_id *stringProject ID or path
slug *stringURL slug of the wiki page

create_wiki_page_tool Create Wiki Page Tool

Create a new wiki page in a GitLab project.

ParameterTypeDescription
content *stringPage content
project_id *stringProject ID or path
title *stringPage title
formatstringContent format - markdown, rdoc, asciidoc, or org (default: markdown)

list_snippets_tool List Snippets Tool

List snippets for a GitLab project.

ParameterTypeDescription
project_id *stringProject ID or path
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)

create_snippet_tool Create Snippet Tool

Create a new snippet in a GitLab project.

ParameterTypeDescription
content *stringSnippet content
file_name *stringFile name for the snippet (e.g., "example.py")
project_id *stringProject ID or path
title *stringSnippet title
descriptionSnippet description (Markdown)
visibilitystringVisibility level (private, internal, public)