GitLab MCP Server

Developmentstdiohttp-streamingv1.0.0
Repository

Official GitLab MCP server connecting AI tools to GitLab's DevOps platform. Enables agents to manage projects, issues, merge requests, branches, files, CI/CD pipelines, and the GitLab Duo workflow. Supports both GitLab.com SaaS and self-managed instances with fine-grained access tokens.

Connect

Add this configuration to .claude/mcp.json

Transport:
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@gitlab/mcp-server"
      ],
      "env": {
        "GITLAB_TOKEN": "<YOUR_GITLAB_TOKEN>",
        "GITLAB_URL": "<YOUR_GITLAB_URL>"
      }
    }
  }
}

Tools (3)

create_merge_request

Create a new merge request in a GitLab project.

{
  "type": "object",
  "required": [
    "project_id",
    "source_branch",
    "target_branch",
    "title"
  ],
  "properties": {
    "title": {
      "type": "string",
      "description": "Merge request title"
    },
    "project_id": {
      "type": "string",
      "description": "Project ID or URL-encoded path"
    },
    "description": {
      "type": "string",
      "description": "Merge request description in Markdown"
    },
    "source_branch": {
      "type": "string",
      "description": "Source branch with changes"
    },
    "target_branch": {
      "type": "string",
      "description": "Target branch to merge into"
    }
  }
}

list_issues

List issues for a GitLab project with optional state and label filters.

{
  "type": "object",
  "required": [
    "project_id"
  ],
  "properties": {
    "state": {
      "type": "string",
      "description": "Issue state (opened, closed, all)"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Labels to filter by"
    },
    "project_id": {
      "type": "string",
      "description": "Project ID or URL-encoded path"
    }
  }
}

get_pipeline

Get the status and jobs of a CI/CD pipeline.

{
  "type": "object",
  "required": [
    "project_id",
    "pipeline_id"
  ],
  "properties": {
    "project_id": {
      "type": "string",
      "description": "Project ID or URL-encoded path"
    },
    "pipeline_id": {
      "type": "integer",
      "description": "Pipeline ID"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
GitLab (@gitlab-org)
Repository
https://gitlab.com/gitlab-org/api/mcp-server
License
MIT
Version
1.0.0
Stars
2,100
Last Updated
June 19, 2026
GitLab MCP Server - MCP Server | OpenModels