
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
@red-huang/mcp-gitlab
Advanced tools
GitLab MCP(Model Context Protocol) Server. Includes bug fixes and improvements over the original GitLab MCP server.
When using with the Claude App, you need to set up your API key and URLs directly.
{
"mcpServers": {
"GitLab communication server": {
"command": "npx",
"args": ["-y", "@zereight/mcp-gitlab"],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token",
"GITLAB_API_URL": "your_gitlab_api_url"
}
}
}
}
When using with Cursor, you can set up environment variables and run the server as follows:
env GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token GITLAB_API_URL=your_gitlab_api_url npx @zereight/mcp-gitlab
GITLAB_PERSONAL_ACCESS_TOKEN
: Your GitLab personal access token.GITLAB_API_URL
: Your GitLab API URL. (Default: https://gitlab.com/api/v4
)create_or_update_file
project_id
(string): Project ID or namespace/project_pathfile_path
(string): Path to create/update the filecontent
(string): File contentcommit_message
(string): Commit messagebranch
(string): Branch to create/update the file inprevious_path
(optional string): Previous file path when renaming a filepush_files
project_id
(string): Project ID or namespace/project_pathbranch
(string): Branch to push tofiles
(array): Array of files to push, each with file_path
and content
propertiescommit_message
(string): Commit messagesearch_repositories
search
(string): Search querypage
(optional number): Page number (default: 1)per_page
(optional number): Results per page (default: 20, max: 100)create_repository
name
(string): Project namedescription
(optional string): Project descriptionvisibility
(optional string): Project visibility level (public, private, internal)initialize_with_readme
(optional boolean): Initialize with READMEget_file_contents
project_id
(string): Project ID or namespace/project_pathfile_path
(string): Path to the file/directoryref
(optional string): Branch, tag, or commit SHA (default: default branch)create_issue
project_id
(string): Project ID or namespace/project_pathtitle
(string): Issue titledescription
(string): Issue descriptionassignee_ids
(optional number[]): Array of assignee IDsmilestone_id
(optional number): Milestone IDlabels
(optional string[]): Array of labelscreate_merge_request
project_id
(string): Project ID or namespace/project_pathtitle
(string): Merge request titledescription
(string): Merge request descriptionsource_branch
(string): Branch with changestarget_branch
(string): Branch to merge intoallow_collaboration
(optional boolean): Allow collaborators to push commits to the source branchdraft
(optional boolean): Create as a draft merge requestfork_repository
project_id
(string): Project ID or namespace/project_path to forknamespace
(optional string): Namespace to fork into (default: user namespace)create_branch
project_id
(string): Project ID or namespace/project_pathname
(string): New branch nameref
(optional string): Ref to create the branch from (branch, tag, commit SHA, default: default branch)get_merge_request
project_id
(string): Project ID or namespace/project_pathmerge_request_iid
(number): Merge request IIDget_merge_request_diffs
project_id
(string): Project ID or namespace/project_pathmerge_request_iid
(number): Merge request IIDview
(optional string): Diff view type ('inline' or 'parallel')update_merge_request
project_id
(string): Project ID or namespace/project_pathmerge_request_iid
(number): Merge request IIDtitle
(optional string): New titledescription
(string): New descriptiontarget_branch
(optional string): New target branchstate_event
(optional string): Merge request state change event ('close', 'reopen')remove_source_branch
(optional boolean): Remove source branch after mergeallow_collaboration
(optional boolean): Allow collaborators to push commits to the source branchcreate_note
project_id
(string): Project ID or namespace/project_pathnoteable_type
(string): Type of noteable ("issue" or "merge_request")noteable_iid
(number): IID of the issue or merge requestbody
(string): Note content| list_projects
| List accessible projects with rich filtering options š | ⢠Search/filtering: search
, owned
, membership
, archived
, visibility
⢠Features filtering: with_issues_enabled
, with_merge_requests_enabled
⢠Sorting: order_by
, sort
⢠Access control: min_access_level
⢠Pagination: page
, per_page
, simple
| Array of projects |
| list_labels
| List all labels for a project with filtering options š·ļø | ⢠project_id
(string): Project ID or path
⢠with_counts
(optional): Include issue and merge request counts
⢠include_ancestor_groups
(optional): Include ancestor groups
⢠search
(optional): Filter labels by keyword | Array of labels |
| get_label
| Get a single label from a project š·ļø | ⢠project_id
(string): Project ID or path
⢠label_id
(number/string): Label ID or name
⢠include_ancestor_groups
(optional): Include ancestor groups | Label details |
| create_label
| Create a new label in a project š·ļøā | ⢠project_id
(string): Project ID or path
⢠name
(string): Label name
⢠color
(string): Color in hex format (e.g., "#FF0000")
⢠description
(optional): Label description
⢠priority
(optional): Label priority | Created label details |
| update_label
| Update an existing label in a project š·ļøāļø | ⢠project_id
(string): Project ID or path
⢠label_id
(number/string): Label ID or name
⢠new_name
(optional): New label name
⢠color
(optional): New color in hex format
⢠description
(optional): New description
⢠priority
(optional): New priority | Updated label details |
| delete_label
| Delete a label from a project š·ļøā | ⢠project_id
(string): Project ID or path
⢠label_id
(number/string): Label ID or name | Success message |
Before running the server, you need to set the following environment variables:
GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token
GITLAB_API_URL=your_gitlab_api_url # Default: https://gitlab.com/api/v4
MIT License
FAQs
MCP server for using the GitLab API
We found that @red-huang/mcp-gitlab demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.