Skip to content

Quick Start

Get GitLab MCP Server running with your AI agent in under a minute.

Recommended

Use the Setup Wizard for guided configuration:

bash
npx @structured-world/gitlab-mcp setup

1. Get a GitLab Token

Create a Personal Access Token with api and read_user scopes.

First time?

See the step-by-step authentication guide for detailed instructions on token creation and scope selection.

2. Configure Your MCP Client

Add to your MCP client configuration:

json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@structured-world/gitlab-mcp"],
      "env": {
        "GITLAB_TOKEN": "your_gitlab_token",
        "GITLAB_API_URL": "https://gitlab.com"
      }
    }
  }
}

That's it. The server starts with all default tools enabled.

Optional Configuration

VariablePurposeDefault
GITLAB_PROJECT_IDDefault project context
GITLAB_READ_ONLY_MODERestrict to read-only toolsfalse
GITLAB_API_TIMEOUT_MSAPI timeout in milliseconds10000

Feature Flags

Enable or disable tool groups:

FlagDefaultTools
USE_LABELStrueLabel management
USE_MRStrueMerge request operations
USE_FILEStrueFile browsing and management
USE_VARIABLEStrueCI/CD variables
USE_WORKITEMStrueIssues, epics, tasks (GraphQL)
USE_WEBHOOKStrueWebhook management
USE_SNIPPETStrueCode snippets
USE_INTEGRATIONStrue50+ project integrations
USE_GITLAB_WIKItrueWiki pages
USE_MILESTONEtrueMilestone tracking
USE_PIPELINEtruePipeline and CI/CD jobs
USE_RELEASEStrueRelease management
USE_REFStrueBranch and tag management
USE_MEMBERStrueTeam member management
USE_SEARCHtrueCross-project search

Next Steps

Released under the Apache 2.0 License.