Get the FREE Ultimate OpenClaw Setup Guide →

Gitlab-Docs

MCP Server for Gitlab Documentation

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio ozanmutlu-gitlab-docs-mcp npx -y gitlab-docs-mcp \
  --env NODE_OPTIONS="Optional: set Node.js runtime options if needed"

How to use

GitLab Docs MCP Server provides AI-assisted access to GitLab's official documentation. It exposes tools that let your MCP-enabled assistant search across GitLab docs, filter by sections like CI/CD, API, Admin, and more, and retrieve full documentation pages. The primary capabilities you can leverage are searchGitLabDocs for intelligent, ranked search results, getDocPage to fetch a complete documentation page by path, and listDocSections to explore the structure of the documentation. Configure the server in your MCP client, then start the server and point your AI assistant to the gitlab-docs MCP entry. Once connected, your assistant can answer questions by querying the latest GitLab docs and returning relevant sections or pages.

How to install

Prerequisites:

  • Node.js 22+ and npm installed on your system
  • Access to a compatible MCP client (e.g., Claude Desktop, Cursor IDE, VS Code MCP integration)

Installation steps:

  1. Verify Node.js is installed: node --version npm --version
  2. Install or run the MCP server using NPX (recommended): npx -y gitlab-docs-mcp This will start the GitLab Docs MCP server using the published package.
  3. If you prefer a global install (optional): npm install -g gitlab-docs-mcp Then run: gitlab-docs-mcp
  4. In your MCP client, add the server reference: Example config (in mcp.json or equivalent): { "servers": { "gitlab-docs": { "command": "npx", "args": ["-y", "gitlab-docs-mcp"] } } }
  5. Restart your MCP client or IDE extension to load the new server configuration.

Additional notes

Tips and notes:

  • The server automatically stays up-to-date with GitLab docs, so restart your MCP client to fetch the latest content.
  • Available tools include: searchGitLabDocs, getDocPage, listDocSections. Use section filters like ci, api, user, admin, development when searching.
  • If you encounter connectivity issues, ensure your Node.js runtime is accessible and your MCP client is configured to connect to the local or configured MCP endpoint.
  • Environment variables are optional; you can pin Node runtime options via NODE_OPTIONS if you need to debug or optimize performance.

Related MCP Servers

Sponsor this space

Reach thousands of developers