Skip to content
GitHub logoGitHub logo

GitHub Integrations

Developer Tools

Build GitHub 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 GitHub and 10,000+ other apps.
apps to connect
10,000+
ways to start a workflow
20
available app actions
23
  • 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

GitHub MCP server: connect GitHub 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 GitHub 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 GitHub account and help me build a Zap with GitHub: 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 GitHub 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 github

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 GitHub 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 GitHub and other apps.

Use a premade GitHub 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 GitHub triggers and actions your agent can build with right away.

  • New Branch

    Triggers when a new branch is created.

  • New Collaborator

    Triggers when you add a new collaborator.

  • New Commit Comment

    Triggers when a new comment on a commit is created.

  • New Commit

    Triggers when a new commit is created.

  • New Repo Event

    Triggers when anything happens on a repo.

  • New Gist

    Triggers when you add/star a gist (public or private).

  • New Global Event

    Triggers when anything happens from or to you, on any repo.

  • Issue Closed

    Triggers when an issue is closed.

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

Set up GitHub 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 GitHub.

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 GitHub. It calls discover_zapier_actions to find the GitHub actions, then enable_zapier_action to add them.
  3. Approve the GitHub sign-in when prompted. If GitHub 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 GitHub in 36 AI tools with Zapier MCP

41 GitHub MCP tools

ToolMCP nameWhat it does
New Branchgithub_new_branch

Trigger · Read-only. Triggers when a new branch is created.

Required: repo

New Collaboratorgithub_new_collaborator

Trigger · Read-only. Triggers when you add a new collaborator.

Required: repo

New Commit Commentgithub_new_commit_comment

Trigger · Read-only. Triggers when a new comment on a commit is created.

Required: repo

New Commitgithub_new_commit

Trigger · Read-only. Triggers when a new commit is created.

Required: repo

Optional: head

New Repo Eventgithub_new_repo_event

Trigger · Read-only. Triggers when anything happens on a repo.

Required: repo

Optional: issue_only

New Gistgithub_new_gist

Trigger · Read-only. Triggers when you add/star a gist (public or private).

Optional: which (Which gists?)

New Global Eventgithub_new_global_event

Trigger · Read-only. Triggers when anything happens from or to you, on any repo.

Required: event_actor (Actor of Event)

Issue Closedgithub_issue_closed

Trigger · Read-only. Triggers when an issue is closed.

Optional: filter (Which types of issues should this trigger on?), organization, repo, label

New Issuegithub_new_issue

Trigger · Read-only. Triggers when a new issue is created.

Optional: filter (Which types of issues should this trigger on?), organization, repo, label

New Labelgithub_new_label

Trigger · Read-only. Triggers when a new label is created.

Required: repo

New Mentiongithub_new_mention

Trigger · Read-only. Triggers when your Github username is mentioned in a Commit, Comment, Issue or Pull Request.

New Milestonegithub_new_milestone

Trigger · Read-only. Triggers when a new milestone is created.

Required: repo

New Notificationgithub_new_notification

Trigger · Read-only. Triggers when a new notification is created.

Optional: repo

New Organizationgithub_new_organization

Trigger · Read-only. Triggers when a new organization is created.

New Pull Requestgithub_new_pull_request

Trigger · Read-only. Triggers when a new pull request is created.

Required: repo

New Releasegithub_new_release

Trigger · Read-only. Triggers when a new release is added.

Required: repo

New Repositorygithub_new_repository

Trigger · Read-only. Triggers when a new repository is created.

New Review Requestgithub_new_review_request

Trigger · Read-only. Triggers when a review is requested from you or a specified user.

Optional: assignee (Who is requested to review?), repo

New Teamgithub_new_team

Trigger · Read-only. Triggers when you are added to a team.

New Watchergithub_new_watcher

Trigger · Read-only. Triggers when a new watcher is added to a repo.

Required: repo

Find Branchgithub_find_branch

Search · Read-only. Finds a branch in a GitHub repository by name, or lists all branches.

Required: repo (Repository)

Optional: branch_name (Branch Name)

Get File Contentsgithub_get_file_contents

Search · Read-only. Retrieves the content, SHA, and metadata of a file in a GitHub repository. Useful for fetching the SHA required to update an existing file. Note: decoded_content is UTF-8 text and will be lossy for binary files — use content (base64) or download_url for those.

Required: repo (Repository), path (File Path)

Optional: ref (Branch, Tag, or Commit SHA)

