
GitLab
GitLab API, enabling project management
Send to Your Agent
Copy this prompt and paste it into Claude, Cursor, or any MCP client to install instantly.
Install the GitLab MCP server for me.
Server: GitLab
Description: GitLab API, enabling project management
Install command: npx -y @modelcontextprotocol/server-gitlab
Environment variables needed:
- GITLAB_PERSONAL_ACCESS_TOKEN: GitLab personal access token (required)
- GITLAB_API_URL: GitLab API URL (optional, defaults to gitlab.com)
GitHub: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/gitlab
Please install this MCP server and confirm when ready. Paste into any AI agent with MCP support — works with Claude Desktop, Cursor, Cline, and more.
Quick Install
Config file: ~/Library/Application Support/Claude/claude_desktop_config.json
- Open Claude Desktop app
- Go to Settings → Developer → Edit Config
- Paste the config below into the file
- Restart Claude Desktop
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx"
}
}
}
} Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json
Installation Methods
npx -y @modelcontextprotocol/server-gitlabTools (5)
search_projects Search for GitLab projects
get_project Get details of a GitLab project
create_issue Create a new issue in a GitLab project
list_issues List issues in a GitLab project
get_merge_request Get details of a merge request
Environment Variables
GITLAB_PERSONAL_ACCESS_TOKEN RequiredGitLab personal access token
glpat-xxxxxxxxxxxxxxxxxxxxGITLAB_API_URL OptionalGitLab API URL (optional, defaults to gitlab.com)
https://gitlab.company.com/api/v4| Name | Description | Required | Example |
|---|---|---|---|
| GITLAB_PERSONAL_ACCESS_TOKEN | GitLab personal access token | Required | glpat-xxxxxxxxxxxxxxxxxxxx |
| GITLAB_API_URL | GitLab API URL (optional, defaults to gitlab.com) | Optional | https://gitlab.company.com/api/v4 |
Compatibility
About
A Model Context Protocol server that provides integration with GitLab. This server enables LLMs to interact with GitLab repositories, issues, and merge requests.
Key Features
- Project management — Search and browse GitLab projects
- Issue tracking — Create, list, and manage issues
- Merge requests — View and analyze merge requests
- Self-hosted support — Works with gitlab.com and self-hosted instances
Authentication
Requires a GitLab Personal Access Token. Create one at: https://gitlab.com/-/profile/personal_access_tokens
Use Cases
- Project overview — "Show me all projects in this group"
- Issue management — "Create an issue for this bug in the backend project"
- MR review — "List all open merge requests and their status"
- CI/CD analysis — "Show me the latest pipeline status"
- Team coordination — "Find all issues assigned to me"
Related Resources
GitHub
MCP ServerRepository management, file operations, and GitHub API integration
DevOps Pipeline Architect
SkillDesign and implement robust CI/CD pipelines with automated testing, deployment strategies, infrastructure as code, and observability for modern cloud-native applications.
Kubernetes Cost Optimizer
PromptOptimize Kubernetes cluster costs through right-sizing, spot instance strategies, autoscaling configuration, and resource quotas while maintaining application performance and reliability.
DevOps
GlossaryPractices that combine software development and IT operations to shorten delivery cycles.
Git
MCP ServerTools to read, search, and manipulate Git repositories
Compare LLM Pricing
This server works with Claude, GPT-4o, and other models. Compare API costs side-by-side to find the cheapest option for your workflow.