trackmcp
Back to directory
Alosies

gitlab-mcp-server

View on GitHub

A fully-typed TypeScript MCP server for comprehensive GitLab API integration with Claude Desktop. Manage projects, issues, merge requests, CI/CD pipelines, and job logs with advanced features for large-scale DevOps workflows.

9 stars TypeScriptOthers Updated Mar 12, 2026

Documentation

GitLab MCP Server

A fully typed TypeScript Model Context Protocol (MCP) server for comprehensive GitLab integration.

Quick Start

1. Get a GitLab Token

Create a GitLab Personal Access Token with `api`, `read_user`, and `read_repository` scopes.

2. Add to Claude Desktop

Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):

json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@alosies/gitlab-mcp-server"],
      "env": {
        "NPM_CONFIG_TOKEN": "your-gitlab-token-here"
      }
    }
  }
}

3. Start Using

Ask Claude things like:

  • "List my GitLab projects"
  • "Show me open issues in myproject"
  • "Create a merge request from feature-branch to main"
  • "Comment on MR #42 in myproject"
  • "Show me MRs where I'm assigned as reviewer"
  • "Mark MR #15 as ready for review"
  • "Get the logs for job #123"

Features

  • Projects: List, get details
  • Issues: List, get, create
  • Merge Requests: List, get, create, update with full review workflow support
    • Comments & Discussions: Create notes, threaded discussions, inline code comments
    • Review Management: Resolve/unresolve discussions, mark as draft/ready
    • Filtering: Filter by reviewer, assignee, author
    • Templates: Use GitLab MR templates for descriptions
  • Pipelines: List, get, create, retry, cancel, delete
  • Jobs: List jobs, get logs with advanced trace options
  • Repository: List branches, get commits
  • User: Get current user info
  • TypeScript: Fully typed with comprehensive type definitions

Documentation

Self-Hosted GitLab

For self-hosted GitLab instances, add your base URL:

json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@alosies/gitlab-mcp-server"],
      "env": {
        "NPM_CONFIG_TOKEN": "your-token",
        "GITLAB_BASE_URL": "https://gitlab.mycompany.com"
      }
    }
  }
}

Support

License

MIT License

Frequently asked questions

What is gitlab-mcp-server?

gitlab-mcp-server is A fully-typed TypeScript MCP server for comprehensive GitLab API integration with Claude Desktop. Manage projects, issues, merge requests, CI/CD pipelines, and job logs with advanced features for large-scale DevOps workflows.

How do I install gitlab-mcp-server?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is gitlab-mcp-server open source?

Yes — it is hosted on GitHub at https://github.com/Alosies/gitlab-mcp-server and has 9 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP