Mailgun MCP
by Mailgun
Official Mailgun email API integration for AI-powered email management and delivery
communication Node.js Intermediate Self-hostable Verified
β 100 stars π
Updated: 1mo ago
Description
Official MCP server from Mailgun that brings the Mailgun email API into AI assistant workflows. Send transactional and marketing emails, manage sending domains, track delivery events, handle bounces and complaints, and configure email routes β all through natural language commands. Built with TypeScript, it provides a complete email operations toolkit for AI agents. Particularly useful for developers and teams who want to automate email workflows, monitor deliverability, and manage their Mailgun infrastructure without switching to the dashboard.
β Best for
Developers and teams automating email operations and delivery monitoring through AI
βοΈ Skip if
You need a general-purpose email client or use a different email service provider
π‘ Use cases
- Sending transactional emails programmatically through AI assistants
- Monitoring email delivery rates, bounces, and complaint events
- Managing sending domains and routing configurations
- Generating email delivery reports and analytics
π Pros
- β Official Mailgun project with direct API integration
- β Complete email operations β send, track, route, and manage domains
- β Event tracking for delivery monitoring and troubleshooting
- β Well-documented TypeScript implementation
π Cons
- β Requires Mailgun account with verified sending domain
- β Free tier has daily sending limits
- β Email sending through AI agents needs careful spam compliance review
π§ Exposed tools (5 tools)
| Tool | Category | Description |
|---|---|---|
| get_stats | analytics | Get email delivery statistics and metrics |
| list_domains | management | List configured sending domains |
| send_email | messaging | Send an email through the Mailgun API |
| track_events | monitoring | Track email delivery events including bounces and complaints |
| manage_routes | routing | Create and manage email routing rules |
β‘ Installation
Prerequisites:
- β’ Node.js v18+
- β’ Mailgun API key and configured sending domain
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
Set up your sending domain in Mailgun first and verify DNS records before using the MCP server. Use the track_events tool to monitor deliverability and catch issues early.
π Alternatives
Quick info
- Author
- Mailgun
- License
- MIT
- Runtime
- Node.js 18+
- Transport
- stdio
- Category
- communication
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows