Skip to content

GitLab MCPModel Context Protocol Server

Connect AI agents to GitLab with 44 tools across 18 entity types

GitLab MCP Logo

One-Click Install

Install in Claude DesktopInstall in VS CodeInstall in VS Code Insiders

After one-click install

You must configure GITLAB_TOKEN in your MCP client settings before the server can connect. See the Installation Guide for token setup.

Quick Start

Prerequisites

Create a GitLab Personal Access Token with api,read_user scopes (or read_api,read_user for read-only mode) and export it:

bash
export GITLAB_TOKEN="glpat-xxxxxxxxxxxxxxxxxxxx"
bash
npx @structured-world/gitlab-mcp

For self-hosted GitLab, also set GITLAB_API_URL:

bash
export GITLAB_API_URL="https://your-gitlab.example.com"

See the Installation Guide for detailed setup instructions.

Released under the Apache 2.0 License.