Menu
Mattering Automations connector

The Mailgun MCP for teams that automate transactional email

Connect Mailgun once and sending email, event logs, delivery stats, mailing lists, address validation, and suppression lists become building blocks for visual automations and AI agent workflows. 17 nodes across the Mailgun API.

17 ready-made nodes One credential to connect Works with Claude, ChatGPT, and Matter

What the Mailgun MCP connector does

The Mailgun connector for Mattering Automations turns core Mailgun email operations into canvas nodes: send messages through a sending domain, query the event log for deliveries, opens, clicks, and failures, aggregate domain stats over a time window, manage mailing lists and their members, validate email addresses, and read and edit the bounce, unsubscribe, and complaint suppression lists.

Each capability is a node on the Automations canvas, and every node speaks MCP, the open protocol for connecting AI assistants to tools. Claude, ChatGPT, and any MCP-capable assistant can use them, and they also power Matter, the platform's AI assistant. Describe the email flow you want in plain language and it gets built on the canvas in front of you.

The connector is region aware: every node targets the US stack at api.mailgun.net by default, and a per-node region setting switches it to the EU stack at api.eu.mailgun.net so your automations hit the region your account lives in.

One connection, three surfaces

  • Visual automations. Drag Mailgun nodes onto the canvas and wire them to triggers, conditions, and other apps.
  • AI agents, yours or ours. These nodes speak MCP, the open protocol, so Claude, ChatGPT, and any MCP-capable assistant can use them, and Matter, the agent built into the platform, uses them natively.
  • The whole platform. Combine with native tasks, projects, and other connectors, no middleware in between.

Every Mailgun node, ready to drop on the canvas

17 nodes, generated from the connector itself so this list always matches what ships. Expand a category to browse.

Read and query nodes 9

Mailgun: Get Domain Stats

Aggregate stat totals for a domain over a time window.

Mailgun: Get Events

Query the event log for a domain (deliveries, opens, clicks, failures, ...).

Mailgun: Get Mailing List

Get a single mailing list by address.

Mailgun: List Bounces

List the bounced addresses on a domain's suppression list.

Mailgun: List Complaints

List the spam-complaint addresses on a domain's suppression list.

Mailgun: List List Members

List the members of a mailing list (paginated).

Mailgun: List Mailing Lists

List the mailing lists on the account (paginated).

Mailgun: List Unsubscribes

List the unsubscribed addresses on a domain's suppression list.

Mailgun: Validate Email Address

Validate a single email address (v4 endpoint; billed as a Validate credit).

Action nodes 8

Mailgun: Add List Member

Add (or upsert) a member to a mailing list.

Mailgun: Add Unsubscribe

Add an address to a domain's unsubscribe suppression list.

Mailgun: Create Mailing List

Create a new mailing list.

Mailgun: Delete Bounce

Remove an address from a domain's bounce suppression list.

Mailgun: Delete Mailing List

Delete a mailing list (removes all its members).

Mailgun: Remove List Member

Remove a member from a mailing list.

Mailgun: Send Email

Send an email via a domain (form-encoded; use the `form` object for o:tag, h:Reply-To, template, etc.).

Mailgun: Update Mailing List

Update a mailing list's settings.

Connecting Mailgun takes one credential

Mailgun connects with your account's private API key. Find it in the Mailgun control panel under your account settings, in the API Keys or API Security section. Mailgun sends it over HTTP Basic auth, where the username is the fixed word api and the password is the key.

1

In Mailgun, open your account settings and copy your private API key from the API Keys section.

2

In Mattering Automations, open Connectors, choose Mailgun, and attach a secret holding the key. If the credential asks for a username, it is the literal word api.

3

Set each node's region to us or eu to match where your Mailgun account is hosted.

4

All Mailgun nodes appear in the canvas palette, ready to use.

Common uses for the Mailgun MCP

Send transactional and notification email

