GitLab

GitLab

Official
Developer Tools
Token

Securely connect AI tools and applications to your GitLab instance.

GitLab

Securely connect AI tools and applications to your GitLab instance. With Lunar.dev MCPX, the MCP Gateway for secure and governed tool access, you connect the GitLab MCP server to Claude, ChatGPT, Cursor, and any MCP client through one gateway that routes, authenticates, and governs every GitLab tool call against your policies.

Why MCPX

MCPX is Lunar.dev's MCP Gateway. It sits between your AI agents and your MCP servers as a single gateway for every tool call, routing, authenticating, and governing traffic against your policies. Connect GitLab once and govern it everywhere: role-based access per agent with on-behalf-of attribution, real-time visibility, and an immutable audit trail of who did what, all deployable inside your own VPC.

Tools content

  • merge_merge_request · Write
    Merge a merge request in a GitLab project
  • create_or_update_file · Write
    Create or update a single file in a GitLab project
  • search_repositories · Read-only
    Search for GitLab projects
  • create_repository · Write
    Create a new GitLab project
  • create_group · Write
    Create a new GitLab group or subgroup (name, path, description, visibility, and optional parent_id)
  • get_file_contents · Read-only
    Get the contents of a file or directory from a GitLab project
  • push_files · Write
    Push multiple files to a GitLab project in a single commit
  • create_issue · Write
    Create a new issue in a GitLab project
  • create_merge_request · Write
    Create a new merge request in a GitLab project
  • fork_repository · Write
    Fork a GitLab project to your account or specified namespace
  • create_branch · Write
    Create a new branch in a GitLab project
  • get_merge_request · Read-only
    Get details of a merge request with compact deployment summary, behind-count, commit addition summary, and approval summary (Either mergeRequestIid or branchName must be provided)
  • get_merge_request_diffs · Read-only
    Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
  • list_merge_request_diffs · Read-only
    List merge request diffs with pagination support (Either mergeRequestIid or branchName must be provided)
  • get_merge_request_conflicts · Read-only
    Get the conflicts of a merge request in a GitLab project
  • list_merge_request_changed_files · Read-only
    STEP 1 of code review workflow. Returns ONLY the list of changed file paths in a merge request — WITHOUT diff content. Call this first to get file paths, then call get_merge_request_file_diff with multiple files in a single batched call (recommended 3-5 files per call). Supports excluded_file_patterns filtering using regex. (Either mergeRequestIid or branchName must be provided)
  • get_merge_request_file_diff · Read-only
    STEP 2 of code review workflow. Get diffs for one or more files from a merge request. Call list_merge_request_changed_files first, then pass them as an array to fetch diffs efficiently. Batching multiple files (recommended 3-5) is supported. (Either mergeRequestIid or branchName must be provided)
  • list_merge_request_versions · Read-only
    List all versions of a merge request
  • get_merge_request_version · Read-only
    Get a specific version of a merge request
  • get_branch_diffs · Read-only
    Get the changes/diffs between two branches or commits in a GitLab project

See all 156 tools

Frequently asked questions

What is the GitLab MCP server?

Securely connect AI tools and applications to your GitLab instance. Through Lunar.dev MCPX, GitLab connects to any MCP-compatible AI client behind a single governed gateway.

How do I connect GitLab to MCPX?

Add the GitLab server in the MCPX control plane or your app.yaml, then point your AI client at your MCPX gateway. MCPX handles Token and routes every GitLab call through the gateway.

Is the GitLab MCP server official?

Yes. GitLab is an official, vendor-published MCP server, and MCPX governs it like any other server in your catalog.

What authentication does GitLab use with MCPX?

GitLab uses Token. MCPX enforces authentication at the gateway with token-based auth, OAuth, and role-based profiles, so you control which agents can invoke it.

How many tools does GitLab expose in MCPX?

GitLab exposes 16 tools. In MCPX you can enable or disable each tool per agent for least-privilege access.

Server details

CategoryDeveloper Tools
AuthToken
Connectionstdio
Tools16 available