Stay Updated
Subscribe to our newsletter for the latest news and updates about MCP servers
Subscribe to our newsletter for the latest news and updates about MCP servers
MCP Server for GitLab API integration, enabling repository management, issue tracking, and file operations.
GitLab MCP Server provides a standardized interface between LLMs and GitLab's robust API ecosystem. This reference implementation allows AI systems to manage repositories, handle files, create issues, and perform other GitLab operations through a structured protocol. The server maintains Git best practices while offering automated workflows to simplify complex operations, making it ideal for developers looking to integrate GitLab functionality into AI-assisted workflows.
create_or_update_file
: Creates or updates files with proper Git commitspush_files
: Pushes multiple files in a single commitsearch_repositories
: Searches GitLab projects with paginationcreate_repository
: Creates new GitLab projects with customizable settingsget_file_contents
: Retrieves file or directory contentscreate_issue
: Creates project issues with configurable propertiescreate_merge_request
: Initiates merge requests between branchesfork_repository
: Forks existing repositories to specified namespacescreate_branch
: Creates new branches from existing references3/5 - Moderate complexity requiring GitLab token setup and configuration choices.
api
, read_repository
, write_repository
)Add to your claude_desktop_config.json
:
{
"mcpServers": {
"gitlab": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"GITLAB_PERSONAL_ACCESS_TOKEN",
"-e",
"GITLAB_API_URL",
"mcp/gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}
To build a Docker image:
docker build -t mcp/gitlab -f src/gitlab/Dockerfile .
MIT License