Drop a Send Email node at the end of any workflow to send receipts, alerts, or digest emails through your Mailgun sending domain, with the subject and body filled from earlier steps.

Watch deliverability and react to failures

Query the event log on a schedule, spot failed or bounced messages, and open a task in Mattering Productivity or post an alert so a person can follow up before it becomes a pattern.

Keep mailing lists in sync with your systems

As contacts sign up or opt out elsewhere, add and remove list members, upsert their variables, and create new lists, so your Mailgun audience matches your source of truth.

Validate addresses before you send

Run new email addresses through the validation node during intake, so an agent can flag risky or undeliverable addresses instead of mailing them and hurting your sender reputation.

Clean suppression lists on a cadence

List bounces, unsubscribes, and complaints, and remove stale bounce entries when an address is confirmed good again, all from one automation.

Report on sending from stats

Pull domain stat totals for accepted, delivered, opened, and clicked events over a window and hand the numbers to an AI step that writes a plain-language weekly summary.

Example: New signup gets validated, added, and welcomed

Built on the Automations canvas in a few minutes, or described in plain language to Matter and built for you.

1

Trigger: a form submission or upstream node produces a new signup email address.

2

Mailgun: Validate Email Address checks the address is deliverable.

3

Mailgun: Add List Member adds the address to your newsletter mailing list, subscribed yes.

4

Mailgun: Send Email sends the welcome message through your sending domain, personalized from the signup data.

Mailgun MCP questions, answered

Can an AI agent send email through this MCP?

Yes. Matter and any MCP-connected assistant, including Claude and ChatGPT, can call the Send Email node to send a message through one of your Mailgun sending domains, with the recipients, subject, and body set from the conversation or an earlier step.

Does this work with Claude, ChatGPT, or other AI assistants?

Yes. Mattering exposes these nodes over MCP, an open protocol for connecting AI assistants to tools, so any MCP-capable assistant, including Claude and ChatGPT, can connect to your workspace and work with Mailgun through them. Matter, the assistant built into the platform, uses the same nodes natively.

Which parts of Mailgun does the connector cover?

17 typed nodes across messaging (send email), the event log, domain stats, mailing lists and their members, address validation, and the bounce, unsubscribe, and complaint suppression lists.

What credential does it use?

Your Mailgun private API key, applied over HTTP Basic auth with the fixed username api. It is stored encrypted in Google Secret Manager and never appears in workflow logs.

Does it support the EU region?

Yes. Each node has a region setting: us targets api.mailgun.net and eu targets api.eu.mailgun.net. Set it to match where your Mailgun account is hosted, since data does not cross between the two regional stacks.

Can it validate email addresses?

Yes. The Validate Email Address node calls Mailgun's validation endpoint for a single address. Mailgun bills address validation as its own credit, so check your plan's validation allowance in Mailgun before running it at volume.

How does it handle attachments or advanced send options?

The Send Email node accepts a free-form form object for extra Mailgun message fields, so options like o:tag, o:tracking, h:Reply-To, and template are reachable by adding those keys. Consult Mailgun's messages API reference for the full list of supported fields.

What are Mailgun's API rate limits?

Mailgun documents its rate limits and sending limits by plan, and its API reference is the source of truth for current numbers. Node outputs surface Mailgun's status codes so a workflow can detect a limit response and retry.

How is this different from Zapier's Mailgun integration?

Mattering combines Mailgun with native tasks, projects, and AI agents in one platform. A bounce can become a tracked task, an agent can validate an address before you send, and the whole flow lives on one canvas you can see and edit.

17 nodes waiting on the canvas

Put Mailgun to work inside your workspace

Connect once, then use every node in visual automations and AI agent workflows across the Mattering platform.

All product names, logos, and brands are property of their respective owners and are used for identification purposes only. Use of these names, logos, and brands does not imply endorsement or affiliation. Mailgun is a product of its respective owner; Mattering is an independent platform.

Login Start Free