Skip to content

GitLab MCP server: install, tools and limits

Better Design

Direct answer

The GitLab MCP server is built into GitLab and connects AI tools such as Claude Code, Cursor and Codex to your GitLab instance. It runs over the remote URL https://<gitlab.example.com>/api/v4/mcp or stdio through the mcp-remote proxy, needs a GitLab OAuth token or a fine-grained personal access token, and exposes 61 tools.

A hand-drawn terminal that connects a coding agent to GitLab MCP server, with the server's name and tool count written beside it.

What GitLab MCP server does

The GitLab MCP server is built into GitLab and connects AI tools such as Claude Code, Cursor and Codex to your GitLab instance. They can read and change projects, merge requests, work items, repositories and CI pipelines on your behalf.

GitLab maintains it.

How a coding agent uses GitLab MCP server

The agent asks, GitLab MCP server acts, and the result comes back into the session.

A hand-drawn three-step flow from the coding agent to GitLab MCP server and back: Check the pipeline on my merge request, Reads the merge request and its pipeline jobs, The diff, the pipeline status and the failed job.
  1. The agent asks: Check the pipeline on my merge request
  2. GitLab MCP server acts: Reads the merge request and its pipeline jobs
  3. The result comes back: The diff, the pipeline status and the failed job

Install GitLab MCP server in Claude Code

terminal
claude mcp add -s user --transport http GitLab https://<gitlab.example.com>/api/v4/mcp

Install GitLab MCP server in Cursor

Cursor mcp.json
{
  "mcpServers": {
    "GitLab": {
      "type": "http",
      "url": "https://<gitlab.example.com>/api/v4/mcp"
    }
  }
}

Install GitLab MCP server in VS Code

Command Palette (GitHub Copilot in VS Code)
MCP: Add Server > HTTP
URL: https://<gitlab.example.com>/api/v4/mcp
Server ID: GitLab

Install GitLab MCP server in Codex

terminal
codex mcp add GitLab --url "https://<gitlab.example.com>/api/v4/mcp"
# then set "rmcp_client" = true under [features] in ~/.codex/config.toml, and run:
codex mcp login GitLab

Install GitLab MCP server in a stdio client through mcp-remote

a stdio client through mcp-remote
{
  "mcpServers": {
    "GitLab": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://<gitlab.example.com>/api/v4/mcp"
      ]
    }
  }
}

The 61 tools GitLab MCP server gives your agent

GitLab MCP server lists these names in its own documentation, read on November 12, 2026. Your agent sees each one as a tool it can call.

  • Meta: get_mcp_server_version
  • Core: get_project, save_project, get_user, list_groups, list_projects, list_project_members, list_todos, list_user_events, save_note, search, search_labels, semantic_search, get_pages_content
  • Merge requests: save_merge_request, get_merge_request, list_merge_requests, get_merge_request_commits, get_merge_request_diffs, get_merge_request_pipelines, get_merge_request_conflicts, get_merge_request_notes, save_merge_request_review, accept_merge_request
  • Work items: get_work_item, get_workitem_notes, get_work_item_types, link_work_items, get_saved_view_work_items, list_work_item_saved_views, save_work_item, list_work_items, create_issue, get_issue
  • Repository: add_branch, fork_repository, list_branches, get_repository_file, list_repository_tree, get_commit, list_commits, list_releases, list_tags, add_commit
  • CI: get_pipeline, get_pipeline_jobs, get_job, get_artifact_file, list_pipelines, save_pipeline, manage_pipeline
  • Duo Agent Platform: list_duo_agents_and_flows, start_duo_session, list_duo_sessions, get_duo_session, send_duo_session_input
  • Wikis: list_wiki_pages
  • Code security: list_vulnerabilities, get_vulnerability, save_vulnerability, attach_scan_profile

Settings worth knowing in GitLab MCP server

X-Gitlab-Enabled-Mcp-Server-Toolsets
What it changes

Turns on toolsets: meta, core, merge_requests, work_items, repository, ci, duo_agent_platform, wikis, code_security, orbit, or all.

Server

GitLab MCP server

X-Gitlab-Enabled-Mcp-Server-Tools
What it changes

Turns on single tools.

Server

GitLab MCP server

X-Gitlab-Mcp-Server-Tool-Name-Prefix
What it changes

Adds a prefix to tool names, up to 32 characters.

Server

GitLab MCP server

Pre-registered OAuth application
What it changes

Uses one OAuth app instead of dynamic client registration.

Server

GitLab MCP server

