A comprehensive GitLab API wrapper that exposes 84 tools covering the full development lifecycle. You get project management, merge request workflows with inline code review and multi-line discussion threads, CI/CD pipeline control, approval rule configuration at both project and MR level, and CI/CD variable management for projects and groups. Supports both GitLab.com and self-hosted instances without requiring GitLab Duo or Premium tiers. Works in read-only mode if you want to lock down write operations. Built on FastMCP with clean Pydantic models. Particularly useful for teams managing complex approval workflows or automating pipeline operations across multiple projects, since it handles everything from creating commits with file actions to sequencing merge operations and retrying failed jobs.
Public tool metadata for what this MCP can expose to an agent.
GITLAB_ARCHIVE_PROJECTTool to archive a project. Use when you need to mark a project read-only after finishing active development. Call after confirming no further changes are required.1 paramsTool to archive a project. Use when you need to mark a project read-only after finishing active development. Call after confirming no further changes are required.
idintegerGITLAB_CREATE_GROUPTool to create a new group in GitLab. Use when you need to establish a new group for projects or collaboration.26 paramsTool to create a new group in GitLab. Use when you need to establish a new group for projects or collaboration.
namestringpathstringavatarstringparent_idintegervisibilitystringprivate · internal · publicdescriptionstringlfs_enabledbooleandefault_branchstringemails_enabledbooleanmembership_lockbooleanorganization_idintegerduo_availabilitystringdefault_on · default_off · never_onmentions_disabledbooleanwiki_access_levelstringdisabled · private · enabledauto_devops_enabledbooleanshare_with_group_lockbooleanproject_creation_levelstringadministrator · noone · maintainer · developerrequest_access_enabledbooleansubgroup_creation_levelstringowner · maintainertwo_factor_grace_periodintegerenabled_git_access_protocolstringssh · http · allexperiment_features_enabledbooleanshared_runners_minutes_limitintegerrequire_two_factor_authenticationbooleandefault_branch_protection_defaultsobjectextra_shared_runners_minutes_limitintegerGITLAB_CREATE_PROJECTTool to create a new project in GitLab. Implements POST /projects endpoint.12 paramsTool to create a new project in GitLab. Implements POST /projects endpoint.
namestringpathstringvisibilitystringprivate · internal · publicdescriptionstringnamespace_idintegerwiki_enabledbooleandefault_branchstringissues_enabledbooleansnippets_enabledbooleanbuild_git_strategystringmerge_requests_enabledbooleancontainer_registry_enabledbooleanGITLAB_CREATE_PROJECT_ISSUETool to create a new issue in a GitLab project. Use when you need to report a bug, request a feature, or track a task within a specific project.17 paramsTool to create a new issue in a GitLab project. Use when you need to report a bug, request a feature, or track a task within a specific project.
idstringiidintegertitlestringlabelsstringweightintegerepic_idintegerdue_datestringepic_iidintegercreated_atstringissue_typestringissue · incident · test_case · taskdefault: issueassignee_idintegerdescriptionstringassignee_idsarrayconfidentialbooleanmilestone_idintegerdiscussion_to_resolvestringmerge_request_to_resolve_discussions_ofintegerGITLAB_CREATE_REPOSITORY_BRANCHTool to create a new branch in a project. Use when you need to create a new branch from an existing branch or a specific commit in a GitLab project.3 paramsTool to create a new branch in a project. Use when you need to create a new branch from an existing branch or a specific commit in a GitLab project.
refstringproject_idintegerbranch_namestringGITLAB_DELETE_PROJECTTool to delete a GitLab project by its ID. Use when you need to remove a project, either by marking it for later deletion or deleting it immediately.3 paramsTool to delete a GitLab project by its ID. Use when you need to remove a project, either by marking it for later deletion or deleting it immediately.
idintegerfull_pathstringpermanently_removebooleanGITLAB_DOWNLOAD_PROJECT_AVATARTool to download a project’s avatar image. Use when you need the raw avatar bytes after confirming the project exists.1 paramsTool to download a project’s avatar image. Use when you need the raw avatar bytes after confirming the project exists.
idstringGITLAB_ERASE_JOBTool to erase the content of a specified job within a project. Use when you need to remove job artifacts and logs.2 paramsTool to erase the content of a specified job within a project. Use when you need to remove job artifacts and logs.
job_idintegerproject_idintegerGITLAB_GET_COMMIT_REFSTool to get all references (branches or tags) a commit is pushed to. Use when you need to find out which branches or tags a specific commit belongs to in a GitLab project.3 paramsTool to get all references (branches or tags) a commit is pushed to. Use when you need to find out which branches or tags a specific commit belongs to in a GitLab project.
shastringref_typestringbranch · tag · alldefault: allproject_idintegerGITLAB_GET_COMMIT_SEQUENCETool to get the sequence number of a commit in a project by following parent links from the given commit. Use when you need to determine the order of a commit in the project's history.3 paramsTool to get the sequence number of a commit in a project by following parent links from the given commit. Use when you need to determine the order of a commit in the project's history.
shastringproject_idintegerfirst_parentbooleanGITLAB_GET_GROUPTool to retrieve information about a specific group by its ID. Use when you need to get details of a GitLab group.3 paramsTool to retrieve information about a specific group by its ID. Use when you need to get details of a GitLab group.
idintegerwith_projectsbooleanwith_custom_attributesbooleanGITLAB_GET_GROUP_MEMBERTool to retrieve details for a specific group member. Use when you need to fetch membership information for a user in a group after you know both group ID and user ID.2 paramsTool to retrieve details for a specific group member. Use when you need to fetch membership information for a user in a group after you know both group ID and user ID.
idintegeruser_idintegerGITLAB_GET_GROUPSGet Groups13 paramsGet Groups
pageintegersortstringasc · descownedbooleansearchstringorder_bystringid · name · path · created_at · updated_atper_pageintegerstatisticsbooleanall_availablebooleanskip_groups[]arraywith_projectsbooleanwith_two_factorbooleanmin_access_levelintegerwith_custom_attributesbooleanGITLAB_GET_JOB_DETAILSTool to retrieve details of a single job by its ID within a specified project. Use this when you need to fetch specific information about a particular CI/CD job.2 paramsTool to retrieve details of a single job by its ID within a specified project. Use this when you need to fetch specific information about a particular CI/CD job.
job_idintegerproject_idintegerGITLAB_GET_MERGE_REQUEST_NOTESTool to fetch comments on a merge request. Use when you need to retrieve all notes for a specific merge request.4 paramsTool to fetch comments on a merge request. Use when you need to retrieve all notes for a specific merge request.
idintegerpageintegerper_pageintegermerge_request_iidintegerGITLAB_GET_PROJECTTool to get a single project by ID or URL-encoded path.1 paramsTool to get a single project by ID or URL-encoded path.
idintegerGITLAB_GET_PROJECT_LANGUAGESTool to list programming languages used in a project with percentages. Use when you need the project language breakdown.1 paramsTool to list programming languages used in a project with percentages. Use when you need the project language breakdown.
idintegerGITLAB_GET_PROJECT_MEMBERTool to retrieve details for a specific project member. Use after confirming project and user IDs to fetch membership information for a project member.2 paramsTool to retrieve details for a specific project member. Use after confirming project and user IDs to fetch membership information for a project member.
idintegeruser_idintegerGITLAB_GET_PROJECT_MEMBER_ALLTool to retrieve details for a specific project member (including inherited and invited members). Use when you need the effective membership info (including invitations and inheritance).2 paramsTool to retrieve details for a specific project member (including inherited and invited members). Use when you need the effective membership info (including invitations and inheritance).
idintegeruser_idintegerGITLAB_GET_PROJECT_MERGE_REQUEST_COMMITSTool to get commits of a merge request. Use when you need to retrieve all commits associated with a specific merge request.2 paramsTool to get commits of a merge request. Use when you need to retrieve all commits associated with a specific merge request.
idintegermerge_request_iidintegerGITLAB_GET_PROJECT_MERGE_REQUESTSTool to retrieve a list of merge requests for a specific project. Use when you need to get all merge requests associated with a project, with options to filter by state, labels, milestones, and other attributes.36 paramsTool to retrieve a list of merge requests for a specific project. Use when you need to get all merge requests associated with a project, with options to filter by state, labels, milestones, and other attributes.
idintegerwipstringpageintegersortstringviewstringscopestringstatestringiids[]arraylabelsstringsearchstringapprovedstringorder_bystringper_pageintegerauthor_idintegermilestonestringnot_filterobjectassignee_idintegerenvironmentstringreviewer_idintegerapprover_idsarraycreated_afterstringmerge_user_idintegersource_branchstringtarget_branchstringupdated_afterstringcreated_beforestringdeployed_afterstringupdated_beforestringapproved_by_idsarrayauthor_usernamestringdeployed_beforestringmy_reaction_emojistringreviewer_usernamestringmerge_user_usernamestringwith_labels_detailsbooleanwith_merge_status_recheckbooleanGITLAB_GET_PROJECTSTool to list all projects accessible to the authenticated user. Supports filtering.19 paramsTool to list all projects accessible to the authenticated user. Supports filtering.
pageintegersortstringasc · descownedbooleansearchstringsimplebooleanstarredbooleanarchivedbooleanid_afterintegerorder_bystringid · name · path · created_at · updated_at · star_countper_pageintegerid_beforeintegermembershipbooleanstatisticsbooleanvisibilitystringprivate · internal · publicmin_access_levelintegerwith_issues_enabledbooleanwith_custom_attributesbooleanwith_programming_languagestringwith_merge_requests_enabledbooleanGITLAB_GET_PROJECTS_ID_MERGE_REQUESTS_IID_DIFFSTool to list all diff versions of a merge request. Use when you need to inspect changes across different diff versions after creating or updating a merge request.2 paramsTool to list all diff versions of a merge request. Use when you need to inspect changes across different diff versions after creating or updating a merge request.
idintegermerge_request_iidintegerGITLAB_GET_REPOSITORY_BRANCHTool to retrieve information about a specific branch in a project. Use when you need to get details for a single branch.2 paramsTool to retrieve information about a specific branch in a project. Use when you need to get details for a single branch.
project_idintegerbranch_namestringGITLAB_GET_REPOSITORY_BRANCHESRetrieves a list of repository branches for a project. Use this when you need to get all branches or search for specific branches within a GitLab project.3 paramsRetrieves a list of repository branches for a project. Use this when you need to get all branches or search for specific branches within a GitLab project.
regexstringsearchstringproject_idintegerGITLAB_GET_SINGLE_COMMITTool to get a specific commit identified by the commit hash or name of a branch or tag. Use this when you need to retrieve detailed information about a single commit in a GitLab project repository.3 paramsTool to get a specific commit identified by the commit hash or name of a branch or tag. Use this when you need to retrieve detailed information about a single commit in a GitLab project repository.
idintegershastringstatsbooleanGITLAB_GET_SINGLE_PIPELINETool to retrieve details of a single pipeline by its ID within a specified project. Use when you need to get information about a specific CI/CD pipeline.2 paramsTool to retrieve details of a single pipeline by its ID within a specified project. Use when you need to get information about a specific CI/CD pipeline.
project_idintegerpipeline_idintegerGITLAB_GET_USERTool to retrieve information about a specific user by their ID. Use when you need to fetch details for a single GitLab user.1 paramsTool to retrieve information about a specific user by their ID. Use when you need to fetch details for a single GitLab user.
idintegerGITLAB_GET_USER_PREFERENCESTool to get the current user's preferences. Use when you need to retrieve the user's diff display and CI identity JWT settings after authentication.Tool to get the current user's preferences. Use when you need to retrieve the user's diff display and CI identity JWT settings after authentication.
No parameter schema in public metadata yet.
GITLAB_GET_USERSTool to retrieve a list of users from GitLab. Use this when you need to find user information, search for specific users, or filter users based on various criteria like activity status or creation date.24 paramsTool to retrieve a list of users from GitLab. Use this when you need to find user information, search for specific users, or filter users based on various criteria like activity status or creation date.
pageintegersortstringasc · descactivebooleanadminsbooleanhumansbooleansearchstringblockedbooleanauditorsbooleanexternalbooleanorder_bystringid · name · username · created_at · updated_atper_pageintegerproviderstringusernamestringskip_ldapbooleanextern_uidstringtwo_factorstringenabled · disabledcreated_afterstringcreated_beforestringexclude_activebooleanexclude_humansbooleanexclude_externalbooleanexclude_internalbooleanwithout_projectsbooleanwithout_project_botsbooleanGITLAB_GET_USERS_ID_STATUSTool to get a user's status by ID. Use when you need to retrieve a GitLab user's current status message, emoji, and availability after identifying their user ID.1 paramsTool to get a user's status by ID. Use when you need to retrieve a GitLab user's current status message, emoji, and availability after identifying their user ID.
user_idintegerGITLAB_GET_USER_STATUSTool to get the current user's status. Use when displaying or verifying the authenticated user's GitLab status after login.Tool to get the current user's status. Use when displaying or verifying the authenticated user's GitLab status after login.
No parameter schema in public metadata yet.
GITLAB_GET_USER_SUPPORT_PINTool to get details of the current user's Support PIN. Use when you need to retrieve the active support PIN and its expiration for the authenticated user.Tool to get details of the current user's Support PIN. Use when you need to retrieve the active support PIN and its expiration for the authenticated user.
No parameter schema in public metadata yet.
GITLAB_IMPORT_PROJECT_MEMBERSTool to import members from one project to another. Use when migrating members between projects.2 paramsTool to import members from one project to another. Use when migrating members between projects.
idstringproject_idstringGITLAB_LIST_ALL_GROUP_MEMBERSTool to list all members of a group including direct, inherited, and invited members. Use when you need a comprehensive membership list beyond direct members.3 paramsTool to list all members of a group including direct, inherited, and invited members. Use when you need a comprehensive membership list beyond direct members.
idintegerpageintegerper_pageintegerGITLAB_LIST_ALL_PROJECT_MEMBERSTool to list all members of a project (direct, inherited, invited). Use when you need the effective membership list including inherited and invited members.7 paramsTool to list all members of a project (direct, inherited, invited). Use when you need the effective membership list including inherited and invited members.
idintegerpageintegerquerystringstatestringawaiting · activeper_pageintegeruser_idsarrayshow_seat_infobooleanGITLAB_LIST_BILLABLE_GROUP_MEMBERSTool to list billable members of a top-level group (including its subgroups and projects). Use when generating billing reports; requires Owner role on the group.5 paramsTool to list billable members of a top-level group (including its subgroups and projects). Use when generating billing reports; requires Owner role on the group.
idintegerpageintegersortstringaccess_level_asc · access_level_desc · last_joined · name_asc · name_desc · oldest_joinedsearchstringper_pageintegerGITLAB_LIST_GROUP_MEMBERSTool to list direct members of a group. Use when you need to retrieve or filter a group's direct membership.10 paramsTool to list direct members of a group. Use when you need to retrieve or filter a group's direct membership.
idintegerpageintegersortstringaccess_level_asc · access_level_descquerystringactivebooleanper_pageintegerrelationsarrayskip_usersarraytwo_factorstringenabled · disabledinclude_inheritedbooleanGITLAB_LIST_PENDING_GROUP_MEMBERSTool to list pending members of a group and its subgroups and projects. Use when you need to review users awaiting approval or invited without an account. Call after confirming the top-level group ID.3 paramsTool to list pending members of a group and its subgroups and projects. Use when you need to review users awaiting approval or invited without an account. Call after confirming the top-level group ID.
idintegerpageintegerper_pageintegerGITLAB_LIST_PIPELINE_JOBSTool to retrieve a list of jobs for a specified pipeline within a project. Use this when you need to inspect the status or details of jobs associated with a particular CI/CD pipeline.4 paramsTool to retrieve a list of jobs for a specified pipeline within a project. Use this when you need to inspect the status or details of jobs associated with a particular CI/CD pipeline.
idintegerscopestringcanceled · canceling · created · failed · manual · pendingpipeline_idintegerinclude_retriedbooleanGITLAB_LIST_PROJECT_GROUPSTool to list ancestor groups of a project. Use when you need to retrieve all groups a project belongs to or is shared with.8 paramsTool to list ancestor groups of a project. Use when you need to retrieve all groups a project belongs to or is shared with.
idintegerpageintegersearchstringper_pageintegerskip_groupsarraywith_sharedbooleanshared_visible_onlybooleanshared_min_access_levelintegerGITLAB_LIST_PROJECT_INVITED_GROUPSTool to list groups invited to a project. Use when auditing which groups have access to a project.3 paramsTool to list groups invited to a project. Use when auditing which groups have access to a project.
idintegerpageintegerper_pageintegerGITLAB_LIST_PROJECT_PIPELINESTool to retrieve a list of pipelines for a specified project. Use when you need to get information about CI/CD pipelines, such as their status, source, or creation/update times.17 paramsTool to retrieve a list of pipelines for a specified project. Use when you need to get information about CI/CD pipelines, such as their status, source, or creation/update times.
idintegerrefstringshastringnamestringpageintegersortstringasc · descdefault: descscopestringrunning · pending · finished · branches · tagssourcestringstatusstringcreated · waiting_for_resource · preparing · pending · running · successorder_bystringid · status · ref · updated_at · user_iddefault: idper_pageintegerusernamestringyaml_errorsbooleancreated_afterstringupdated_afterstringcreated_beforestringupdated_beforestringGITLAB_LIST_PROJECT_SHAREABLE_GROUPSTool to list groups that can be shared with a project. Use before sharing a project to fetch eligible groups.5 paramsTool to list groups that can be shared with a project. Use before sharing a project to fetch eligible groups.
idintegerpageintegersearchstringper_pageintegerskip_groupsarrayGITLAB_LIST_PROJECT_TAGSTool to retrieve a list of repository tags for a specified project. Use when you need to get all tags associated with a project in GitLab.6 paramsTool to retrieve a list of repository tags for a specified project. Use when you need to get all tags associated with a project in GitLab.
idintegerpageintegersortstringsearchstringorder_bystringper_pageintegerGITLAB_LIST_PROJECT_TRANSFER_LOCATIONSTool to list namespaces available for project transfer. Use when you need to determine which groups a project can be transferred into.2 paramsTool to list namespaces available for project transfer. Use when you need to determine which groups a project can be transferred into.
idintegersearchstringGITLAB_LIST_PROJECT_USERSTool to list users of a project. Use after you have a project ID and want to retrieve its users.3 paramsTool to list users of a project. Use after you have a project ID and want to retrieve its users.
idstringsearchstringskip_usersarrayGITLAB_LIST_REPOSITORY_COMMITSTool to get a list of repository commits in a project. Use when you need to retrieve commit history for a specific project, branch, or time range.11 paramsTool to get a list of repository commits in a project. Use when you need to retrieve commit history for a specific project, branch, or time range.
allbooleanpathstringorderstringdefault · toposincestringuntilstringauthorstringref_namestringtrailersbooleanproject_idintegerwith_statsbooleanfirst_parentbooleanGITLAB_LIST_USER_PROJECTSTool to list projects owned by a specific user. Use after obtaining target user identity to fetch owned projects.22 paramsTool to list projects owned by a specific user. Use after obtaining target user identity to fetch owned projects.
idintegerpageintegersortstringasc · descownedbooleansearchstringsimplebooleanstarredbooleanarchivedbooleanid_afterintegerorder_bystringid · name · path · created_at · updated_at · star_countper_pageintegerid_beforeintegermembershipbooleanstatisticsbooleanvisibilitystringprivate · internal · publicupdated_afterstringupdated_beforestringmin_access_levelintegerwith_issues_enabledbooleanwith_custom_attributesbooleanwith_programming_languagestringwith_merge_requests_enabledbooleanGITLAB_POST_USER_SUPPORT_PINTool to create a support PIN for your authenticated user. Use when GitLab Support requests a PIN to verify your identity.Tool to create a support PIN for your authenticated user. Use when GitLab Support requests a PIN to verify your identity.
No parameter schema in public metadata yet.
GITLAB_PUT_USER_PREFERENCESTool to update the current user's preferences. Use when adjusting default diff viewing and CI identity settings.3 paramsTool to update the current user's preferences. Use when adjusting default diff viewing and CI identity settings.
view_diffs_file_by_filebooleanshow_whitespace_in_diffsbooleanpass_user_identities_to_ci_jwtbooleanGITLAB_SET_USER_STATUSTool to set the current user's status. Use when you need to update availability or convey current mood on GitLab.3 paramsTool to set the current user's status. Use when you need to update availability or convey current mood on GitLab.
emojistringmessagestringclear_status_afterstring30_minutes · 3_hours · 8_hours · 1_day · 3_days · 7_daysGITLAB_SHARE_PROJECT_WITH_GROUPTool to share a project with a group. Use when you need to grant a group specific access level to a project.4 paramsTool to share a project with a group. Use when you need to grant a group specific access level to a project.
idintegergroup_idintegerexpires_atstringgroup_accessintegerGITLAB_START_PROJECT_HOUSEKEEPINGTool to start the housekeeping task for a project. Use when you need to trigger manual maintenance or pruning on a repository.2 paramsTool to start the housekeeping task for a project. Use when you need to trigger manual maintenance or pruning on a repository.
idintegertaskstringprune · eagermcp-gitlab is a Model Context Protocol (MCP) server for the GitLab REST API that provides 83 tools, 7 resources, and 6 prompts for AI assistants to manage projects, merge requests, pipelines, CI/CD variables, approvals, issues, code reviews, and more. Works with Claude Desktop, Claude Code, Cursor, Windsurf, VS Code Copilot, and any MCP-compatible client.
Supports GitLab.com and self-hosted GitLab instances (CE/EE). No GitLab Duo or Premium required.
Built with FastMCP, httpx, and Pydantic.
Install: uvx mcp-gitlab | PyPI | MCP Registry | Changelog
💡 Tip: For other AI assistants (Claude Code, Windsurf, IntelliJ, Gemini CLI), visit the GitLab MCP Installation Gateway.
Prerequisite: Install
uvfirst (required for alluvxinstall flows). Install uv.
claude mcp add gitlab -- uvx mcp-gitlab
Windsurf: Add to ~/.codeium/windsurf/mcp_config.json
IntelliJ: Add to Settings | Tools | MCP Servers
Note: The actual server config starts at
gitlabinside themcpServersobject.
{
"mcpServers": {
"gitlab": {
"command": "uvx",
"args": ["mcp-gitlab"],
"env": {
"GITLAB_URL": "https://gitlab.example.com",
"GITLAB_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx"
}
}
}
}
gemini mcp add -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx gitlab uvx mcp-gitlab
uv pip install mcp-gitlab
| Variable | Required | Default | Description |
|---|---|---|---|
GITLAB_URL | Yes | - | GitLab instance URL (e.g. https://gitlab.example.com) |
GITLAB_TOKEN | Yes | - | Authentication token (see below) |
GITLAB_READ_ONLY | No | false | Set to true to disable write operations |
GITLAB_TIMEOUT | No | 30 | Request timeout in seconds |
GITLAB_SSL_VERIFY | No | true | Set to false to skip SSL verification |
The server checks these environment variables in order — first match wins:
GITLAB_TOKENGITLAB_PATGITLAB_PERSONAL_ACCESS_TOKENGITLAB_API_TOKENThese accept any of the following token types:
| Token Type | Format | Use Case |
|---|---|---|
| Personal access token | glpat-xxx | User-level access with api scope |
| OAuth2 token | oauth-xxx | OAuth app integrations |
| CI job token | $CI_JOB_TOKEN | GitLab CI pipeline access |
| Client | Supported | Install Method |
|---|---|---|
| Claude Desktop | Yes | claude_desktop_config.json |
| Claude Code | Yes | claude mcp add |
| Cursor | Yes | One-click deeplink or .cursor/mcp.json |
| VS Code Copilot | Yes | One-click deeplink or .vscode/mcp.json |
| Windsurf | Yes | ~/.codeium/windsurf/mcp_config.json |
| Any MCP client | Yes | stdio or HTTP transport |
| Category | Count | Tools |
|---|---|---|
| Projects | 4 | get, create, delete, update merge settings |
| Project Approvals | 10 | get/update config, CRUD approval rules (project + MR) |
| Groups | 6 | list, get, share/unshare project, share/unshare group |
| Branches | 3 | list, create, delete |
| Commits | 4 | list, get (with diff), create, compare |
| Merge Requests | 16 | list, get, create, update, merge, merge-sequence, rebase, changes, approve, unapprove, get approvals, list reviewers, list pipelines, list commits, subscribe, unsubscribe |
| MR Notes | 6 | list, add, delete, update, award emoji, remove emoji |
| MR Discussions | 4 | list, create (inline + multi-line), reply, resolve |
| Pipelines | 5 | list, get (with jobs), create, retry, cancel |
| Jobs | 4 | retry, play, cancel, get log |
| Tags | 4 | list, get, create, delete |
| Releases | 5 | list, get, create, update, delete |
| CI/CD Variables | 8 | CRUD for project variables, CRUD for group variables |
| Issues | 5 | list, get, create, update, add comment |
| Tool | Description |
|---|---|
gitlab_get_project | Get project details |
gitlab_create_project | Create a new project |
gitlab_delete_project | Delete a project |
gitlab_update_project_merge_settings | Update merge settings |
| Tool | Description |
|---|---|
gitlab_get_project_approvals | Get approval config |
gitlab_update_project_approvals | Update approval settings |
gitlab_list_project_approval_rules | List approval rules |
gitlab_create_project_approval_rule | Create approval rule |
gitlab_update_project_approval_rule | Update approval rule |
gitlab_delete_project_approval_rule | Delete approval rule |
gitlab_list_mr_approval_rules | List MR approval rules |
gitlab_create_mr_approval_rule | Create MR approval rule |
gitlab_update_mr_approval_rule | Update MR approval rule |
gitlab_delete_mr_approval_rule | Delete MR approval rule |
| Tool | Description |
|---|---|
gitlab_list_groups | List groups |
gitlab_get_group | Get group details |
gitlab_share_project_with_group | Share project with group |
gitlab_unshare_project_with_group | Unshare project from group |
gitlab_share_group_with_group | Share group with group |
gitlab_unshare_group_with_group | Unshare group from group |
| Tool | Description |
|---|---|
gitlab_list_branches | List branches |
gitlab_create_branch | Create a branch |
gitlab_delete_branch | Delete a branch |
| Tool | Description |
|---|---|
gitlab_list_commits | List commits |
gitlab_get_commit | Get commit (with optional diff) |
gitlab_create_commit | Create commit with file actions |
gitlab_compare | Compare branches/tags/commits |
| Tool | Description |
|---|---|
gitlab_list_mrs | List merge requests |
gitlab_get_mr | Get MR details |
gitlab_create_mr | Create merge request |
gitlab_update_mr | Update merge request |
gitlab_merge_mr | Merge a merge request |
gitlab_merge_mr_sequence | Merge multiple MRs in order |
gitlab_rebase_mr | Rebase a merge request |
gitlab_mr_changes | Get MR file changes |
gitlab_approve_mr | Approve a merge request |
gitlab_unapprove_mr | Remove approval from a merge request |
gitlab_get_mr_approvals | Get MR approval state |
gitlab_list_mr_pipelines | List MR pipelines |
gitlab_list_mr_commits | List MR commits |
gitlab_subscribe_mr | Subscribe to MR notifications |
gitlab_unsubscribe_mr | Unsubscribe from MR notifications |
| Tool | Description |
|---|---|
gitlab_list_mr_notes | List MR comments |
gitlab_add_mr_note | Add comment to MR |
gitlab_delete_mr_note | Delete MR comment |
gitlab_update_mr_note | Update MR comment |
gitlab_award_emoji | Award emoji to note |
gitlab_remove_emoji | Remove emoji from note |
| Tool | Description |
|---|---|
gitlab_list_mr_discussions | List discussions |
gitlab_create_mr_discussion | Create discussion (inline + multi-line) |
gitlab_reply_to_discussion | Reply to discussion |
gitlab_resolve_discussion | Resolve/unresolve discussion |
| Tool | Description |
|---|---|
gitlab_list_pipelines | List pipelines |
gitlab_get_pipeline | Get pipeline (with optional jobs) |
gitlab_create_pipeline | Trigger pipeline |
gitlab_retry_pipeline | Retry failed jobs |
gitlab_cancel_pipeline | Cancel pipeline |
| Tool | Description |
|---|---|
gitlab_retry_job | Retry a job |
gitlab_play_job | Trigger manual job |
gitlab_cancel_job | Cancel a job |
gitlab_get_job_log | Get job log output |
| Tool | Description |
|---|---|
gitlab_list_tags | List tags |
gitlab_get_tag | Get tag details |
gitlab_create_tag | Create a tag |
gitlab_delete_tag | Delete a tag |
| Tool | Description |
|---|---|
gitlab_list_releases | List releases |
gitlab_get_release | Get release details |
gitlab_create_release | Create a release |
gitlab_update_release | Update a release |
gitlab_delete_release | Delete a release |
| Tool | Description |
|---|---|
gitlab_list_variables | List project variables |
gitlab_create_variable | Create project variable |
gitlab_update_variable | Update project variable |
gitlab_delete_variable | Delete project variable |
gitlab_list_group_variables | List group variables |
gitlab_create_group_variable | Create group variable |
gitlab_update_group_variable | Update group variable |
gitlab_delete_group_variable | Delete group variable |
| Tool | Description |
|---|---|
gitlab_list_issues | List issues |
gitlab_get_issue | Get issue details |
gitlab_create_issue | Create an issue |
gitlab_update_issue | Update an issue |
gitlab_add_issue_comment | Add comment to issue |
The server exposes curated workflow guides as MCP resources that clients can read on demand.
| URI | Name | Description |
|---|---|---|
resource://rules/gitlab-ci | GitLab CI/CD Pipeline Patterns | Stage design, job rules, caching, artifacts, needs DAG, multi-project pipelines |
resource://rules/git-workflow | Git Workflow Standards | Branch naming, trunk-based flow, merge vs rebase, protected branches |
resource://rules/mr-hygiene | Merge Request Best Practices | MR size, description templates, review checklists, thread resolution |
resource://rules/conventional-commits | Conventional Commits Spec | Commit types, scopes, breaking changes, changelog generation |
resource://guides/code-review | Code Review Standards | Review priorities, inline comments, approval workflows, nit vs blocker |
resource://guides/codeowners | GitLab CODEOWNERS Reference | Syntax, section owners, approval rules, pattern matching |
resource://guides/approval-workflow | Approval Workflow Guide | Approval types, project vs MR-level rules, SHA safety, merge readiness |
The server provides MCP prompts — reusable multi-tool workflow templates that clients can surface as slash commands.
| Prompt | Parameters | Workflow |
|---|---|---|
review_mr | project_id, mr_iid | Fetch MR → check pipeline → review changes → write discussion notes |
approve_mr | project_id, mr_iid | Check approvals → verify pipeline → review changes → approve or request changes |
diagnose_pipeline | project_id, pipeline_id | Fetch pipeline → identify failed jobs → get logs → suggest fix |
prepare_release | project_id, tag_name, ref | Compare commits since last tag → draft changelog → create tag + release |
setup_branch_protection | project_id | Review settings → configure merge method → set approval rules |
triage_issues | project_id, label | List open issues → categorize → prioritize → identify duplicates |
"Get details for project my-org/api-gateway"
→ gitlab_get_project(project_id="my-org/api-gateway")
"Create a feature branch from main"
→ gitlab_create_branch(project_id="123", branch_name="feat/login", ref="main")
"Delete all branches merged into main"
→ gitlab_list_branches(project_id="123") → filter merged → gitlab_delete_branch for each
"Open a merge request from feat/login to main"
→ gitlab_create_mr(project_id="123", source_branch="feat/login", target_branch="main", title="Add login")
"Review MR !42 — list changes and add inline comments"
→ gitlab_mr_changes(project_id="123", mr_iid=42)
→ gitlab_create_mr_discussion(project_id="123", mr_iid=42, body="nit: ...", new_path="src/auth.py", new_line=15)
"Merge MR !42 after resolving all threads"
→ gitlab_list_mr_discussions(project_id="123", mr_iid=42) → resolve unresolved
→ gitlab_merge_mr(project_id="123", mr_iid=42, squash=True)
"Show failed pipelines on main this week"
→ gitlab_list_pipelines(project_id="123", ref="main", status="failed")
"Retry a failed pipeline"
→ gitlab_retry_pipeline(project_id="123", pipeline_id=456)
"Get the build log for job 789"
→ gitlab_get_job_log(project_id="123", job_id=789, tail_lines=100)
"Create a bug report in project 123"
→ gitlab_create_issue(project_id="123", title="Login page 500 error", labels=["bug","P1"])
"Find open issues assigned to me"
→ gitlab_list_issues(project_id="123", state="opened", assignee_username="johndoe")
api scope grants full access; prefer read_api for read-only deployments.GITLAB_READ_ONLY=true to disable all write operations (create, update, delete, merge). Read-only mode is enforced server-side before any API call.GITLAB_SSL_VERIFY=true by default. Only disable for self-signed certificates in trusted networks.gitlab_list_variables and gitlab_list_group_variables automatically mask values of variables marked as masked in GitLab, returning ***MASKED*** instead of the actual value.readOnlyHint, destructiveHint, and idempotentHint for client-side permission prompts.GitLab enforces per-user rate limits (default: 2000 requests/minute for authenticated users). When rate-limited, tools return a 429 error with a hint to wait before retrying. Paginated endpoints default to 20 results per page; use per_page (max 100) to reduce the number of API calls.
| Operation | Minimum GitLab Role |
|---|---|
| Read projects, MRs, pipelines, issues | Reporter |
| Create branches, MRs, issues | Developer |
| Merge MRs, manage CI/CD variables | Maintainer |
| Delete projects, manage approval rules | Maintainer/Owner |
| Share projects/groups | Owner (or Admin) |
# Default: stdio transport (for MCP clients)
uvx mcp-gitlab
# HTTP transport (SSE or streamable-http)
uvx mcp-gitlab --transport sse --host 127.0.0.1 --port 8000
uvx mcp-gitlab --transport streamable-http --port 9000
# CLI overrides for config
uvx mcp-gitlab --gitlab-url https://gitlab.example.com --gitlab-token glpat-xxx --read-only
The server loads .env files from the working directory automatically via python-dotenv.
git clone https://github.com/vish288/mcp-gitlab.git
cd mcp-gitlab
uv sync --all-extras
uv run pytest --cov
uv run ruff check .
uv run ruff format --check .
MIT
GITLAB_TOKEN*secretGitLab personal access token (also accepts GITLAB_PAT or GITLAB_API_TOKEN)
GITLAB_URL*GitLab instance URL (e.g. https://gitlab.com)
GITLAB_READ_ONLYRestrict to read-only operations (true/false)
ray0907/git-mcp-server
cyanheads/git-mcp-server
io.github.b1ff/atlassian-dc-mcp-bitbucket
io.github.b1ff/atlassian-dc-mcp-jira
com.mcparmory/atlassian-jira
sirlordt/vscode-terminal-mcp