Mailgun MCP by usefulapi
v1.2.1Read domains, DNS, events, bounces and lists; send email and add list members in Mailgun.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mailgun_list_domains List domains
List sending domains on the account with state, type, and creation time. Good first call to find a domain name for other tools. Mailgun API: GET /v4/domains.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return. |
search | string | Search text matched against domain names. |
skip | integer | Number of domains to skip (offset paging). |
state | string | Filter by domain state, as the API names it (for example active). |
mailgun_get_domain Get a domain
Get one sending domain with its state, DNS records to publish (SPF, DKIM, MX, CNAME), and verification status. Mailgun API: GET /v4/domains/{name}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
mailgun_get_domain_tracking Get domain tracking settings
Get the click, open, and unsubscribe tracking settings of one domain. Mailgun API: GET /v3/domains/{name}/tracking.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
mailgun_get_domain_stats Get domain stats
Get total counts of one event (for example accepted, delivered, failed, opened, clicked, complained, unsubscribed) for a domain over a time window. Mailgun API: GET /v3/{domain}/stats/total.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
event * | string | The event to count, for example accepted, delivered, failed, opened, clicked, complained, unsubscribed. |
duration | string | Window length such as 7d, 1m, or 1y, instead of start and end. |
end | string | Window end date, for example 2026-11-26. |
resolution | string | Bucket size such as day, hour, or month. |
start | string | Window start date, for example 2026-11-01. |
mailgun_list_events List message events
List message events for a domain (delivered, failed, opened, clicked, and so on) with recipient, status, and timestamps. Use it to trace one recipient's delivery. Mailgun API: GET /v3/{domain}/events.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
ascending | string | Sort oldest first when yes (default no, newest first). |
begin | string | Start of the window, RFC 2822 or Unix timestamp. |
end | string | End of the window, RFC 2822 or Unix timestamp. |
event | string | Event type, for example delivered, failed, opened, clicked, rejected, complained, unsubscribed. |
from | string | Only events from this sender address. |
limit | integer | Maximum events to return (the API caps this at 300). |
recipient | string | Only events for this recipient address. |
severity | string | For failed events: temporary or permanent failure. |
mailgun_list_bounces List bounced addresses
List addresses that bounced on a domain, with the bounce code and reason. Mailgun suppresses these addresses for future sends. Mailgun API: GET /v3/{domain}/bounces.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
limit | integer | Maximum items to return. |
page | string | Pagination token from a previous response (paging.next or paging.previous URL part). |
term | string | Filter by part of an address. |
mailgun_list_unsubscribes List unsubscribed addresses
List addresses that unsubscribed from mail sent through a domain. Mailgun suppresses these for future sends. Mailgun API: GET /v3/{domain}/unsubscribes.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
limit | integer | Maximum items to return. |
page | string | Pagination token from a previous response (paging.next or paging.previous URL part). |
term | string | Filter by part of an address. |
mailgun_list_complaints List spam complaints
List addresses that marked mail from a domain as spam. Mailgun suppresses these for future sends. Mailgun API: GET /v3/{domain}/complaints.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
limit | integer | Maximum items to return. |
page | string | Pagination token from a previous response (paging.next or paging.previous URL part). |
term | string | Filter by part of an address. |
mailgun_list_mailing_lists List mailing lists
List mailing lists on the account with their addresses, names, and member counts. Mailgun API: GET /v3/lists.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum lists to return. |
skip | integer | Number of lists to skip (offset paging). |
mailgun_list_mailing_list_members List mailing list members
List members of one mailing list, with subscription state and member variables. Mailgun API: GET /v3/lists/{list}/members.
| Parameter | Type | Description |
|---|---|---|
list_address * | string | The mailing list address, for example news@mg.example.com. |
limit | integer | Maximum members to return. |
skip | integer | Number of members to skip (offset paging). |
subscribed | string | Only subscribed (yes) or unsubscribed (no) members. |
mailgun_list_templates List templates
List message templates on a domain with their names, descriptions, and active versions. Mailgun API: GET /v3/{domain}/templates.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
limit | integer | Maximum items to return. |
p | string | Pagination cursor from a previous response. |
page | string | Page to fetch (default first). |
mailgun_list_routes List routes
List inbound routes on the account: which incoming messages match, and where they are forwarded or stored. Mailgun API: GET /v3/routes.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum routes to return. |
skip | integer | Number of routes to skip (offset paging). |
mailgun_list_tags List tags
List message tags used on a domain with their counts. Tags group sends for reporting. Mailgun API: GET /v3/{domain}/tags.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
limit | integer | Maximum items to return. |
page | string | Page token from a previous response. |
prefix | string | Only tags that start with this text. |
mailgun_send_message Send an email
SENDS a real email from a domain now. Give text, html, or a stored template. Set testmode to true to have Mailgun accept the message without delivering it. Mailgun API: POST /v3/{domain}/messages.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |
from * | string | Sender, for example "Shop <hello@mg.example.com>". |
subject * | string | Subject line. |
to * | array | Recipient addresses. |
bcc | array | Blind-copy addresses. |
cc | array | Carbon-copy addresses. |
html | string | HTML body. |
tags | array | Tags for reporting. |
template | string | Stored template name on the domain (instead of text or html). |
template_variables | string | JSON object string of template variables, for example {"name":"Ana"}. |
testmode | boolean | When true, Mailgun accepts the message but does not deliver it. |
text | string | Plain-text body. |
mailgun_add_mailing_list_member Add a mailing list member
ADDS an address to a mailing list, so later sends to the list reach it. With upsert yes, an existing member is updated. Mailgun API: POST /v3/lists/{list}/members.
| Parameter | Type | Description |
|---|---|---|
address * | string | The member's email address. |
list_address * | string | The mailing list address. |
name | string | The member's name. |
subscribed | string | Subscribed (yes, default) or not (no). |
upsert | string | When yes, update an existing member instead of failing. |
vars | string | JSON object string of member variables. |
mailgun_verify_domain Re-check domain DNS
Asks Mailgun to re-check the DNS records of a domain now and returns the result. Running it again gives the same answer if nothing changed. Mailgun API: PUT /v4/domains/{name}/verify.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Sending domain name, for example mg.example.com. |