zereight/gitlab-mcp
MCP server for GitLab: 288 tools for projects, MRs, issues, pipelines, wikis and more via the GitLab REST/GraphQL API
What it solves
AI coding assistants like Claude Code, Cursor, and Codex have no built-in way to work with GitLab, so people end up pasting MR URLs and diffs into chat, hunting pipeline job logs in the web UI, and re-explaining the same project paths every turn. This project is a Model Context Protocol (MCP) server that exposes GitLab as structured tools an agent can call directly — managing projects, merge requests, issues, pipelines, wiki, releases, tags, and milestones without leaving the chat.
How it works
You install a single binary (via npm, Homebrew, or Nix) and register it in your MCP client — Claude Code, Cursor, Codex, GitHub Copilot, VS Code, and others. Authentication supports Personal Access Tokens, a local OAuth2 browser flow, an MCP OAuth proxy for remote clients like Claude.ai, and per-request remote authorization for multi-user setups. The server runs over stdio for local clients, SSE for legacy clients, and Streamable HTTP for hosted or self-hosted deployments.
A key design choice is keeping the default tool list small: 40 tools (38 core + discover_tools + help) out of 288 total. Because MCP clients send the entire tool schema to the model at session start, a smaller list costs fewer tokens. Call discover_tools to activate more categories (pipelines, wiki, etc.) for that session. For large replies, jmespath filtering or a compact-results mode shrinks payloads, and the bundled CLI gives you the full data when needed. Merge request review follows a two-step pattern: list changed files, then fetch batched diffs.
The project also ships a Skill + CLI path that provides the same workflows without MCP registration, plus a one-click Claude Desktop install via an .mcpb bundle.
Who it's for
Developers and teams who use AI coding assistants and want those agents to actually operate on GitLab — reviewing merge requests, inspecting pipeline job logs, managing issues — instead of manually copying URLs and diffs into chat. It also suits teams hosting a shared MCP endpoint, self-hosted GitLab instances, and anyone who prefers a lean, on-demand tool model over loading hundreds of schemas up front.
Highlights
- 288 total tools with a lean default of 40; discover_tools activates more on demand to keep token usage low
- Two-step MR review: list changed files, then batched file diffs
- Four auth methods: Personal Access Token, local OAuth2 browser flow, MCP OAuth proxy, and per-request remote authorization
- Multiple transports: stdio, SSE, and Streamable HTTP
- JMESPath result filtering and a compact-results mode to shrink oversized replies
- Skill + CLI path delivers the same workflows without MCP registration
- One-click Claude Desktop install via an .mcpb bundle
- Safety-conscious: the raw api toolset is off by default and must be explicitly enabled because it bypasses filters and allowlists
Related
- Project
- Project
- Project
- Dispatch
- Project