Skip to content

MCP server

GitLab MCP server

GitLab's built-in MCP server lets AI read projects, code, merge requests and pipelines and create commits and work items. In beta.

At a glance

Maintained by
GitLab
Tools exposed
10 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

GitLab is a complete software delivery platform: code, merge requests, pipelines and planning. GitLab now builds its MCP server into the platform itself, reached at an address on your GitLab instance and signed in with OAuth. An assistant can read projects, files, merge requests and pipeline jobs, and can create commits, merge requests and work items.

Pipeline access is especially useful: an assistant can look at a failed job, read the log and suggest what went wrong.

The server is labeled beta at review time. The older MCP reference server for GitLab is archived. Because sign-in uses your GitLab account, the assistant has the same access you do, so use an account with only the projects a task needs when working with agents.

Use cases

Best business use cases

Failed pipeline help

Read a failed job log and suggest a fix.

Merge request summaries

Summarize changes for reviewers.

Work items

Create work items from meeting notes. See meeting notes.

Code questions

Search a project to answer how something works.

Status reports

Summarize what shipped this week.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read and write: reads projects, code, MRs and pipelines, and can commit, open MRs and create work items.

  • get_project

    Get metadata for a GitLab project.

  • list_merge_requests

    List or search merge requests in a project or group.

  • get_merge_request

    Get a merge request with optional diffs, commits, notes or pipelines.

  • save_merge_request

    Create or update a merge request.

  • get_repository_file

    Get a file's contents at a specific ref.

  • add_commit

    Commit a batch of file changes to a branch.

  • list_pipelines

    List CI/CD pipelines in a project.

  • get_pipeline_jobs

    Get the jobs for a pipeline.

  • save_work_item

    Create or update an issue or other work item.

  • search

    Search for a term across the GitLab instance.

Workflows

Example workflows

Investigate a failed pipeline

  1. 1

    A pipeline fails on main.

  2. 2

    The assistant lists the failed jobs.

  3. 3

    It reads the job logs.

  4. 4

    It explains the likely cause.

  5. 5

    A developer applies and reviews the fix.

Turn notes into work items

  1. 1

    Paste meeting notes.

  2. 2

    The assistant extracts actions.

  3. 3

    It drafts work items with owners.

  4. 4

    You approve the list.

  5. 5

    It creates the items in the project.

Prompts

Example prompts

  • “Why did the latest pipeline on main fail? Read the job logs.”

  • “Summarize open merge requests in this project and who is reviewing each.”

  • “Create work items for these action points and assign them.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.json

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

Claude Code: terminal

claude mcp add -s user --transport http GitLab https://gitlab.com/api/v4/mcp
  • Hosted server: streamable-http; https://gitlab.com/api/v4/mcp; https://<gitlab.example.com>/api/v4/mcp; OAuth 2.0 with dynamic client registration.
  • Local server: stdio via mcp-remote proxy; mcp-remote.
  • Needs: None in config; OAuth sign-in on first connect. Requires Node.js 20+ for mcp-remote in Claude Desktop..

Security

Security considerations

  • Account scope

    The assistant has your account's access. Use limited accounts for agents.

  • Beta status

    The server is in beta. Test before relying on it.

  • Protected branches

    Keep protection and approvals on.

  • Untrusted text

    Treat issue and log content as data, not instructions.

Related servers

Servers that pair well with it

GitHub

GitHub's official MCP server lets AI read repositories, search code, manage issues and pull requests and, when allowed, change files.

Git

The MCP project's Git reference server lets AI read history and diffs and stage, commit and switch branches in a local repository.

Jira

Atlassian's official Rovo MCP server lets AI search, create and update Jira issues and search, read and create Confluence content.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.