drio
Open app

GitLab MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

GitLab MCP Server is a tool that interfaces with the GitLab API, enabling users to manage projects, perform file operations, and automate various Git-related tasks.

To use the GitLab MCP Server, you need to set up a Personal Access Token in GitLab and configure it in your environment. You can run the server using Docker or NPX commands as specified in the setup instructions.

  • Automatic branch creation for file operations - Comprehensive error handling with clear messages - Preservation of Git history during operations - Support for batch operations on files - Ability to create and manage issues and merge requests
  1. Automating project management tasks in GitLab
  2. Simplifying file operations for developers
  3. Managing issues and merge requests programmatically

Add to your AI client

Use these steps to connect GitLab MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-gitlab-pci-frontend": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-gitlab-pci-frontend"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-gitlab-pci-frontend": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-gitlab-pci-frontend"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-gitlab-pci-frontend": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-gitlab-pci-frontend"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-gitlab-pci-frontend": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-gitlab-pci-frontend"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-gitlab-pci-frontend": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-gitlab-pci-frontend"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-gitlab-pci-frontend": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-gitlab-pci-frontend"
      ]
    }
  }
}

FAQ

What is required to use the GitLab MCP Server?

You need a GitLab Personal Access Token with appropriate permissions to access the API.

Can I use this server for self-hosted GitLab instances?

Yes! You can specify the GitLab API URL for self-hosted instances.

Is there a license for this project?

Yes, the GitLab MCP Server is licensed under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3705,"uuid":"c399037e-2242-446e-854e-4ed8dea51fd2","name":"mcp-server-gitlab","title":"GitLab MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/204302601?v=4","created_at":"2025-03-21T06:36:56.463Z","updated_at":"2025-03-21T07:20:03.191Z","status":"created","author_name":"pci-frontend","author_avatar_url":"https://avatars.githubusercontent.com/u/204302601?v=4","tags":"gitlab,mcp-server,project-management","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/pci-frontend/mcp-server-gitlab","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 14:25:44\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]