MCP protocol versions
What it changes

Supports 2025-03-26, 2025-06-18 and 2025-11-25.

Server

GitLab MCP server

Sign-in, limits and caveats for GitLab MCP server

Sign-in: An OAuth access token with the mcp scope, through dynamic client registration or a pre-registered OAuth app, or a fine-grained personal access token with the MCP tool resource and Execute permission. Legacy personal, project and group access tokens are rejected with 403 insufficient_scope.

Limits and price: The server is available on Free, Premium and Ultimate, on GitLab.com, Self-Managed and Dedicated, and GitLab's documentation states no separate price. The code_security tools need Ultimate. semantic_search needs GitLab Duo Core, Pro or Enterprise. The duo_agent_platform tools need GitLab Duo Agent Platform, through a Premium or Ultimate group or GitLab credits. Orbit tools need Premium or Ultimate. On GitLab.com each user gets 60 requests per minute and 3,600 per hour on Free, and 600 per minute and 5,000 per hour on Premium and Ultimate, shared across all clients; the hourly limits are behind feature flags. An owner must allow MCP server access for the top-level group on GitLab.com, or for the instance on Self-Managed and Dedicated.

  • Legacy personal, project and group access tokens fail with 403 insufficient_scope even with the api scope; use OAuth or a fine-grained token.
  • In Claude Code, an old local-scope GitLab entry overrides a new user-scope one; remove it with claude mcp remove GitLab -s local.
  • GitLab warns that you are responsible for prompt injection; use the tools only on GitLab objects you trust.
  • 10 of the 61 tools are unlisted and superseded but still documented: get_merge_request_commits, get_merge_request_diffs, get_merge_request_pipelines, get_merge_request_conflicts, get_merge_request_notes, get_workitem_notes, create_issue, get_issue, get_pipeline_jobs and manage_pipeline.
  • The orbit toolset adds one tool per Orbit command, for example query_graph, named by the Orbit server.
  • The stdio route through mcp-remote needs Node.js 20 or newer.

Use GitLab MCP server for interface work

It lets a coding agent read merge request diffs, open merge requests and check pipelines for a UI change without leaving the editor.

Steal this workflow

Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.

Read the guide "GitLab MCP server: install, tools and limits" at https://better-design.com/blog/gitlab-mcp and help me apply it to my project.

The GitLab MCP server is built into GitLab and connects AI tools such as Claude Code, Cursor and Codex to your GitLab instance. It runs over the remote URL https://<gitlab.example.com>/api/v4/mcp or stdio through the mcp-remote proxy, needs a GitLab OAuth token or a fine-grained personal access token, and exposes 61 tools.

Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.

Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.

Questions

What does GitLab MCP server do?

The GitLab MCP server is built into GitLab and connects AI tools such as Claude Code, Cursor and Codex to your GitLab instance. They can read and change projects, merge requests, work items, repositories and CI pipelines on your behalf.

Does GitLab MCP server need an API key or sign-in?

An OAuth access token with the mcp scope, through dynamic client registration or a pre-registered OAuth app, or a fine-grained personal access token with the MCP tool resource and Execute permission. Legacy personal, project and group access tokens are rejected with 403 insufficient_scope.

Is GitLab MCP server free?

The server is available on Free, Premium and Ultimate, on GitLab.com, Self-Managed and Dedicated, and GitLab's documentation states no separate price. The code_security tools need Ultimate. semantic_search needs GitLab Duo Core, Pro or Enterprise. The duo_agent_platform tools need GitLab Duo Agent Platform, through a Premium or Ultimate group or GitLab credits. Orbit tools need Premium or Ultimate. On GitLab.com each user gets 60 requests per minute and 3,600 per hour on Free, and 600 per minute and 5,000 per hour on Premium and Ultimate, shared across all clients; the hourly limits are behind feature flags. An owner must allow MCP server access for the top-level group on GitLab.com, or for the instance on Self-Managed and Dedicated.

Which coding agents can use GitLab MCP server?

Its documentation shows a setup for Claude Code, Cursor, VS Code, Codex. Any client that speaks MCP over the remote URL https://<gitlab.example.com>/api/v4/mcp or stdio through the mcp-remote proxy can connect.

Where these GitLab MCP server facts come from

Each fact on this page comes from GitLab MCP server's own repository, documentation or package registry, read on November 12, 2026.

Add design rules next to it

GitLab MCP server gives the agent its tools. It does not tell the agent what a good screen looks like. Better Design adds that part: a design system, interface principles and review rules that the agent calls while it builds.