MCP Gitlab
v0.4.1Secure 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.
| Parameter | Type | Description |
|---|---|---|
membership | boolean | Only list projects the user is a member of |
order_by | string | Order by field (created_at, updated_at, name, path) |
owned | boolean | Only list projects owned by the authenticated user |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Search for projects by name | |
sort | string | Sort direction (asc, desc) |
visibility | Filter by visibility (public, internal, private) |
get_project_tool Get Project Tool
Get GitLab project details by ID or path.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (numeric) or path (e.g., "group/project") |
list_project_branches_tool List Project Branches Tool
List repository branches for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Filter branches by name |
get_project_branch_tool Get Project Branch Tool
Get a single repository branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch name |
project_id * | string | Project ID or path |
list_project_commits_tool List Project Commits Tool
List repository commits for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
path | Only commits touching this file path | |
per_page | integer | Results per page, max 100 (default: 20) |
ref_name | Branch or tag name (default: default branch) | |
since | Only commits after this date (ISO 8601) | |
until | Only commits before this date (ISO 8601) |
create_project_tool Create Project Tool
Create a new GitLab project.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
description | Project description | |
initialize_with_readme | boolean | Initialize with a README file (default: false) |
namespace_id | Namespace ID to create the project under (group or user) | |
visibility | string | Visibility level (public, internal, private) |
delete_project_tool Delete Project Tool
Delete a GitLab project permanently.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (numeric) or path (e.g., "group/project") |
list_groups_tool List Groups Tool
List GitLab groups accessible by the API token.
| Parameter | Type | Description |
|---|---|---|
order_by | string | Order by field (name, path, id) |
owned | boolean | Only list groups owned by the authenticated user |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Search for groups by name | |
sort | string | Sort direction (asc, desc) |
top_level_only | boolean | Only list top-level groups |
get_group_tool Get Group Tool
Get GitLab group details by ID or path.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group ID (numeric) or path (e.g., "parent-group/child-group") |
with_projects | boolean | Include group projects (default: true) |
list_group_projects_tool List Group Projects Tool
List projects within a GitLab group.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group ID or path |
include_subgroups | boolean | Include projects from subgroups |
order_by | string | Order by field (created_at, updated_at, name, path) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Filter projects by name | |
sort | string | Sort direction (asc, desc) |
visibility | Filter by visibility (public, internal, private) |
list_merge_requests_tool List Merge Requests Tool
List merge requests for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
labels | Comma-separated label names | |
milestone | Milestone title | |
order_by | string | Order by field (created_at, updated_at) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Search in title and description | |
sort | string | Sort direction (asc, desc) |
state | string | Filter by state (opened, closed, merged, all) |
get_merge_request_tool Get Merge Request Tool
Get a single merge request by its IID.
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | integer | Merge request internal ID (the number shown in the UI, e.g., !42) |
project_id * | string | Project ID or path |
create_merge_request_tool Create Merge Request Tool
Create a new merge request.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
source_branch * | string | Source branch name (must already exist) |
target_branch * | string | Target branch name |
title * | string | MR title |
assignee_ids | User IDs to assign | |
description | MR description (Markdown) | |
labels | Comma-separated label names | |
milestone_id | Milestone ID | |
remove_source_branch | boolean | Remove source branch after merge (default: false) |
reviewer_ids | User IDs to review |
update_merge_request_tool Update Merge Request Tool
Update an existing merge request.
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | integer | Merge request internal ID |
project_id * | string | Project ID or path |
assignee_ids | User IDs to assign | |
description | MR description (Markdown) | |
labels | Comma-separated label names | |
milestone_id | Milestone ID | |
remove_source_branch | Remove source branch after merge | |
reviewer_ids | User IDs to review | |
state_event | State transition (close, reopen) | |
target_branch | Target branch | |
title | MR title |
list_mr_notes_tool List Mr Notes Tool
List notes (comments) on a merge request.
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | integer | Merge request internal ID |
project_id * | string | Project ID or path |
order_by | string | Order by field (created_at, updated_at) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
sort | string | Sort direction (asc, desc) |
create_mr_note_tool Create Mr Note Tool
Create a note (comment) on a merge request.
| Parameter | Type | Description |
|---|---|---|
body * | string | Note content (Markdown) |
merge_request_iid * | integer | Merge request internal ID |
project_id * | string | Project ID or path |
get_mr_changes_tool Get Mr Changes Tool
Get the changes (diff) for a merge request.
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | integer | Merge request internal ID |
project_id * | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | integer | Merge request internal ID |
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
create_mr_discussion_tool Create Mr Discussion Tool
Create a new discussion on a merge request.
| Parameter | Type | Description |
|---|---|---|
body * | string | Discussion body (Markdown) |
merge_request_iid * | integer | Merge request internal ID |
project_id * | string | Project ID or path |
list_issues_tool List Issues Tool
List issues for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
assignee_id | Filter by assignee user ID | |
labels | Comma-separated label names | |
milestone | Milestone title | |
order_by | string | Order by field (created_at, updated_at, priority, due_date) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Search in title and description | |
sort | string | Sort direction (asc, desc) |
state | string | Filter by state (opened, closed, all) |
get_issue_tool Get Issue Tool
Get a single issue by its IID.
| Parameter | Type | Description |
|---|---|---|
issue_iid * | integer | Issue internal ID (the number shown in the UI, e.g., #15) |
project_id * | string | Project ID or path |
create_issue_tool Create Issue Tool
Create a new issue in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
title * | string | Issue title |
assignee_ids | User IDs to assign | |
confidential | boolean | Whether the issue is confidential (default: false) |
description | Issue description (Markdown) | |
labels | Comma-separated label names | |
milestone_id | Milestone ID |
update_issue_tool Update Issue Tool
Update an existing issue.
| Parameter | Type | Description |
|---|---|---|
issue_iid * | integer | Issue internal ID |
project_id * | string | Project ID or path |
assignee_ids | User IDs to assign | |
confidential | Whether the issue is confidential | |
description | Issue description (Markdown) | |
labels | Comma-separated label names | |
milestone_id | Milestone ID | |
state_event | State transition (close, reopen) | |
title | Issue title |
list_issue_notes_tool List Issue Notes Tool
List notes (comments) on an issue.
| Parameter | Type | Description |
|---|---|---|
issue_iid * | integer | Issue internal ID |
project_id * | string | Project ID or path |
order_by | string | Order by field (created_at, updated_at) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
sort | string | Sort direction (asc, desc) |
create_issue_note_tool Create Issue Note Tool
Create a note (comment) on an issue.
| Parameter | Type | Description |
|---|---|---|
body * | string | Note content (Markdown) |
issue_iid * | integer | Issue internal ID |
project_id * | string | Project ID or path |
list_pipelines_tool List Pipelines Tool
List CI/CD pipelines for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
order_by | string | Order by field (id, status, ref, updated_at, user_id) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
ref | Filter by branch or tag name | |
sort | string | Sort direction (asc, desc) |
status | Filter 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.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline ID |
project_id * | string | Project ID or path |
list_pipeline_jobs_tool List Pipeline Jobs Tool
List jobs for a CI/CD pipeline.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline ID |
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
scope | Filter 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.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Job ID |
project_id * | string | Project ID or path |
create_pipeline_tool Create Pipeline Tool
Create (trigger) a new CI/CD pipeline.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
ref | string | Branch 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.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline ID |
project_id * | string | Project ID or path |
cancel_pipeline_tool Cancel Pipeline Tool
Cancel a running CI/CD pipeline.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline ID |
project_id * | string | Project ID or path |
delete_pipeline_tool Delete Pipeline Tool
Delete a CI/CD pipeline and all its jobs permanently.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline ID |
project_id * | string | Project ID or path |
retry_job_tool Retry Job Tool
Retry a specific failed CI/CD job.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Job ID |
project_id * | string | Project ID or path |
cancel_job_tool Cancel Job Tool
Cancel a running CI/CD job.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Job ID |
project_id * | string | Project ID or path |
delete_job_tool Delete Job Tool
Delete a CI/CD job's artifacts and trace log.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | Job ID |
project_id * | string | Project ID or path |
search_global_tool Search Global Tool
Search across all GitLab resources accessible by the token.
| Parameter | Type | Description |
|---|---|---|
search * | string | Search query string |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
scope | string | Search 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.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
search * | string | Search query string |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
scope | string | Search scope (issues, merge_requests, milestones, wiki_blobs, commits, blobs, notes) |
list_repository_tree_tool List Repository Tree Tool
List repository tree (files and directories).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
path | string | Path inside the repository (default: root) |
per_page | integer | Results per page, max 100 (default: 20) |
recursive | boolean | List files recursively |
ref | Branch, 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).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the file in the repository |
project_id * | string | Project ID or path |
ref | string | Branch, tag, or commit SHA (default: HEAD) |
create_file_tool Create File Tool
Create a new file in a GitLab repository.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch to commit to |
commit_message * | string | Commit message |
content * | string | File content (text or base64 depending on encoding) |
file_path * | string | Path for the new file |
project_id * | string | Project ID or path |
encoding | string | Content encoding - "text" or "base64" (default: text) |
update_file_tool Update File Tool
Update an existing file in a GitLab repository.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch to commit to |
commit_message * | string | Commit message |
content * | string | New file content |
file_path * | string | Path to the file |
project_id * | string | Project ID or path |
encoding | string | Content encoding - "text" or "base64" (default: text) |
create_branch_tool Create Branch Tool
Create a new branch in a GitLab repository.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Name of the new branch |
project_id * | string | Project ID or path |
ref * | string | Branch name or commit SHA to create from |
delete_branch_tool Delete Branch Tool
Delete a branch from a GitLab repository.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch name to delete |
project_id * | string | Project ID or path |
compare_branches_tool Compare Branches Tool
Compare two branches, tags, or commits.
| Parameter | Type | Description |
|---|---|---|
from_ref * | string | Base branch/tag/commit |
project_id * | string | Project ID or path |
to_ref * | string | Head branch/tag/commit |
straight | boolean | Use straight comparison instead of merge-base (default: false) |
list_labels_tool List Labels Tool
List labels for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Filter labels by keyword |
create_label_tool Create Label Tool
Create a new label in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
color * | string | Color hex code (e.g., "#FF0000") or named color |
name * | string | Label name |
project_id * | string | Project ID or path |
description | Label description | |
priority | Label priority (lower = higher priority) |
update_label_tool Update Label Tool
Update an existing label in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
label_id * | integer | Label ID |
project_id * | string | Project ID or path |
color | New color hex code | |
description | New description | |
new_name | New label name | |
priority | New priority |
delete_label_tool Delete Label Tool
Delete a label from a GitLab project.
| Parameter | Type | Description |
|---|---|---|
label_id * | integer | Label ID |
project_id * | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Only return active users (default: true) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Search for users by name or email | |
username | Filter by exact username |
get_user_tool Get User Tool
Get a specific GitLab user by ID.
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | User ID |
list_releases_tool List Releases Tool
List releases for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
order_by | string | Order by field (released_at, created_at) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
sort | string | Sort direction (asc, desc) |
get_release_tool Get Release Tool
Get a single release by tag name.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
tag_name * | string | Tag associated with the release |
create_release_tool Create Release Tool
Create a new release for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
tag_name * | string | Tag name for the release (created if it doesn't exist) |
description | Release notes (Markdown) | |
name | Release title (defaults to tag_name) | |
ref | Commit SHA or branch to tag from (required if tag doesn't exist) | |
released_at | Release date (ISO 8601, default: now) |
list_milestones_tool List Milestones Tool
List milestones for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
search | Filter by title | |
state | string | Filter by state (active, closed, all) |
create_milestone_tool Create Milestone Tool
Create a new milestone in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
title * | string | Milestone title |
description | Milestone description (Markdown) | |
due_date | Due date (YYYY-MM-DD) | |
start_date | Start date (YYYY-MM-DD) |
update_milestone_tool Update Milestone Tool
Update an existing milestone.
| Parameter | Type | Description |
|---|---|---|
milestone_id * | integer | Milestone ID |
project_id * | string | Project ID or path |
description | New description (Markdown) | |
due_date | New due date (YYYY-MM-DD) | |
start_date | New start date (YYYY-MM-DD) | |
state_event | State transition (close, activate) | |
title | New title |
list_wiki_pages_tool List Wiki Pages Tool
List wiki pages for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
with_content | boolean | Include page content in response (default: false) |
get_wiki_page_tool Get Wiki Page Tool
Get a single wiki page by slug.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
slug * | string | URL slug of the wiki page |
create_wiki_page_tool Create Wiki Page Tool
Create a new wiki page in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
content * | string | Page content |
project_id * | string | Project ID or path |
title * | string | Page title |
format | string | Content format - markdown, rdoc, asciidoc, or org (default: markdown) |
list_snippets_tool List Snippets Tool
List snippets for a GitLab project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID or path |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
create_snippet_tool Create Snippet Tool
Create a new snippet in a GitLab project.
| Parameter | Type | Description |
|---|---|---|
content * | string | Snippet content |
file_name * | string | File name for the snippet (e.g., "example.py") |
project_id * | string | Project ID or path |
title * | string | Snippet title |
description | Snippet description (Markdown) | |
visibility | string | Visibility level (private, internal, public) |