Skip to content
GitLab logoGitLab logo

GitLab Integrations

Developer Tools

Build GitLab automations with your AI agent. Run them on Zapier.

Add Zapier to Claude, ChatGPT, Cursor, or another AI agent, and your agent can build automations across GitLab and 10,000+ other apps.
apps to connect
10,000+
ways to start a workflow
11
available app actions
11
  • Dependable AI workflows
  • Full audit trails and controls
  • Easy visual workflow manager
  • Free tier available
  • SOC 2 Type II, SOC 3, GDPR, and CCPA compliant

Top teams trust Zapier to automate work

  • Samsung
  • Okta
  • Mastercard
  • Nvidia
  • Airbnb

GitLab MCP server: connect GitLab to your AI agent with Zapier

Install Zapier once, then tell your agent what you want done. Behind the scenes, Zapier MCP finds the right triggers and actions to use with GitLab and runs them—all with your credentials managed by Zapier and kept out of the model.

Paste into any AI tool
Connect to Zapier MCP at https://mcp.zapier.com/api/v1/connect and help me sign in to Zapier or sign up. Then connect my GitLab account and help me build a Zap with GitLab: ask me what I want to automate. Read the setup steps at https://zapier.com/AGENTS.md if you can't connect.

Paste this prompt into Claude, ChatGPT, Cursor, or your preferred AI agent to build GitLab automations.

MCP server · Streamable HTTP
https://mcp.zapier.com/api/v1/connect

Install this server in Claude, ChatGPT, Cursor, VS Code, or any MCP client. You sign in once with OAuth.

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection gitlab

Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.

Terminal · no project
npx @zapier/install-zapier

Run this command to print setup instructions for your client, then follow the prompts to sign in.

Ask your AI agent to do it

Tell Claude, ChatGPT, or your go-to AI agent to install Zapier MCP, and it’ll get you started with Zapier.

Wire it into your own code

Connect your agent to GitLab and 10,000+ more apps with the TypeScript SDK. Zapier handles OAuth and token refresh.

Set it up from your terminal

Tell your coding agent to run one command. It installs Zapier MCP so your agent can use GitLab and other apps.

Use a premade GitLab automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.

With Zapier MCP installed, your AI agent can build automations across 10,000+ apps and 90,000+ triggers and actions. Automations run reliably on Zapier from an app event, on a schedule (cron), or from a webhook. Here are the GitLab triggers and actions your agent can build with right away.

  • New Code Snippet Comment

    Triggers when a new comment is made on a code snippet in the selected project

  • New Commit

    Trigger when a commit is made on the specified project.

  • New Commit Comment

    Triggers when a new comment is made on a commit in the selected project

  • New Group Issue Event

    Triggers on group issue events, e.g. when an issue is opened, updated, or closed.

  • New Group Merge Request Event

    Triggers on an open, merge, close, or update merge request event.

  • New Issue Comment

    Triggers when a new comment is made on an issue in the selected project

  • New Project Issue Event

    Triggers on project issue events, e.g. when an issue is opened, updated, or closed.

  • New Job Event

    Triggers for a specified job event in a project.

Your agent picks the right GitLab action from what you ask. Connect Zapier once and it can use 23 GitLab tools, each with typed inputs. Zapier handles GitLab’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.

Set up GitLab MCP in Claude, Claude Code, ChatGPT, Cursor, and Codex

Zapier MCP works with any MCP client that supports Streamable HTTP. Connect or add Zapier in your AI tool, sign in when prompted, then ask for GitLab.

MCP server · Streamable HTTP · OAuth
https://mcp.zapier.com/api/v1/connect
  • Claude

    Connect Zapier in Claude and sign in when prompted. Claude setup guide

  • Claude Code

    Install Zapier MCP in Claude Code, then sign in from the terminal. Claude Code setup guide

  • ChatGPT

    Connect Zapier in ChatGPT and approve the sign-in. ChatGPT setup guide

  • Cursormcp.json

    Add Zapier to Cursor and sign in. Cursor setup guide

  • Codex

    Add Zapier to Codex and sign in. Codex setup guide

  • VS Code and other clientsmcp.json

    Add Zapier to any MCP client that supports Streamable HTTP.

  • OpenCodeopencode.json

    Add Zapier to OpenCode.

  • Terminal auto-installer

    Install Zapier MCP in whichever client you have.

How your agent gets these tools

  1. Connect Zapier to your AI tool (pick yours above) and sign in once in the browser. Zapier sets up your MCP server, with no token to paste.
  2. Ask your agent to connect GitLab. It calls discover_zapier_actions to find the GitLab actions, then enable_zapier_action to add them.
  3. Approve the GitLab sign-in when prompted. If GitLab isn’t connected yet, the first call returns a sign-in link.
  4. Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then, execute_zapier_read_action and execute_zapier_write_action run it.

Use GitLab in 35 AI tools with Zapier MCP

23 GitLab MCP tools

ToolMCP nameWhat it does
New Code Snippet Commentgitlab_new_code_snippet_comment

Trigger · Read-only. Triggers when a new comment is made on a code snippet in the selected project

Required: id (Project)

New Commitgitlab_new_commit

Trigger · Read-only. Trigger when a commit is made on the specified project.

Required: id (Project)

Optional: ref_name (Branch or Tag)

New Commit Commentgitlab_new_commit_comment

Trigger · Read-only. Triggers when a new comment is made on a commit in the selected project

Required: id (Project)

New Group Issue Eventgitlab_new_group_issue_event

Trigger · Read-only. Triggers on group issue events, e.g. when an issue is opened, updated, or closed.

Required: id (Group)

Optional: event

New Group Merge Request Eventgitlab_new_group_merge_request_event

