GitLab MCP Server
Provides comprehensive GitLab repository management capabilities including creating, forking and deleting repositories, file operations, issue tracking, merge request handling, and branch/tag management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitLab MCP Servercreate a new issue in the backend-api repo about the authentication bug"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitLab MCP Server (in Python)
Model Context Protocol (MCP) server for GitLab integration, built on FastMCP.
This server is implemented in Python, with fastmcp.
Quick Start
Build the Docker image:
docker build -t gitlab-mcp-server .Related MCP server: GitLab MCP Server
Integration with Cursor/Claude
In MCP Settings -> Add MCP server, add this config:
{
"mcpServers": {
"gitlab": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"GITLAB_TOKEN",
"-e",
"GITLAB_URL",
"gitlab-mcp-server:latest"
],
"env": {
"GITLAB_TOKEN": "token",
"GITLAB_URL": "https://gitlab.com/"
}
}
}
}Note: Don't forget to replace GITLAB_TOKEN and GITLAB_URL values with your actual GitLab credentials and instance URL.
Getting GitLab Token
Log in to your GitLab account
Go to Settings -> Access Tokens
Create a new token:
Scopes: select the necessary permissions:
api- for API accessread_repository- for reading repositorieswrite_repository- for writing to repositories
Click "Create personal access token"
Copy the generated token (it will be shown only once!)
Functions
✅1.create_repository
✅2.fork_repository
✅3.delete_repository
✅4.search_repositories
✅5.create_or_update_file
✅6.push_files
✅7.get_file_contents
✅8.create_issue
✅9.get_issues
✅10.create_merge_request
✅11.get_merge_request_diff
✅12.create_branches
✅13.delete_branches
✅14.create_tags
✅15.delete_tags
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceA Model Context Protocol server that enables AI assistants to interact with GitLab repositories, allowing tasks like managing merge requests, searching projects, and creating comments through RESTful API integration.Last updated392
- Alicense-qualityCmaintenanceIntegrates GitLab with AI assistants to manage merge requests, analyze CI/CD pipelines, and create Architecture Decision Records. It enables seamless code searching, pipeline triggering, and deployment management through the Model Context Protocol.Last updated1MIT
- Alicense-qualityCmaintenanceEnables AI-assisted code review and repository management for on-premise GitLab instances. It provides tools for interacting with merge requests, browsing source code, and searching repositories via the Model Context Protocol.Last updated1MIT
- Alicense-qualityCmaintenanceEnables AI assistants to interact with GitLab by wrapping the REST API v4 into executable tools for repository and branch management. It supports operations like creating projects, managing branches, and retrieving user information through the Model Context Protocol.Last updated221ISC
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lucky-dersan/gitlab-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server