Mailgun MCP Server
Overview
A Model Context Protocol (MCP) server for Mailgun that gives AI agents a practical, workflow-oriented interface to send email, diagnose deliverability, and manage account operations.
[!NOTE] This MCP server runs locally on your machine and communicates over stdio. Mailgun does not currently offer a hosted version of this server.
Capabilities
- Messaging — Send emails, retrieve stored messages, resend messages
- Domains — View domain details, verify DNS configuration, manage tracking settings (click, open, unsubscribe)
- Webhooks — List, create, and update event webhooks
- Routes — View and update inbound email routing rules
- Mailing Lists — Create, view, and update mailing lists and their members
- Templates — Create, view, and update email templates with versioning
- Analytics — Query sending metrics, usage metrics, and logs
- Stats — View aggregate statistics by domain, tag, provider, device, and country
- Suppressions — View bounces, unsubscribes, complaints, and allowlist entries
- IPs & IP Pools — View IP assignments and dedicated IP pool configuration
- Bounce Classification — Analyze bounce types and delivery issues
- Validation — Validate email address deliverability and syntax before sending (
validate) - Optimize (Inbox Placement) — Retrieve inbox placement / seed test results to gauge deliverability (
optimize) - Inspect (Email Preview) — Retrieve email rendering and preview test results across clients (
inspect) - Account Limits — View custom monthly sending limits






