Gitlab MCP Server

Improved implementation of Anthropic's modelcontextprotocol/servers Gitlab MCP server

Local serverstdioTypeScript

What is the Gitlab MCP Server?

Improved implementation of Anthropic's modelcontextprotocol/servers Gitlab MCP server

The short version

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 —
  • Create new repositories (with improved group namespace support)
  • Update project settings (including visibility)
  • Delete projects
  • Fork projects
  • Search for repositories

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
create_repositoryCreate a new GitLab project
update_projectUpdate project settings including visibility
delete_projectDelete a GitLab project
search_repositoriesSearch for GitLab projects
get_file_contentsGet file or directory contents
create_or_update_fileCreate or update a single file
push_filesCommit multiple files at once
create_branchCreate a new branch
fork_repositoryFork a project
create_issueCreate a new issue
create_merge_requestCreate a new merge request
get_issuesGet issues from a project with filtering options
get_issueGet a single issue with details
get_issue_time_statsGet time tracking statistics for an issue

Configuration

VariableDescriptionRequired
GITLAB_PERSONAL_ACCESS_TOKENCredential the server authenticates with.Yes
GITLAB_API_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Gitlab to create repository.”
  • “Use Gitlab to update project.”
  • “Use Gitlab to delete project.”

Frequently asked questions

It adds comprehensive endpoints for delete/update projects, time tracking, notes, labels, milestones, user assignment, and issue linking, with fixed namespace_id handling and enhanced error messages.