stdio version-controldev-tool

GitLab MCP Server

Interact with GitLab projects, merge requests, issues, and pipelines.

claude_desktop_config.json

{
  "mcpServers": {
    "server-gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gitlab"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Environment Variables

Variable Required Description
GITLAB_PERSONAL_ACCESS_TOKEN ✓ Required GitLab personal access token with api scope.
GITLAB_API_URL Optional GitLab API base URL. Defaults to https://gitlab.com/api/v4 for cloud.

Setup Instructions

  1. Ensure Node.js 18+ is installed on your system.
  2. Copy the config block above into your claude_desktop_config.json file (typically at ~/.config/claude/claude_desktop_config.json on macOS/Linux or %APPDATA%\Claude\claude_desktop_config.json on Windows).
  3. Set the GITLAB_PERSONAL_ACCESS_TOKEN environment variable: GitLab personal access token with api scope.
  4. Restart your AI client to apply the config.

Related Servers