Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Mailgun MCP Server

MCP server by mailgun Verified · npm:@mailgun

Mailgun MCP Server lets AI agents send email through Mailgun, check domain DNS and deliverability, and review account data. It is built for developers and teams who want assistants to work with their Mailgun account.

  • Score 85
  • 66 stars
  • 3.5k a week
  • Apache-2.0
  • Updated

Install Mailgun MCP Server

Built from the published package, never by AI.

claude mcp add mailgun-mcp-server -- npx -y @mailgun/mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Mailgun MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mailgun-mcp-server block.

About

Mailgun MCP Server is a Model Context Protocol server for Mailgun, the email service. It gives AI assistants a workflow-oriented interface to send email, diagnose deliverability, and manage account operations. Its tools cover messaging, domains, webhooks, routes, mailing lists, templates, analytics, suppressions, IP pools, bounce classification, email validation, inbox placement tests, and email previews.

The server runs locally over stdio and is published to npm as @mailgun/mcp-server. It is OpenAPI driven: at startup it registers a curated allowlist of Mailgun endpoints as tools. Tools are limited to read and update operations, with no delete operations exposed. Tag filtering and toolsets let users load only the products they need, and a dynamic mode loads tools on demand. It suits developers and teams who want AI agents to work with Mailgun.

Written from the project's README and checked against it.

Tools it gives your assistant

  • post-v3-domain-messagesSends an email through a Mailgun domain.
  • get-v4-domainsLists domains in the Mailgun account.
  • get-v4-domains-nameShows domain details and DNS records.
  • put-v4-domains-name-verifyRe-checks a domain's DNS records.
  • get_metrics_summaryReturns a summary of key sending metrics.
  • post-v1-analytics-logsQueries event logs.
  • get-v3-domain-bouncesLists bounces for a domain.
  • get-v3-domain-complaintsLists complaints for a domain.
  • validate_emailValidates an email address before sending.
  • mailgun_enable_toolsetLoads one or more toolsets on demand when using dynamic mode.

What you need

  • Node.js v20.12 or higher
  • Mailgun account
  • Mailgun API key

Try asking

  • Re-check the DNS records for my sending domain in Mailgun
  • Show the bounces and complaints recorded for my domain
  • Validate this email address before I send a message to it

Good to know

  • Runs locally on your machine and communicates over stdio, with no hosted version offered by Mailgun.
  • No delete operations are exposed; tools are limited to read and update.
  • On-demand toolset loading needs a client that refreshes its tool list when the server reports a change.
  • In clients that do not refresh their tool list, tools that change data need the default setting or --tags.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Mailgun MCP Server

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Mailgun MCP Server: common questions

Does Mailgun MCP Server run in the cloud?

No. The source says it runs locally on your machine over stdio, and Mailgun does not currently offer a hosted version.

Can the server delete data in my Mailgun account?

No. The source says no delete operations are exposed, which keeps the impact of an unintended action small.

Does it work with Mailgun's EU region?

Yes. Setting MAILGUN_API_REGION to eu selects the EU region, and the default is us.

How do I install Mailgun MCP Server?

In Claude Code run claude mcp add mailgun-mcp-server -- npx -y @mailgun/mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Mailgun MCP Server the official server?

Mailgun MCP Server is published by npm:@mailgun from its verified domain in the official MCP Registry.

Is Mailgun MCP Server free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Mailgun MCP Server safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Mailgun MCP Server?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Mailgun MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Mailgun MCP Server Install

Add to stack

Loading.