Mailgun MCP by usefulapi

v1.2.1
io.usefulapi/mailgun Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
limitintegerMaximum items to return.
searchstringSearch text matched against domain names.
skipintegerNumber of domains to skip (offset paging).
statestringFilter 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}.

ParameterTypeDescription
domain *stringSending 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.

ParameterTypeDescription
domain *stringSending 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
event *stringThe event to count, for example accepted, delivered, failed, opened, clicked, complained, unsubscribed.
durationstringWindow length such as 7d, 1m, or 1y, instead of start and end.
endstringWindow end date, for example 2026-11-26.
resolutionstringBucket size such as day, hour, or month.
startstringWindow 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
ascendingstringSort oldest first when yes (default no, newest first).
beginstringStart of the window, RFC 2822 or Unix timestamp.
endstringEnd of the window, RFC 2822 or Unix timestamp.
eventstringEvent type, for example delivered, failed, opened, clicked, rejected, complained, unsubscribed.
fromstringOnly events from this sender address.
limitintegerMaximum events to return (the API caps this at 300).
recipientstringOnly events for this recipient address.
severitystringFor 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
limitintegerMaximum items to return.
pagestringPagination token from a previous response (paging.next or paging.previous URL part).
termstringFilter 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
limitintegerMaximum items to return.
pagestringPagination token from a previous response (paging.next or paging.previous URL part).
termstringFilter 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
limitintegerMaximum items to return.
pagestringPagination token from a previous response (paging.next or paging.previous URL part).
termstringFilter 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.

ParameterTypeDescription
limitintegerMaximum lists to return.
skipintegerNumber 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.

ParameterTypeDescription
list_address *stringThe mailing list address, for example news@mg.example.com.
limitintegerMaximum members to return.
skipintegerNumber of members to skip (offset paging).
subscribedstringOnly 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
limitintegerMaximum items to return.
pstringPagination cursor from a previous response.
pagestringPage 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.

ParameterTypeDescription
limitintegerMaximum routes to return.
skipintegerNumber 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
limitintegerMaximum items to return.
pagestringPage token from a previous response.
prefixstringOnly 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.
from *stringSender, for example "Shop <hello@mg.example.com>".
subject *stringSubject line.
to *arrayRecipient addresses.
bccarrayBlind-copy addresses.
ccarrayCarbon-copy addresses.
htmlstringHTML body.
tagsarrayTags for reporting.
templatestringStored template name on the domain (instead of text or html).
template_variablesstringJSON object string of template variables, for example {"name":"Ana"}.
testmodebooleanWhen true, Mailgun accepts the message but does not deliver it.
textstringPlain-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.

ParameterTypeDescription
address *stringThe member's email address.
list_address *stringThe mailing list address.
namestringThe member's name.
subscribedstringSubscribed (yes, default) or not (no).
upsertstringWhen yes, update an existing member instead of failing.
varsstringJSON 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.

ParameterTypeDescription
domain *stringSending domain name, for example mg.example.com.