Mailgun Integrations
Transactional Email
Build Mailgun automations with your AI agent. Run them on Zapier.
- apps to connect
- 10,000+
- ways to start a workflow
- 10
- available app actions
- 6
Automate Mailgun with Zapier
- 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
Mailgun MCP server: connect Mailgun 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 Mailgun and runs them—all with your credentials managed by Zapier and kept out of the model.
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 Mailgun account and help me build a Zap with Mailgun: 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 Mailgun automations.
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.
npm install @zapier/zapier-sdk npm install -D @zapier/zapier-sdk-cli npx zapier-sdk login npx zapier-sdk create-connection mailgun
Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.
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 Mailgun 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 Mailgun and other apps.
Use a premade Mailgun automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.
Connect Mailgun to the apps you already use
- Mailgun + VerseSales & CRM
- Mailgun + Google Forms (Legacy)Forms & Surveys
- Mailgun + Facebook Lead AdsAds & Conversion
- Mailgun + PaperformForms & Surveys
- Mailgun + Zoho SurveyForms & Surveys
- Mailgun + WHMCSCRM (Customer Relationship Management)
- Mailgun + Amazon SNSAmazon
- Mailgun + Google SheetsGoogle
- Mailgun + LearnWorldsOnline Courses
- Mailgun + MagentoeCommerce
- Mailgun + HubSpotMarketing Automation
- Mailgun + AirtableDatabases
- Mailgun + SlackTeam Chat
- Mailgun + ShopifyeCommerce
- Mailgun + BraintreePayment Processing
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 Mailgun triggers and actions your agent can build with right away.
New Log Data
Triggers when new log entries are found in Mailgun. Because this trigger uses polling, multiple log entries may be returned at once during each polling interval.
New Alert
Triggers when a Mailgun alert occurs. Validation alerts (e.g., bulk validation job completed, validation previews) are available on all plans. Deliverability alerts (e.g., IP or domain blocklist changes, reputation shifts) require an Optimize plan.
New Bounce Event
Triggers when an email permanently or temporarily fails in Mailgun.
New Complaint Event
Triggers when a recipient reports an email as spam in Mailgun.
New Delivery Event
Triggers when an email is successfully delivered in Mailgun.
New Failed Delivery Event
Triggers when an email fails to deliver in Mailgun.
New Inbound Email via Route
Triggers when an incoming email matches a Mailgun route. Automatically creates a route in Mailgun to forward emails to Zapier. Use Zapier Filters and Paths to process emails based on sender, subject, or content.
New Open/Click Event
Triggers when a recipient opens an email or clicks a tracked link in Mailgun.
Your agent picks the right Mailgun action from what you ask. Connect Zapier once and it can use 17 Mailgun tools, each with typed inputs. Zapier handles Mailgun’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.
Set up Mailgun 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 Mailgun.
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
- Cursor
mcp.jsonAdd Zapier to Cursor and sign in. Cursor setup guide
- Codex
Add Zapier to Codex and sign in. Codex setup guide
- VS Code and other clients
mcp.jsonAdd Zapier to any MCP client that supports Streamable HTTP.
- OpenCode
opencode.jsonAdd Zapier to OpenCode.
- Terminal auto-installer
Install Zapier MCP in whichever client you have.
How your agent gets these tools
- 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.
- Ask your agent to connect Mailgun. It calls
discover_zapier_actionsto find the Mailgun actions, thenenable_zapier_actionto add them. - Approve the Mailgun sign-in when prompted. If Mailgun isn’t connected yet, the first call returns a sign-in link.
- Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then,
execute_zapier_read_actionandexecute_zapier_write_actionrun it.
Use Mailgun in 35 AI tools with Zapier MCP
- Amazon Quick by AWS
- Antigravity by Google
- Antigravity CLI by Google
- ChatGPT by OpenAI
- Claude by Anthropic
- Claude Code by Anthropic
- Claude Cowork by Anthropic
- Claude Duet by Anthropic
- Claude for Small Business by Anthropic
- Copilot Studio by Microsoft
- Dots by OpenAI
- Figma Make by Figma
- Gemini by Google
- Gemini Enterprise by Google
- Grok by SpaceXAI
- Grok Bot by SpaceXAI
- Grok Build (Cursor) by Anysphere
- Julius AI by Caesar Labs
- Kiro by AWS
- Linear Agent by Linear
- Manus by Manus AI
- Muse by Meta
- OpenClaw by the OpenClaw Foundation
- OpenCode by Anomaly
- Pally
- Replit by Replit
- Slackbot by Slack
- Superhuman Go by Superhuman
- Toolhouse
- v0 by Vercel
- Vapi by Vapi
- Vibe by Mistral AI
- VS Code by Microsoft
- Warp by Denver Technologies
- Zed by Zed Industries
17 Mailgun MCP tools
| Tool | MCP name | What it does |
|---|---|---|
| New Log Data | mailgun_new_log_data | Trigger · Read-only. Triggers when new log entries are found in Mailgun. Because this trigger uses polling, multiple log entries may be returned at once during each polling interval. |
| New Alert | mailgun_new_alert | Trigger · Read-only. Triggers when a Mailgun alert occurs. Validation alerts (e.g., bulk validation job completed, validation previews) are available on all plans. Deliverability alerts (e.g., IP or domain blocklist changes, reputation shifts) require an Optimize plan. Optional: |
| New Bounce Event | mailgun_new_bounce_event | Trigger · Read-only. Triggers when an email permanently or temporarily fails in Mailgun. |
| New Complaint Event | mailgun_new_complaint_event | Trigger · Read-only. Triggers when a recipient reports an email as spam in Mailgun. |
| New Delivery Event | mailgun_new_delivery_event | Trigger · Read-only. Triggers when an email is successfully delivered in Mailgun. |
| New Failed Delivery Event | mailgun_new_failed_delivery_event | Trigger · Read-only. Triggers when an email fails to deliver in Mailgun. |
| New Inbound Email via Route | mailgun_new_inbound_email_via_route | Trigger · Read-only. Triggers when an incoming email matches a Mailgun route. Automatically creates a route in Mailgun to forward emails to Zapier. Use Zapier Filters and Paths to process emails based on sender, subject, or content. |
| New Open/Click Event | mailgun_new_open_click_event | Trigger · Read-only. Triggers when a recipient opens an email or clicks a tracked link in Mailgun. |
| New Unsubscribe Event | mailgun_new_unsubscribe_event | Trigger · Read-only. Triggers when a recipient unsubscribes in Mailgun. |
| New List | mailgun_new_list | Trigger · Read-only. Triggers when a new mailing list is added to your account. |
| Make API GET Request | mailgun_make_api_get_request | Action · Read-only. Make a GET HTTP request to Mailgun's API, without needing to handle authentication. Fixed parameters: - method: GET Required: Optional: |
| Bulk Email Validation | mailgun_bulk_email_validation | Action · Writes data. Upload a CSV (with an "email" header) and start a bulk validation job using Mailgun V4 API. Required: |
| Send Email | mailgun_send_email | Action · Writes data. Sends an email using your Mailgun account. Required: Optional: |
| Get Bulk Validation Results | mailgun_get_bulk_validation_results | Action · Writes data. Retrieves completed bulk validation job results using the job identifier for automated result processing. Required: |
| Add Mailing List Member | mailgun_add_mailing_list_member | Action · Writes data. Adds a new member to a mailing list in Mailgun. Required: Optional: |
| Validate Email | mailgun_validate_email | Action · Writes data. Validates an email address using Mailgun's validation service and returns comprehensive deliverability results. Required: |
| Make API Mutating Request | mailgun_make_api_mutating_request | Action · Writes data. Make a mutating HTTP request (POST, PUT, PATCH, DELETE, etc.) to Mailgun's API, without needing to handle authentication. Required: Optional: |
Mailgun API with the Zapier SDK, without pasting an API key
The Zapier SDK gives your code one way to call Mailgun. You connect your account once, and your code references that connection instead of a raw token.
bulkValidateEmail (Bulk Email Validation) requires list_id and file. Every Mailgun action and its inputs are listed under Mailgun triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs
npm install @zapier/zapier-sdk npm install -D @zapier/zapier-sdk-cli npx zapier-sdk login npx zapier-sdk create-connection mailgun
import { createZapierSdk } from "@zapier/zapier-sdk";
const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "mailgun", owner: "me" });
const { data } = await zapier.runAction({
app: "mailgun",
actionType: "write",
action: "bulkValidateEmail",
connection: connection.id,
inputs: {
list_id: "", // Job List Name
file: "", // CSV File
},
});npx zapier-sdk run-action mailgun write bulkValidateEmail \
--inputs '{"list_id":"","file":""}'Frequently asked questions about automating with Mailgun
How do I connect Mailgun to Claude?
Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect Mailgun. Claude finds the Mailgun actions and adds them. If Mailgun needs a sign-in, you approve it once.
Can I use the Mailgun API without managing API keys?
With the Zapier SDK you connect your Mailgun account to Zapier once, and your code runs actions through that connection. Zapier handles Mailgun’s login, so you never paste an API key into your code.
What can an AI agent do with Mailgun?
Through Zapier MCP, your agent can use 17 Mailgun tools, such as New Log Data, New Alert, and New Bounce Event. 11 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 Mailgun automations. It covers how Mailgun connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI.
About Mailgun
Mailgun is a tool with powerful APIs that allow you to send, receive, track and store email effortlessly. Except, with Zapier you don't have to write any code!
Related categories: Transactional Email

