Mailgun MCP Server

Interact with Mailgun API.

Remote serverstreamable-httpTypeScript

What is the Mailgun MCP Server?

Interact with Mailgun API.

What you get

The parenthetical labels above (validate, optimize, inspect) are the product tags used by tag filtering. Every other capability is registered under the send tag.

  • 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

Configuration and credentials

  • Node.js (v20.12 or higher) - Mailgun account and API key

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Mailgun MCP Server

{
  "mcpServers": {
    "mailgun": {
      "command": "npx",
      "args": [
        "-y",
        "@mailgun/mcp-server"
      ],
      "env": {
        "MAILGUN_API_KEY": "YOUR_MAILGUN_API_KEY",
        "MAILGUN_API_REGION": "us"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js (v20.12 or higher) - Mailgun account and API key
VariableDescriptionRequired
MAILGUN_API_KEYDeclared in the maintainer’s client configuration.Check documentation
MAILGUN_API_REGIONDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Mailgun to Capabilities.”
  • “Use Mailgun to Cursor.”
  • “Use Mailgun to Codex.”

Frequently asked questions

Interact with Mailgun API. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.