
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets AI assistants manage GitLab projects, issues, merge requests, files, labels, milestones, and time tracking through a set of exposed tools.
GitLab MCP Server is cataloged as an MCP server attributed to piatra-automation. An MCP server that lets AI assistants manage GitLab projects, issues, merge requests, files, labels, milestones, and time tracking through a set of exposed tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for GitLab MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. A custom GitLab API URL can be set through GITLAB_API_URL; otherwise it defaults to gitlab.com's API.
It adds comprehensive API endpoints such as project deletion and updates, time tracking, notes, label and milestone management, user assignment, and issue relationships.
README.md · 0d742783c386 · Fetched 2026-11-13 10:48:16 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server for interacting with GitLab repositories with enhanced functionality.
This MCP server allows AI assistants (like Claude) to interact with GitLab repositories, manage projects, issues, merge requests, and more. It extends the original implementation with additional endpoints and improved error handling.
Project Management
File Operations
Repository Management
Issues and Time Tracking
Notes (Comments)
Label Management
Milestone Management
User Assignment
Issue Relationships
npm install -g @piatra-open-source/gitlab-mcp-server
npm install @piatra-open-source/gitlab-mcp-server
You need to set the following environment variables:
GITLAB_PERSONAL_ACCESS_TOKEN: Your GitLab personal access token with appropriate permissionsGITLAB_API_URL (optional): Custom GitLab API URL if not using gitlab.com (defaults to 'https://gitlab.com/api/v4')export GITLAB_PERSONAL_ACCESS_TOKEN='your_token_here'
gitlab-mcp-server
Or in your application:
import { execFileSync } from 'child_process';
import { join } from 'path';
// Path to the GitLab MCP Server binary
const serverPath = join(require.resolve('@piatra-open-source/gitlab-mcp-server'), '..', '..', 'bin', 'gitlab-mcp-server');
// Start the server
const childProcess = execFileSync(serverPath, {
env: {
...process.env,
GITLAB_PERSONAL_ACCESS_TOKEN: 'your_token_here'
}
});
| Function Name | Description |
|---|---|
create_repository | Create a new GitLab project |
update_project | Update project settings including visibility |
delete_project | Delete a GitLab project |
search_repositories | Search for GitLab projects |
get_file_contents | Get file or directory contents |
create_or_update_file | Create or update a single file |
push_files | Commit multiple files at once |
create_branch | Create a new branch |
fork_repository | Fork a project |
create_issue | Create a new issue |
create_merge_request | Create a new merge request |
get_issues | Get issues from a project with filtering options |
get_issue | Get a single issue with details |
get_issue_time_stats | Get time tracking statistics for an issue |
set_time_estimate | Set time estimate for an issue |
reset_time_estimate | Reset time estimate for an issue |
add_spent_time | Add spent time to an issue |
reset_spent_time | Reset spent time for an issue |
get_notes | Get comments/notes for an issue |
create_note | Create a comment on an issue |
update_note | Update an existing comment |
delete_note | Delete a comment from an issue |
update_issue | Update various issue attributes |
close_issue | Close an issue |
reopen_issue | Reopen a closed issue |
get_project_labels | Retrieve all labels for a project |
create_project_label | Create a new label for a project |
update_project_label | Update an existing label |
delete_project_label | Delete a label from a project |
add_labels_to_issue | Add specific labels to an issue |
remove_labels_from_issue | Remove specific labels from an issue |
get_project_milestones | Retrieve all milestones for a project |
create_project_milestone | Create a new milestone for a project |
assign_issue | Assign users to an issue |
unassign_issue | Remove all assignees from an issue |
create_issue_link | Create a link between two issues |
delete_issue_link | Remove a link between issues |
// Example: Create a repository in a specific group
const repo = await claude.callMcp("gitlab", "create_repository", {
name: "my-new-project",
description: "A new project created via MCP",
visibility: "private",
initialize_with_readme: true,
namespace_id: "12345678" // Group ID where the project should be created
});
// Example: Change project visibility
const updatedRepo = await claude.callMcp("gitlab", "update_project", {
project_id: "12345678",
visibility: "private"
});
// Example: Delete a project
const deleteResult = await claude.callMcp("gitlab", "delete_project", {
project_id: "12345678"
});
// Example: Get all issues with time tracking stats
const issues = await claude.callMcp("gitlab", "get_issues", {
project_id: "12345678",
state: "opened",
with_time_stats: true
});
// Example: Add spent time to an issue
const timeStats = await claude.callMcp("gitlab", "add_spent_time", {
project_id: "12345678",
issue_iid: 42,
duration: "1h 30m" // Format: Xh Ym
});
// Example: Get all comments on an issue
const notes = await claude.callMcp("gitlab", "get_notes", {
project_id: "12345678",
issue_iid: 42,
sort: "desc",
order_by: "created_at"
});
// Example: Update an issue
const updatedIssue = await claude.callMcp("gitlab", "update_issue", {
project_id: "12345678",
issue_iid: 42,
title: "Updated issue title",
description: "This is the updated description"
});
// Example: Create a label
const newLabel = await claude.callMcp("gitlab", "create_project_label", {
project_id: "12345678",
name: "enhancement",
color: "#428BCA",
description: "Enhancement requests"
});
// Example: Add labels to an issue
const issueWithLabels = await claude.callMcp("gitlab", "add_labels_to_issue", {
project_id: "12345678",
issue_iid: 42,
labels: ["bug", "enhancement"]
});
// Example: Create a milestone
const milestone = await claude.callMcp("gitlab", "create_project_milestone", {
project_id: "12345678",
title: "v1.0 Release",
description: "First stable release",
due_date: "2025-06-30"
});
// Example: Assign users to an issue
const assignedIssue = await claude.callMcp("gitlab", "assign_issue", {
project_id: "12345678",
issue_iid: 42,
assignee_ids: [123, 456]
});
// Example: Create a link between issues
const issueLink = await claude.callMcp("gitlab", "create_issue_link", {
project_id: "12345678",
issue_iid: 42,
target_project_id: "12345678",
target_issue_iid: 43,
link_type: "relates_to"
});
This implementation includes several enhancements over the original MCP GitLab server:
Comprehensive API endpoints:
delete_project: Properly delete GitLab projectsupdate_project: Update project settings including visibilityget_issues & get_issue: Retrieve issues with filtering optionsFixed namespace_id handling:
Enhanced error handling:
Updated documentation:
If you encounter the error GitLab API error (400): Bad Request - file_path should be a valid file path, there are several possible causes:
File Path Format: GitLab expects file paths to be valid and properly formatted. Make sure your file path:
*, ?, [, ] etc./) not backslashes (\)Case Sensitivity: GitLab file paths are case-sensitive. Ensure your paths match the exact case of existing files.
Repository Structure: The file path must exist in the repository structure for updates, or be valid for new files.
Special Characters: Avoid using special characters in file names when possible. If you need to use characters like #, ?, [, ], be aware that they might require special handling.
GITLAB_PERSONAL_ACCESS_TOKEN has the necessary permissions.MIT
This project is an enhanced version of the original Model Context Protocol GitLab server by Anthropic, modified and extended under the MIT license.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for GitLab MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/gitlab-mcp-server-piatra-automation)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.