CodexSpot
G

GitLab MCP Server

Connects AI assistants to the GitLab API through MCP, enabling management of repositories, issues, merge requests, and CI/CD pipelines across GitLab projects.

stdioLocalApiKeynpm

What This Server Exposes

Tools

create_issuelist_projectscreate_merge_request

Resources

  • project metadata
  • issue details
  • merge request data

Setup Instructions

  1. 1Create a GitLab personal access token with the api scope at gitlab.com/-/user_settings/personal_access_tokens
  2. 2Add the GitLab server config to your Claude Desktop configuration
  3. 3Set the GITLAB_TOKEN environment variable
  4. 4Restart Claude Desktop

Configuration

Claude Desktop Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gitlab"
      ],
      "env": {
        "GITLAB_TOKEN": "your-gitlab-personal-access-token"
      }
    }
  }
}

Environment Variables

GITLAB_TOKEN
GitLab personal access token with api scope
Required🔒 Secret

Server Manifest

No official server.json manifest found. Generate one with our MCP server.json Generator →

Compatibility

Claude DesktopClaude Code

Safety Notes

Your GitLab token grants access to projects and groups. Use a token with minimal required scopes. Never commit your token to version control or share it publicly.

This listing is for informational purposes only. CodexSpot is not affiliated with GitLab MCP Server.