Skip to directory

GitLab MCP

GitLab (official)

Streamable HTTP recommended; stdio via mcp-remote also documented15+ documented tools5

About GitLab MCP

GitLab-hosted remote MCP server for authorized GitLab project, issue, merge request, and software-lifecycle workflows. Tool groups and data visibility depend on GitLab version, instance settings, user access, and configured toolsets.

What you can use it for

  • Browse projects, groups, repositories, issues/work items, merge requests and CI pipelines.
  • Search code and GitLab resources, with toolsets selected by the instance or client.
Connection and setup
Hosting
Remote, GitLab.com, GitLab Self-Managed, or GitLab Dedicated
Transport
Streamable HTTP recommended; stdio via mcp-remote also documented
Endpoint
https://gitlab.com/api/v4/mcp
Authentication
OAuth 2.0 Dynamic Client Registration with the `mcp` scope; alternatively documented fine-grained PAT with MCP tool resource and Execute permission. Legacy PAT, project access token, and group access token are rejected.

Requirements

  • GitLab instance that has allowed access to the MCP server; for GitLab.com this is enabled at the top-level group
  • MCP client with remote HTTP transport and OAuth support
  • For stdio proxy mode: Node.js 20+ and npx

Setup steps

  1. For GitLab.com, add `https://gitlab.com/api/v4/mcp` as a remote HTTP MCP server; for Self-Managed/Dedicated, replace the host with the official instance URL.
  2. Reconnect and approve the OAuth browser flow. The server requests the documented `mcp` OAuth scope.
  3. If using the toolset header, choose only required toolsets such as the documented `core` and `work_items`; toolset names and available capabilities depend on instance/version.
  4. Confirm tools are listed, then use a harmless read-only project or issue lookup. Check the GitLab group or instance setting if initialization is denied.
Tools 15+

Representative exact tool names from GitLab’s current tools reference. The full tool list changes by GitLab release, selected toolsets, license and account access; deprecated/unlisted names are excluded.

  • get_mcp_server_version

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    01
  • get_project

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    02
  • list_projects

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    03
  • list_groups

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    04
  • search

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    05
  • semantic_search

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    06
  • get_repository_file

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    07
  • list_releases

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    08
  • list_tags

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    09
  • list_pipelines

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    10
  • get_pipeline

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    11
  • get_job

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    12
  • get_work_item

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    13
  • list_work_items

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    14
  • save_work_item

    Documented GitLab MCP operation; availability depends on server version, configured toolsets, license and access.

    15

This server’s available tools can vary by account, permissions, or configuration. The list shown is not its full runtime catalog.

Limitations and notes
  • The feature must be enabled for the GitLab top-level group or self-managed/dedicated instance.
  • Legacy PATs and project/group access tokens are not accepted for this endpoint.
  • Tools may perform changes; review tool permissions and user authorization before allowing writes.
Original sources

Documentation checked 2026-10-28T19:00:00.000Z. Connection has not been runtime tested.