Skip to content

Set up the GitLab MCP server

Read GitLab repository files and pipelines in your AI client, or update work items, commit code, and merge requests.

Official · GitLab

Add it to your client

Before you start

  1. 01

    Have the required instance or group setting enabled for MCP access.

  2. 02

    For GitLab.com, use https://gitlab.com/api/v4/mcp; for Self-Managed or Dedicated, use your instance’s /api/v4/mcp endpoint.

  3. 03

    Use OAuth with the mcp scope, or a fine-grained personal access token with Execute permission for MCP tool resources; legacy personal, project, and group tokens are rejected.

  1. 01

    In the AI panel, open Customize › Connections.

  2. 02

    Choose Add connection, then select GitLab from the gallery.

  3. 03

    Review what it reads and can change, its plan requirements, and any usage charges. Then sign in.

What you can do

  • Read repository files, commits, and pipeline data.

  • Read or update work items and merge requests.

  • Add commits.

  • Accept merge requests where your access permits it.

Try asking

“Read this repository file and show where it builds the canonical URL.”

What it can change

Can save work items and merge requests, add commits, and accept merge requests. This applies to supported GitLab.com, Self-Managed, and Dedicated connections within your permissions.

Review the available tools

Connect the server to see its available tools in your client.

Try Pro free for 14 days

Every new account gets the trial with no card, then moves to Free and keeps its data. For Mac and Windows.