Email

Mailgun MCP Server

Use Studio chat to drive this server — credentials stay in your workspace.

Mailgun is an email automation service that enables businesses to send, receive, and track transactional and marketing emails seamlessly through its API and SMTP relay. It is primarily used for scaling high-volume email communications efficiently.

6 tools
Agent guide included
API Key
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for Mailgun — workflow patterns, data models, and gotchas for your AI agent.

Mailgun

Email delivery infrastructure for transactional and marketing email. Full domain management, delivery event tracking, bounce/complaint monitoring, and aggregate stats.

Regions

Mailgun splits EU and US infrastructure; your connection targets one region with the matching API host.

Capability areas

Domain management
  • Domain directory — all sending domains with state (active/unverified/disabled) and type. Resolve domain names here before deeper reads.
  • Domain detail — DNS records (SPF, DKIM, MX, CNAME), verification state, and configuration for a specific domain.
Event monitoring (all require domain)
  • Event stream — timestamped delivery events: accepted, delivered, failed, opened, clicked, unsubscribed, complained, stored. Filter by event type. Best for delivery troubleshooting.
  • Aggregate stats — event counts for a domain over a time period; suited to delivery-rate dashboards.
Deliverability (all require domain)
  • Bounces — permanently failed addresses with SMTP error codes. Clean these from your lists.
  • Complaints — addresses that marked your email as spam. High rates damage sender reputation.

Workflows

  • Domain health check: enumerate domains → open domain detail for DNS → pull aggregate stats for delivery rates.
  • Delivery debugging: scan failed events → read SMTP error codes and failure reasons.
  • List hygiene: combine bounces and complaints → remove bad addresses from your sending lists.
  • Engagement tracking: filter opened/clicked events → measure recipient engagement.

Gotchas

  • Domain is required: events, stats, bounces, and complaints are all scoped to a specific domain. Enumerate domains first to get valid domain names.
  • Events retained 3 days: Mailgun only stores event data for ~3 days. Query promptly.
  • Event limit: max 300 events per request. Use pagination for full history.

Tools in this Server (6)

Mailgun Get Domain

Get detailed info for a specific domain — DNS records needed for verification (SPF, DKIM, MX, CNAME), current verification state, DKIM key size, and s...

Mailgun Get Domain Stats

Get aggregate email statistics for a domain — counts of accepted, delivered, failed, opened, clicked events over a time period. Requires 'domain'. Use...

Mailgun List Bounces

List bounced email addresses for a domain — addresses that permanently failed delivery. Returns email address, SMTP error code, error message, and tim...

Mailgun List Complaints

List spam complaints for a domain — addresses whose recipients marked your email as spam. Returns email address and timestamp. Requires 'domain'. High...

Mailgun List Domains

List all sending domains in your Mailgun account. Returns domain name, state (active/unverified/disabled), type, DNS verification status, and creation...

Mailgun List Events

List email delivery events for a domain — timestamped records of accepted, delivered, failed, opened, clicked, etc. Requires 'domain'. Use 'event' to ...

Frequently Asked Questions

What is the Mailgun MCP server?

Mailgun is an email automation service that enables businesses to send, receive, and track transactional and marketing emails seamlessly through its API and SMTP relay. It is primarily used for scaling high-volume email communications efficiently. It provides 6 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Mailgun to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/mailgun. Authentication is handled automatically.

How many tools does Mailgun provide?

Mailgun provides 6 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does Mailgun require?

Mailgun uses API Key. Mailgun requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect Mailgun to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/mailgun

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to chat with Mailgun?

Same flow: Studio opens on this server after sign-in. Keep chatting to call tools from the conversation.

Mailgun MCP Server & Skill — 6 Tools