SuperAPIAI Directory

mailgun-mcp-server

github.com · AI developer platforms

Interact with Mailgun API.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose: This is the official Mailgun implementation of an MCP (Model Context Protocol) server, providing AI agents with a workflow-oriented Mailgun interface to send emails, diagnose deliverability, and manage account operations. The server runs locally and communicates over stdio; Mailgun currently does not offer a hosted version.

Main capabilities: Covers messages (send emails, retrieve stored messages, resend), domains (view details, verify DNS, manage click/open/unsubscribe tracking), Webhooks (list, create, update event Webhooks), routes (view and update inbound email routing rules), mailing lists (create, view, update lists and members), templates (create, view, update with version management), analytics (query sending metrics, usage metrics, and logs), stats (view aggregated statistics by domain, tag, provider, device, country), suppression lists (bounces, unsubscribes, complaints, allowlist), IPs and IP pools, bounce classification, email validation (validate), inbox placement optimization (optimize), email preview rendering checks (inspect), and account monthly sending limits. Tools are limited to read and update operations and do not expose delete operations.

Usage: Requires Node.js v20.12 or higher, as well as a Mailgun account and API key. The server is published as the npm package @mailgun/mcp-server, runs over stdio, and most clients can start it on demand with npx. During configuration, replace YOUR-mailgun-api-key with the key from your Mailgun API security settings; if the account is in the EU region, add "MAILGUN_API_REGION": "eu" to env; the default is us. Tools can be filtered by product tag (send, validate, optimize, inspect) via the --tags parameter or the MAILGUN_MCP_TAGS environment variable, using OR semantics; CLI flags take precedence. Use --list-tags to list tags and --help to view usage. It can also be run from source: after cloning, run npm install, npm run build to compile and copy the OpenAPI specification, then point the MCP client to the build output.

Applicable scenarios: Workflows that need to let AI agents manage Mailgun email sending, deliverabilitydiagnosis, and account configuration.

Limitations: Only read and update are supported; there are no delete operations; no client-side rate limiting is performed, relying on Mailgun server-side rate limiting; Webhook creation/update accepts any URL provided by the AI, and the server does not perform additional validation; tool parameters are validated with Zod according to the OpenAPI specification, and some edge parameters may fall back to loose validation; MCP clients calling tools that send data may require a paid plan; be aware of prompt injection risks. Licensed under Apache 2.0.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools