GitLab MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GITLAB_API_URLNoBase URL for GitLab APIhttps://gitlab.com/api/v4
GITLAB_PERSONAL_ACCESS_TOKENYesYour GitLab personal access token

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
create_or_update_fileCreate or update a single file in a GitLab project
search_repositoriesSearch for GitLab projects
create_repositoryCreate a new GitLab project
get_file_contentsGet the contents of a file or directory from a GitLab project
push_filesPush multiple files to a GitLab project in a single commit
create_issueCreate a new issue in a GitLab project
create_merge_requestCreate a new merge request in a GitLab project
fork_repositoryFork a GitLab project to your account or specified namespace
create_branchCreate a new branch in a GitLab project