Skip to main content
MCP Server

GitLab API, enabling project management

Share
680 stars TypeScript MIT Updated: 2025-04-05

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

  1. Open Claude Desktop app
  2. Go to Settings → Developer → Edit Config
  3. Paste the config below into the file
  4. 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 Run directly with npx
npx -y @modelcontextprotocol/server-gitlab

Tools (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 Required

GitLab personal access token

Example: glpat-xxxxxxxxxxxxxxxxxxxx
GITLAB_API_URL Optional

GitLab API URL (optional, defaults to gitlab.com)

Example: https://gitlab.company.com/api/v4

Compatibility

Claude Desktop
Cursor
Cline
VS Code
Devin (formerly Windsurf)

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

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.