Trigger · Read-only. Triggers on an open, merge, close, or update merge request event.

Required: id (Group)

Optional: event

New Issue Commentgitlab_new_issue_comment

Trigger · Read-only. Triggers when a new comment is made on an issue in the selected project

Required: id (Project)

New Project Issue Eventgitlab_new_project_issue_event

Trigger · Read-only. Triggers on project issue events, e.g. when an issue is opened, updated, or closed.

Required: id (Project)

Optional: event

New Job Eventgitlab_new_job_event

Trigger · Read-only. Triggers for a specified job event in a project.

Required: project_id (Project)

Optional: status_list (Event), job (Job Name)

New Merge Request Commentgitlab_new_merge_request_comment

Trigger · Read-only. Triggers when a new comment is made on a merge request in the selected project

Required: id (Project)

Optional: mergeRequestAuthor (Merge Request Author), mergeRequestAssignee (Merge Request Assignee), commentAuthor (Comment Author)

New Project Merge Request Eventgitlab_new_project_merge_request_event

Trigger · Read-only. Triggers on an open, merge, close, or update merge request event.

Required: id (Project)

Optional: event

Merge Request Review Requestgitlab_merge_request_review_request

Trigger · Read-only. Triggers when you are requested to review a merge request.

Optional: group_id (Group), project_id (Project)

Find Group Merge Requestsgitlab_find_group_merge_requests

Search · Read-only. Find Merge Requests for a Group

Required: group_id (Group)

Optional: labels, scope, state, order_by (Order By)

Find All Merge Requestsgitlab_find_all_merge_requests

Search · Read-only. Finds all Merge Requests that the authenticated user has access to.

Optional: scope, state, order_by (Order By), label_load_choice (Filter by Labels from a Group or Project?)

Find Project Merge Requestsgitlab_find_project_merge_requests

Search · Read-only. Finds Merge Requests for a Project

Required: project_id (Project)

Optional: labels, scope, state, order_by (Order By)

Make API GET Requestgitlab_make_api_get_request

Action · Read-only. Make a GET HTTP request to GitLab's API, without needing to handle authentication. Fixed parameters: - method: GET

Required: fail_on_errors (Stop on error), url

Optional: querystring (Query string parameters), headers (Additional request headers), body

Create Branchgitlab_create_branch

Action · Writes data. Creates a new branch.

Required: project_id (Project), name

Optional: ref (Reference Branch Name)

Create Commitgitlab_create_commit

Action · Writes data. Creates a new commit. Supports creating or updating a file.

Required: project_id (Project), commit_message (Commit Message), branch (Branch Name), file_action (File Action), file_path (File Path), file_content (File Contents)

Create Issuegitlab_create_issue

Action · Writes data. Creates a new issue.

Required: id (Project), title

Optional: description, labels, assignee_username (Assignee Gitlab Username)

Add Note to Issuegitlab_add_note_to_issue

Action · Writes data. Adds a new note.

Required: id (Project), issue_iid (Issue), body

Optional: confidential

Create Merge Requestgitlab_create_merge_request

Action · Writes data. Creates a new merge request.

Required: project_id (Project), title, source_branch (Source Branch)

Optional: description, target_branch (Target Branch), squash (Squash Commits), remove_source_branch (Remove Source Branch)

Add Note to Merge Requestgitlab_add_note_to_merge_request

Action · Writes data. Adds a new note.

Required: id (Project), merge_request_iid (Merge Request), body

Optional: confidential

Update Merge Requestgitlab_update_merge_request

Action · Writes data. Updates an existing merge request.

Required: id (Project), merge_request_iid (Merge Request)

Optional: title, description, add_labels (Add Labels), remove_labels (Remove Labels), state_event (State)

Make API Mutating Requestgitlab_make_api_mutating_request

Action · Writes data. Make a mutating HTTP request (POST, PUT, PATCH, DELETE, etc.) to GitLab's API, without needing to handle authentication.

Required: fail_on_errors (Stop on error), method (HTTP Method), url

Optional: querystring (Query string parameters), headers (Additional request headers), body

GitLab API with the Zapier SDK, without pasting an API key

The Zapier SDK gives your code one way to call GitLab. You connect your account once, and your code references that connection instead of a raw token.

branch (Create Branch) requires project_id and name. Every GitLab action and its inputs are listed under GitLab triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection gitlab
TypeScript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "gitlab", owner: "me" });

const { data } = await zapier.runAction({
  app: "gitlab",
  actionType: "write",
  action: "branch",
  connection: connection.id,
  inputs: {
    project_id: "", // Project
    name: "",
  },
});
Zapier SDK CLI
npx zapier-sdk run-action gitlab write branch \
  --inputs '{"project_id":"","name":""}'

Frequently asked questions about automating with GitLab

How do I connect GitLab to Claude?

Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect GitLab. Claude finds the GitLab actions and adds them. If GitLab needs a sign-in, you approve it once.

Can I use the GitLab API without managing API keys?

With the Zapier SDK you connect your GitLab account to Zapier once, and your code runs actions through that connection. Zapier handles GitLab’s login, so you never paste an API key into your code.

What can an AI agent do with GitLab?

Through Zapier MCP, your agent can use 23 GitLab tools, such as New Code Snippet Comment, New Commit, and New Commit Comment. 15 tools only read data, so you can start with those before you let your agent make changes.

My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

Point your AI agent to this page’s markdown file to build GitLab automations. It covers how GitLab connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI. To start from a ready-made Zap instead, have it search zapier.sh.

About GitLab

GitLab is an open source code collaboration tool with a rich feature set including management of repositories, reviewing tools, issue tracking, activity feeds and much more.

Related categories: Developer Tools