GitLab (Glab)
FreeNot checkedProvides GitLab issue and CI/CD management tools using the glab CLI, with reduced context token usage compared to the official GitLab MCP.
About
Provides GitLab issue and CI/CD management tools using the glab CLI, with reduced context token usage compared to the official GitLab MCP.
README
MCP server for GitLab issue and CI/CD management using the glab CLI.
Motivation
The official GitLab MCP (glab mcp serve) exposes 250+ tools, consuming significant context tokens (~25k) when used with Claude. This minimal MCP wrapper exposes only essential issue and CI/CD management tools (15 tools, ~6-8k tokens), reducing context usage by approximately 70%.
This server wraps the glab CLI to provide issue and CI/CD management functionality without the overhead of the full GitLab MCP toolset.
Requirements
- glab CLI installed and authenticated
- Node.js 22+
Installation
npm install @greenfinity/gitlab-mcp
Or run directly with npx:
npx @greenfinity/gitlab-mcp
Usage
With Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["@greenfinity/gitlab-mcp"],
"env": {
"GITLAB_HOST": "gitlab.example.com"
}
}
}
}
With Claude Code
Add to your ~/.claude.json:
{
"mcpServers": {
"gitlab": {
"type": "stdio",
"command": "node",
"args": ["/path/to/gitlab-mcp/src/Cli.bs.mjs"],
"env": {
"GITLAB_HOST": "gitlab.example.com"
}
}
}
}
Supported Tools (15 total)
Issue Management (7 tools)
issue_list- List project issues with filters (state, labels, assignee, author, search)issue_view- View details of a specific issue by IDissue_create- Create a new issueissue_update- Update an existing issueissue_close- Close an issueissue_reopen- Reopen a closed issueissue_note- Add a comment/note to an issue
CI/CD Pipeline Management (5 tools)
pipeline_list- List CI/CD pipelines with filters (status, ref/branch)pipeline_view- View details of a specific pipeline including jobspipeline_create- Trigger a new pipeline runpipeline_cancel- Cancel a running pipelinepipeline_retry- Retry a failed pipeline
CI/CD Job Management (3 tools)
job_list- List jobs in a pipelinejob_view- View job details and log outputjob_retry- Retry a specific failed job
Why ReScript?
This package is implemented in ReScript, a functional language that compiles to JavaScript. ReScript offers a sound type system, excellent pattern matching, and produces clean, readable JavaScript output with no runtime overhead.
The compiled JavaScript is included in the npm package, so you can use this as a regular JavaScript module without any additional tooling.
Local Development
For local development:
# Install dependencies
yarn install
# Build the ReScript sources to JavaScript
yarn build
# Watch mode for development
yarn rescript:dev
License
MIT
Install GitLab (Glab) in Claude Desktop, Claude Code & Cursor
unyly install gitlab-mcp-glabInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add gitlab-mcp-glab -- npx -y github:greenfinity/gitlab-mcpFAQ
Is GitLab (Glab) MCP free?
Yes, GitLab (Glab) MCP is free — one-click install via Unyly at no cost.
Does GitLab (Glab) need an API key?
No, GitLab (Glab) runs without API keys or environment variables.
Is GitLab (Glab) hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install GitLab (Glab) in Claude Desktop, Claude Code or Cursor?
Open GitLab (Glab) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare GitLab (Glab) with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
