Allows AI assistants to search and retrieve content from over 2,900 official GitLab documentation pages.
Also known as ozanmutlu/Gitlab-Docs-MCP, gitlab-docs-mcp
- Stars
- 3
- Tools
- 4
- Downloads, 30 days
- —
- Latest version
- 1.1.21
- Last commit
- Nov 11, 2026
- License
- MIT
What is GitLab Docs MCP?
GitLab Docs is an MCP server. Allows AI assistants to search and retrieve content from over 2,900 official GitLab documentation pages. It exposes 4 tools, such as query, maxResults, section.
Summary generated from the project's README
About GitLab Docs MCP server
Accessing official GitLab technical guidance from within your coding environment is what this server enables. It provides AI assistants with a direct connection to over 2,900 documentation pages, allowing them to provide accurate answers regarding CI/CD, API usage, administration, and development. Developers can use this tool through any MCP-compatible client such as Claude Desktop, Cursor IDE, VS Code with GitHub Copilot, Zed, or Windsurf.
Setup involves adding a simple configuration to your local mcp.json or claude_desktop_config.json files using the npx command. The server includes specific tools like searchGitLabDocs for relevance-ranked queries, getDocPage to pull full content from a specific path, and listDocSections to explore the documentation structure. Users can filter searches by specific sections like api or ci to narrow down results. Because it stays synced with the latest published versions, your assistant always has access to current GitLab information without manual updates.
What you can do with it
- 1Configure CI/CD pipelinesAsk your assistant to find specific instructions for setting up GitLab CI/CD workflows.
- 2Retrieve API documentationRequest specific GraphQL mutation examples or other API details from the documentation.
- 3Install GitLab componentsFind step-by-step guides for installing software like GitLab Runner on specific operating systems.
- 4Explore documentation structureBrowse through different documentation categories to understand how the information is organized.
Written from the project's README. Every use case is checked against a quote from it.
How to install GitLab Docs MCP
Formats verified 10 Nov 2026Install GitLab Docs MCP in Claude Code
$ claude mcp add gitlab-docs-mcp -- npx -y gitlab-docs-mcpInstall GitLab Docs MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"gitlab-docs-mcp": {
"command": "npx",
"args": [
"-y",
"gitlab-docs-mcp"
]
}
}
}Install GitLab Docs MCP in VS Code
.vscode/mcp.json
{
"servers": {
"gitlab-docs-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gitlab-docs-mcp"
]
}
}
}Install GitLab Docs MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"gitlab-docs-mcp": {
"command": "npx",
"args": [
"-y",
"gitlab-docs-mcp"
]
}
}
}Install GitLab Docs MCP in Codex
~/.codex/config.toml
[mcp_servers.gitlab-docs-mcp] command = "npx" args = ["-y", "gitlab-docs-mcp"]
Install GitLab Docs MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"gitlab-docs-mcp": {
"command": "npx",
"args": [
"-y",
"gitlab-docs-mcp"
]
}
}
}GitLab Docs MCP tools 4
Detected from the READMEquerymaxResultssectionpath
| query | — | |
| maxResults | — | |
| section | — | |
| path | — |
Automated checks
Ran Nov 13, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablePass
- Open source license (OSI)Pass
- Commit or release in the last yearPass
- Package name not close to a popular packagePass
- Remote endpoint uses HTTPSNot checked
- Destructive tools are labelledPass
- No hidden instructions to the modelPass
- No critical advisory in the package or its dependenciesPass
README
View on GitHubGitLab Docs MCP Server
A Model Context Protocol server that provides AI assistants instant access to GitLab's official documentation.
Features
- Intelligent Search - Fast, relevance-ranked search across all docs
- Section Filtering - Target specific areas (CI/CD, API, Admin, etc.)
- Full Content Access - Retrieve complete documentation pages
- Always Up-to-Date - Automatically synced with latest GitLab docs
- Universal Compatibility - Works with any MCP-compatible AI assistant
Installation
This server works with any MCP-compatible AI assistant. The Model Context Protocol allows AI assistants to connect to external tools and data sources through a standardized interface.
GitHub Copilot (VS Code)
1. Open MCP Configuration
Press ⌘+Shift+P (or Ctrl+Shift+P on Windows/Linux), type MCP: Open User Configuration, and press Enter.
2. Add to mcp.json:
{
"servers": {
"gitlab-docs": {
"command": "npx",
"args": ["-y", "gitlab-docs-mcp"]
}
}
}
3. Reload VS Code
Press ⌘+Shift+P (or Ctrl+Shift+P), type Developer: Reload Window, and press Enter.
Alternative: You can also manually create/edit the file at:
- macOS:
~/Library/Application Support/Code/User/mcp.json - Windows:
%APPDATA%\Code\User\mcp.json - Linux:
~/.config/Code/User/mcp.json
Claude Desktop
Claude Desktop is a standalone desktop application by Anthropic that supports MCP servers.
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"gitlab-docs": {
"command": "npx",
"args": ["-y", "gitlab-docs-mcp"]
}
}
}
Restart Claude Desktop.
Cursor IDE
Cursor has built-in MCP support. Create or edit the MCP configuration file:
1. Create/Edit Configuration File
- Project-specific:
.cursor/mcp.jsonin your project root - Global:
~/.cursor/mcp.jsonin your home directory
2. Add Server Configuration:
{
"mcpServers": {
"gitlab-docs": {
"command": "npx",
"args": ["-y", "gitlab-docs-mcp"]
}
}
}
3. Restart Cursor
Other MCP Clients
For other MCP-compatible clients (Zed, Windsurf, etc.), configure them to run:
npx -y gitlab-docs-mcp
Refer to your client's MCP configuration documentation for the specific format required.
Usage
Once configured, simply ask your AI assistant about GitLab:
Example Conversations:
You: "How do I set up a CI/CD pipeline in GitLab?"
Assistant: [Searches GitLab docs and provides detailed pipeline configuration guide]
You: "Show me how to configure GitLab Runner on Ubuntu"
Assistant: [Retrieves GitLab Runner installation documentation]
You: "What are the GraphQL mutations for updating issues?"
Assistant: [Searches API docs and shows GraphQL mutation examples]
You: "Explain GitLab's authentication options"
Assistant: [Provides overview from authentication documentation]
The AI assistant will automatically use the GitLab Docs MCP server to search documentation and provide accurate, up-to-date answers.
Available Tools
searchGitLabDocs
Search across 2,900+ GitLab documentation pages with intelligent ranking.
Parameters:
query- Search termsmaxResults- Maximum results (default: 10, max: 50)section- Filter by section: ci, api, user, admin, development
getDocPage
Retrieve the complete content of a specific documentation page.
Parameters:
path- Document path (e.g., "ci/yaml/_index.md")
listDocSections
Browse available documentation sections and their structure.
Troubleshooting
Server not responding?
- Ensure Node.js 22.13+ or 24+ is installed:
node --version - Restart your AI assistant/client completely
- Check application logs for MCP connection errors
Documentation out of date? The server automatically uses the latest published version from npm. Simply restart your MCP client to get updates.
Contributing
Found a bug or have a feature request? Please visit the GitHub repository.
License
MIT - see LICENSE file for details.
GitLab Docs MCP questions
How do I add GitLab Docs MCP to Claude Code?
Run claude mcp add gitlab-docs-mcp -- npx -y gitlab-docs-mcp in your terminal. Add --scope user to make it available in every project.
How do I add GitLab Docs MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does GitLab Docs MCP provide?
It exposes 4 tools, including query, maxResults, section, path.
How can I search for specific GitLab topics?
You can use the search tool to query across 2,900+ pages and filter by sections like CI/CD, API, or Admin.
What are the system requirements for this server?
You must have Node.js version 22.13+ or 24+ installed on your system.
How do I get the latest documentation updates?
The server is automatically synced; simply restart your MCP client to receive the latest updates.