Mailgun MCP Server
Provides MCP resources and tools for AI assistants to access/manage domains, suppression lists, tracking settings, and send emails via the Mailgun platform.
webhooks_domain_configuration
DatasetList of configured webhooks (event types and their associated URLs) for a specific domain.
bounce_record
DatasetLookup details for a specific bounced email address on the suppression list.
allowlist_records
DatasetList all entries (email addresses or patterns) on the domain's allowlist.
allowlist_record_lookup
DatasetLookup details for a specific entry (email address or pattern) on the domain's allowlist.
domains
DatasetList of domains registered with Mailgun, including verification status and configuration details.
domain_details
DatasetDetails for a specific domain registered with Mailgun.
domain_keys_all_domains
DatasetList domain keys across all domains, with optional filtering by signing domain or selector.
domain_tracking_settings
DatasetRetrieves the current configuration for click, open, and unsubscribe tracking for a specific domain.
account_stats_totals_deprecated
DatasetGets stat totals for an entire account. WARNING: This API is deprecated in favor of the Metrics API.
domain_stats_totals_deprecated
DatasetGets stat totals for a specific domain. WARNING: This API is deprecated in favor of the Metrics API.
account_domain_stats_totals_deprecated
DatasetGets stat totals for all domains in an account, aggregated by time resolution. WARNING: This API is deprecated in favor of the Metrics API.
add_authorized_recipient
ToolAdds an email address as an authorized recipient for the sandbox domain (required for testing).
send_message
ToolSends an email message using the Mailgun API.
create_domain_webhook
ToolCreates a list of webhook URLs to receive Mailgun's POST requests containing event information.
list_logs
ToolGets customer event logs for an account, allowing filtering by date, event type, and other criteria. Although this is a query function, it uses the HTTP POST method.
get_account_metrics
ToolGets filtered metrics for an account, allowing time-series analysis of email events (e.g., accepted, delivered, clicked).
import_bounces
ToolImports a list of bounced email addresses for a domain.
remove_bounce
ToolRemoves a specific bounced email address from the suppression list.
add_bounce
ToolManually adds a bounce record to the suppression list.
clear_all_bounces
ToolClears all bounce records for the specified domain.
import_allowlist
ToolImports a list of email addresses or patterns to the domain's allowlist.
remove_allowlist_entry
ToolRemoves a specific entry (email address or pattern) from the allowlist.
add_allowlist_record
ToolAdds a new email address or pattern to the domain's allowlist.
clear_allowlist
ToolClears all records from the domain's allowlist.
create_send_alert
ToolCreates a new send alert for an account.
update_send_alert
ToolUpdates an existing send alert.
delete_send_alert
ToolDeletes a specific send alert.
create_domain
ToolCreates a new domain for sending emails.
update_domain
ToolUpdates configuration settings for an existing domain.
verify_domain
ToolVerifies the DNS records for a domain.
delete_domain
ToolDeletes a domain from the account.
create_domain_key
ToolCreates a new domain key, optionally importing an existing PEM file.
delete_domain_key
ToolDeletes a specific domain key using the signing domain and selector.
activate_domain_key
ToolActivates a specific domain key for DKIM signing. Requires valid DNS records.
deactivate_domain_key
ToolDeactivates a specific domain key for DKIM signing.
update_dkim_authority
ToolUpdates the DKIM authority for a domain.
update_dkim_selector
ToolUpdates the DKIM selector for a domain.
update_click_tracking
ToolUse to turn on/off the click tracking at the domain level.
update_open_tracking
ToolUse to turn on/off the open tracking at the domain level.
update_unsubscribe_tracking
ToolUse to turn on/off the unsubscribe tracking at the domain level.
regenerate_tracking_certificate
ToolRegenerates an expired TLS certificate for tracking URLs.
generate_tracking_certificate
ToolGenerates a new TLS certificate for tracking URLs.
list_bounce_classification_metrics
ToolRetrieves bounce classification statistics over a time range, allowing filtering and dimension grouping. Uses POST method for complex querying.
update_account_tag
ToolUpdates the tag description for an account.
delete_account_tag
ToolDeletes a specific account tag.
list_account_tags_query
ToolGets the list of all tags, or filtered by tag prefix, for an account. Uses POST for complex querying/filtering.
update_dkim_key_rotation_status
ToolUpdates the DKIM key rotation status for a domain.
rotate_dkim_key
ToolInitiates the rotation of the DKIM key for a domain.
Mailgun Resources
Mailgun MCP Server
Connect your AI to Mailgun data through the Model Context Protocol.
- Granularly control which tools your AI can access
- Full visibility with logging and auditing
- Standard MCP protocol - no custom wrappers needed
Select a dataset or tool from the left to see more details
Universal MCP Server for Mailgun
Connect Claude, Microsoft Copilot, and any MCP-compatible AI to Mailgun. One server, instant access to datasets, tools, and workflows.
- Model Context Protocol: Industry standard supported by Claude and Microsoft Copilot
- Fine-Grained Control: Choose exactly which datasets and tools your AI can access
- Connect Once, Use Everywhere: Single authentication for all your AI assistants
Get Started with Your Favorite AI Tool
Follow our step-by-step guides for popular AI frameworks and tools