Mailgun
Interact with Mailgun API.
Ads
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. - 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 & I
Installation
claude mcp add mailgun -e MAILGUN_API_KEY=YOUR-mailgun-api-key -- npx -y @mailgun/mcp-server
Configuration
{
"mcpServers": {
"mailgun": {
"command": "npx",
"args": ["-y", "@mailgun/mcp-server"],
"env": {
"MAILGUN_API_KEY": "YOUR-mailgun-api-key",
"MAILGUN_API_REGION": "us"
}
}Capabilities
- Send emails
ask your assistant to send transactional or marketing emails through your Mailgun domain.
- Validate addresses
check email address syntax and deliverability risk before sending with `validate`.
- Diagnose deliverability
pull bounce classifications, inbox placement seed test results (`optimize`), and email previews across clients (`inspect`).
- Manage domains and DNS
verify domain DNS configuration and toggle click, open, and unsubscribe tracking settings.
- Query analytics and stats
retrieve sending metrics, usage stats, and aggregate views by domain, tag, provider, device, or country.
- Manage templates, lists, routes, and webhooks
create or update email templates, mailing lists and members, inbound routes, and event webhooks.
Tags
- communication
- email-automation
- api
Related MCP servers
ElevenLabs
OfficialThe official ElevenLabs MCP server
Resend Email
OfficialSend emails directly from your editor using the Resend API.
AgentRPC
OfficialConnect to any function, any language, across network boundaries using AgentRPC.
Twilio
OfficialInteract with Twilio APIs to send messages, manage phone numbers, configure your account, and more.