glab_mrLABSCO SUMMARY
No new token: it borrows the glab login you already did.
That removes the usual step of minting a personal access token and deciding its scopes. glab_raw and glab_api are the escape hatches — anything the typed wrappers miss is still one call away, which matters on a self-managed GitLab with unusual features.
What it is
A Swift server that wraps the GitLab CLI. It uses the credentials glab already holds on your machine, parses JSON output where glab produces it, and falls back to plain text where it does not.
What you get
- glab_mr — merge requests: list, create, view, merge, approve
- glab_issue — issues: list, create, view, close, update
- glab_ci — pipelines: view, list, run, retry
- glab_repo — repositories: clone, fork, view, archive
- glab_api — direct GitLab API access for anything the wrappers do not cover
- glab_auth and glab_version
- glab_raw — any glab command, verbatim
- Four guided prompts: my-mrs, create-mr, daily-standup and review-pipeline
Requirements
macOS with Swift 5.9 or later, and the glab CLI installed and already logged in — the server uses that existing authentication rather than asking for a token. Build with Swift Package Manager and point the client at the built binary; the config needs a PATH entry so glab is findable.
Setup effort
Build from source — git clone https://github.com/doozMen/gitlab-mcp-swift.git
USE CASES
Checking what is waiting on you
List your open merge requests and their state without opening the web UI.
Opening a merge request from a fresh branch
Create it with a title and description, then view or approve it in the same conversation.
Working out why the pipeline is red
List the pipelines, view the failing one, and retry it once the fix lands.
Reaching something the wrappers do not cover
Call the GitLab API directly, or run the glab command verbatim.
8 tools
Listed in project docs. Your client may show a different list.
glab_issueglab_ciglab_repoglab_apiglab_authglab_versionglab_rawBEFORE YOU INSTALL
What to know first
Tools you get
8 tools named in the project's documentation.
Requires
- macOS with Swift 5.9 or later (Xcode)
- glab CLI, installed and logged in
- jq (install.sh uses it)
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone this one yourself.
Server setup
git clone https://github.com/doozMen/gitlab-mcp-swift.git
cd gitlab-mcp-swift
./install.shMCP Clients
Claude Desktop
{
"mcpServers": {
"gitlab": {
"command": "/Users/<YOUR_USERNAME>/.swiftpm/bin/git-lab-mcp",
"args": [
"--log-level",
"info"
],
"env": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"
}
}
}
}