Gitlab Docs logo

Gitlab Docs

Searches, retrieves, and navigates 2,900+ official GitLab documentation pages through MCP.

Install Gitlab Docs

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gitlab-docs": {
      "command": "npx",
      "args": [
        "-y",
        "gitlab-docs-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The gitlab-docs MCP server gives AI assistants searchable access to GitLab's official documentation. It exposes tools for relevance-ranked searches, complete page retrieval, and browsing documentation sections, with optional filters for CI/CD, API, user, admin, and development content. Install it through npm and configure it as a standard MCP process in a compatible client. Reach for it when an assistant needs current GitLab configuration, API, authentication, runner, or pipeline guidance grounded in documentation.

Use cases

  • Search GitLab CI/CD configuration guidance
  • Retrieve GitLab Runner installation pages
  • Look up GitLab API and GraphQL documentation
  • Browse GitLab administration and authentication sections

Key features

  • Relevance-ranked search across 2,900+ GitLab documentation pages
  • Section filtering for CI/CD, API, user, admin, and development content
  • Complete documentation page retrieval by path
  • Documentation section and hierarchy browsing
  • Automatic synchronization with the latest published npm version

Tools3

What Gitlab Docs lets your agent do. Expand a tool for its parameters.

Self-reported~59 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

7/7 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · gitlab-docs-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Gitlab Docs works

What the gitlab-docs MCP server does

The gitlab-docs MCP server connects an MCP-compatible AI assistant to GitLab's official documentation. Its indexed collection contains more than 2,900 documentation pages covering areas such as CI/CD, APIs, user features, administration, and development.

The server is intended for documentation lookup rather than GitLab account operations. An assistant can use it to answer questions about pipeline configuration, GitLab Runner setup, authentication methods, GraphQL mutations, and other topics represented in the published documentation.

How it works

The gitlab-docs MCP server runs as a Node.js process started through the npm package gitlab-docs-mcp. Once registered with an MCP client, the assistant can select the appropriate tool for a question:

  • searchGitLabDocs searches the documentation corpus using relevance ranking.
  • getDocPage returns the full contents of a page identified by its document path.
  • listDocSections exposes the available documentation sections and their structure.

Search accepts a query and can limit the number of results. It also supports section filtering for ci, api, user, admin, and development. The default result limit is 10, and the maximum is 50. A typical workflow is to search first, inspect the returned paths, and then retrieve a selected page in full.

The project states that its documentation source is automatically synchronized with the latest published version available through npm. Restarting the MCP client is the documented way to obtain updates after a newer package version is available.

Setup and configuration

Install Node.js 22.13 or newer, or Node.js 24 or newer. Add the server to the MCP client's configuration with a command equivalent to:

config.json
{
  "command": "npx",
  "args": ["-y", "gitlab-docs-mcp"]
}

The surrounding configuration depends on the client. Claude Desktop uses claude_desktop_config.json; Cursor supports project-level .cursor/mcp.json or a global ~/.cursor/mcp.json; and VS Code uses its MCP user configuration. After changing the configuration, restart the client or reload VS Code. Other MCP-compatible clients can run the same npx -y gitlab-docs-mcp command using their own configuration format.

Tools and capabilities

searchGitLabDocs supports query-based searches across the indexed GitLab pages. Its maxResults parameter controls the number of returned matches, while section narrows results to a supported documentation area.

getDocPage retrieves complete page content from a supplied path, such as ci/yaml/_index.md. listDocSections helps an assistant discover the documentation hierarchy before searching or retrieving a page.

Limitations and notes

The server requires a compatible MCP client and a supported Node.js version. If it does not respond, the documented checks are to verify the Node.js version, restart the client fully, and inspect application logs for MCP connection errors.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gitlab Docs

gitlab-docs is an MCP server that connects AI assistants to GitLab's official documentation. Its main tools search more than 2,900 pages with relevance ranking, retrieve complete documentation pages by path, and list available documentation sections. It runs through the `gitlab-docs-mcp` npm package and supports standard MCP clients.

Install Node.js 22.13+ or 24+, then configure the client to run `npx -y gitlab-docs-mcp`. Add that command to the client's MCP configuration, then restart the client. The exact configuration file depends on whether you use Claude Desktop, Cursor, VS Code, or another MCP-compatible application.

Yes, gitlab-docs works with Cursor through its built-in MCP support. Add the server to `.cursor/mcp.json` for a project-specific setup or `~/.cursor/mcp.json` for a global setup, using `npx -y gitlab-docs-mcp`, then restart Cursor.

You can search GitLab's indexed documentation using terms related to CI/CD, APIs, users, administration, development, authentication, runners, and other documented features. `searchGitLabDocs` accepts a query, supports section filters, and returns up to 50 results.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGitlab Docs AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gitlab-docs?style=directory)](https://allmcps.com/mcp/gitlab-docs)
HTML Embed
<a href="https://allmcps.com/mcp/gitlab-docs"><img src="https://allmcps.com/api/badge/gitlab-docs?style=directory" alt="Gitlab Docs on AllMCPs" /></a>