Check Organization Membershipgithub_check_organization_membership

Search · Read-only. Finds a specific members.

Required: org (Organization Name), username (User Name (Login))

Find Organizationgithub_find_organization

Search · Read-only. Find an organization, whether or not you are a member.

Required: name

Find Repositorygithub_find_repository

Search · Read-only. Find a specific repository

Required: repo (Repository Name)

Optional: owner (Organization or User Name)

Find Issuegithub_find_issue

Search · Read-only. Finds a specific repo issue.

Required: repo, state, search_key (Search by), search_value (Search value)

Find Pull Requestgithub_find_pull_request

Search · Read-only. Finds a specific repo pull.

Required: repo, state, search_key (Search by), search_value (Search value)

Find Usergithub_find_user

Search · Read-only. Finds a specific user.

Optional: desired_username (Name (Login))

Add Labels to Issuegithub_add_labels_to_issue

Action · Writes data. Add labels to an existing issue without removing existing labels.

Required: repo, issue_number (Issue), labels

Create Commentgithub_create_comment

Action · Writes data. Creates a new comment in an Issue or Pull Request.

Required: repo, body, issue_id (Issue or Pull request)

Create Branchgithub_create_branch

Action · Writes data. Creates a new branch in a GitHub repository.

Required: repo (Repository), branch_name (Branch Name), ref (Source Branch/SHA)

Create or Update Filegithub_create_or_update_file

Action · Writes data. Creates a new file or updates an existing file in a GitHub repository.

Required: repo (Repository), path (File Path), message (Commit Message), content (File Content)

Optional: sha (File SHA (for updates)), branch

Delete Branchgithub_delete_branch

Action · Writes data. Deletes an unwanted branch.

Required: repo, branch_name (Branch Name)

Create Gistgithub_create_gist

Action · Writes data. Creates a new gist.

Required: filename (Gist Filename), content (Content of the Gist)

Optional: description, public (Make Gist Public?)

Create Issuegithub_create_issue

Action · Writes data. Create a new issue.

Required: repo, title

Optional: body, assignee, milestone, labels

Create Pull Requestgithub_create_pull_request

Action · Writes data. Create a new pull request and merge it (optional).

Required: repo, title, head, base

Optional: body, instant_merge

Create Repositorygithub_create_repository

Action · Writes data. Creates a new repository.

Required: name (Repository name)

Optional: organization, description, homepage (Homepage URL), private (Private repository), auto_init (Add a README file), gitignore_template (Gitignore template), license_template (License template), has_issues (Enable issues), has_wiki (Enable wiki)

Set Profile Statusgithub_set_profile_status

Action · Writes data. Sets your GitHub profile status.

Optional: emoji, message (Status Message), expiresAt (Expires At), limitedAvailability (Limited Availability), organization (Organization Name)

Submit Reviewgithub_submit_review

Action · Writes data. Submits a pull request review

Required: repo, pull_number (Pull Request), event (Action)

Optional: body (Comment), commit_id (Commit SHA)

Update Issuegithub_update_issue

Action · Writes data. Update an existing issue.

Required: repo, issue_id (Issue)

Optional: title, body, assignee, milestone, labels

Update Pull Requestgithub_update_pull_request

Action · Writes data. Update an existing pull request.

Required: repo, pull_number (Pull Request)

Optional: title, body, state, base

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

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

add_labels_to_issue (Add Labels to Issue) requires repo, issue_number, and labels. Every GitHub action and its inputs are listed under GitHub 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 github
TypeScript
import { createZapierSdk } from "@zapier/zapier-sdk";

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

const { data } = await zapier.runAction({
  app: "github",
  actionType: "write",
  action: "add_labels_to_issue",
  connection: connection.id,
  inputs: {
    repo: "",
    issue_number: "", // Issue
    labels: "",
  },
});
Zapier SDK CLI
npx zapier-sdk run-action github write add_labels_to_issue \
  --inputs '{"repo":"","issue_number":"","labels":""}'

Frequently asked questions about automating with GitHub

How do I connect GitHub to Claude?

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

Can I use the GitHub API without managing API keys?

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

What can an AI agent do with GitHub?

Through Zapier MCP, your agent can use 41 GitHub tools, such as New Branch, New Collaborator, and New Commit Comment. 28 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 GitHub automations. It covers how GitHub 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 GitHub

GitHub is the perfect place to share code and work collaboratively on private and open source software.

Related categories: Developer Tools