AUTOMATIONSWITCH

Mailgun MCP

by Mailgun

Mailgun's official MCP server. Send transactional emails, query logs, manage mailing lists. 55 GitHub stars and 2 commits on main in the last 30 days.

55·6 tools·Released SEP 2025·Apache-2.0
npx -y @mailgun/mailgun-mcp-server
Share:

Mailgun's official MCP server. Send transactional emails, query the event log, manage mailing lists from agents. 55 stars and 2 commits on main in the last 30 days.

Reviewed by M. Nouriel · MAY 2026

INSTALL THIS SERVER

Requires authenticationMAILGUN_API_KEY environment variable. Domain-scoped API keys recommended over private API keys.
{ "mcpServers": { "mailgun": { "command": "npx", "args": [ "-y", "@mailgun/mailgun-mcp-server" ], "env": { "MAILGUN_API_KEY": "YOUR_MAILGUN_KEY" } } } }
PrereqNPM: `@mailgun/mailgun-mcp-server`. Use a domain-scoped API key from the Mailgun dashboard for agent flows. Path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS).
{ "mcpServers": { "mailgun": { "command": "npx", "args": [ "-y", "@mailgun/mailgun-mcp-server" ], "env": { "MAILGUN_API_KEY": "YOUR_MAILGUN_KEY" } } } }
{ "mcpServers": { "mailgun": { "command": "npx", "args": [ "-y", "@mailgun/mailgun-mcp-server" ], "env": { "MAILGUN_API_KEY": "YOUR_MAILGUN_KEY" } } } }
{ "mcpServers": { "mailgun": { "command": "npx", "args": [ "-y", "@mailgun/mailgun-mcp-server" ], "env": { "MAILGUN_API_KEY": "YOUR_MAILGUN_KEY" } } } }
{ "mcpServers": { "mailgun": { "command": "npx", "args": [ "-y", "@mailgun/mailgun-mcp-server" ], "env": { "MAILGUN_API_KEY": "YOUR_MAILGUN_KEY" } } } }

6 TOOLS AVAILABLE

send_email
Send a transactional email via Mailgun
Admin
list_events
List delivery, bounce, and click events from the Mailgun event log
Read
list_domains
List Mailgun domains attached to the account
Read
list_mailing_lists
List Mailgun mailing lists
Read
add_list_member
Add a member to a Mailgun mailing list
Admin
list_templates
List Mailgun stored templates
Read

OUR ASSESSMENT

Strengths
  • Mailgun official maintenance.
  • 55 GitHub stars and Apache-2.0 license.
  • 2 commits on main in the last 30 days.
  • First email-vendor MCP in the directory.
  • Domain-scoped key support reduces blast radius.
Weaknesses
  • Mailgun account required.
  • Send-email tool carries reputation risk; agents that loop on send_email can trigger Mailgun spam blocks.
  • No streaming receive surface; bounces and complaints surface via list_events polling.
Security Notes

MAILGUN_API_KEY can be domain-scoped or account-wide. Use domain-scoped keys for agent flows to limit blast radius. send_email can dispatch to any address; rate-limit at the agent layer or use an allowlist of recipients for high-frequency flows.

Best For

Teams sending transactional email through Mailgun who want agents to handle support replies or list management; SaaS operators triaging bounces and complaints from inside an agent; growth teams managing Mailgun-driven mailing lists.

TECHNICAL DETAILS

Language
typescript
Transport
stdio
Clients
Claude DesktopClaude CodeCursorVS CodeWindsurf
License
Apache-2.0
npm
@mailgun/mailgun-mcp-server
Last Release
@mailgun/mailgun-mcp-server (npm latest)MAY 6, 2026
First Released
SEP 1, 2025

ADOPTION METRICS

// GitHub Stars
55

// Reading this55 stars on mailgun/mailgun-mcp-server. 2 commits on main in the last 30 days.

// Popularity Rank
#2
Globally · #2 in Communication

// Reading thisPairs with Slack, Discord, Telegram in communication category. Adds transactional-email vendor slot, complementing Resend in api category for vendor-API surface.

SOURCES & VERIFICATION

We don't take any single directory's word for it. Before scoring, we cross-reference 5 public MCP sources, install the server ourselves against the clients we cover, and record when we last re-verified.

01
Discovered
Manual submission
First indexed MAY 6, 2026
02
Cross-referenced
5 directories
PulseMCP, MCP.so, Glama, Smithery, Official MCP Registry
03
Verified against
Claude Desktop, Cursor
Installed and tested across clients
04
Last re-checked
MAY 6, 2026
Weekly re-verification
// How other directories see it

The same server, 5 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.

SourceTheir ratingTheir star countTheir downloadsLast synced
AutomationSwitch This page4.2editorial55MAY 6, 2026
PulseMCP— unratedunavailableunavailableMAY 6, 2026
MCP.so— unratedunavailableunavailableMAY 6, 2026
Glama— unratedunavailableunavailableMAY 6, 2026
Smithery— unratedunavailableunavailableMAY 6, 2026
Official MCP Registry— unratedunavailableunavailableMAY 6, 2026

// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.

// Get in touch

DISCUSS YOUR
MCP REQUIREMENTS.

Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.

Discuss Your MCP Requirements →