Mailgun MCP Server Logo

Mailgun MCP Server

Official

A Model Context Protocol server implementation that enables AI assistants like Claude Desktop to int...

16 views
0 installs
Updated Feb 14, 2026
Not audited
Tools I Recommend
A Model Context Protocol server implementation that enables AI assistants like Claude Desktop to interact with Mailgun email services, allowing users to send emails and visualize email delivery statistics through natural language.
  1. Obtain a Mailgun API key (Account API key — required)

    1. Sign in to your Mailgun dashboard (app.mailgun.com or app.eu.mailgun.com). (help.mailgun.com)
    2. Open your Profile / Account menu and go to “API Security” (or Account Settings → API Keys). (help.mailgun.com)
    3. Click “Add new key” / “Create Key”, give the key a description, choose a role, and confirm creation. (help.mailgun.com)
    4. Copy the generated API key immediately — it is shown only once. Save it in a secure place (password manager or secret store). (help.mailgun.com)
  2. (Optional) Create a Domain Sending Key instead (if you only need sending permissions)

    1. In the Mailgun dashboard go to Sending → Domains, select your domain, then the “Sending API keys” tab. (documentation.mailgun.com)
    2. Click “Add Sending Key”, give it a description, create it, then copy and save the key (also shown only once). (documentation.mailgun.com)
  3. Decide the MAILGUN_API_REGION value

    1. If your Mailgun dashboard URL is app.mailgun.com (US), use MAILGUN_API_REGION=us. If it is app.eu.mailgun.com (EU), use MAILGUN_API_REGION=eu. Mailgun uses different base API endpoints for US vs EU. (documentation.mailgun.com)
    2. Note: MAILGUN_API_REGION is optional and defaults to "us" in the MCP config sample; set it explicitly if your account or domain is in the EU. (README config expects MAILGUN_API_KEY and MAILGUN_API_REGION.) (documentation.mailgun.com)
  4. Add the values into the FastMCP connection interface using the “Install Now” button

    1. Open the FastMCP connection interface for this MCP server and click the ready-made “Install Now” button to add environment variables.
    2. Enter the environment keys exactly as shown in the MCP config:
      • MAILGUN_API_KEY — paste the API key you copied.
      • MAILGUN_API_REGION — set to "us" or "eu" as determined above (optional; default "us").
    3. Save/confirm the connection in FastMCP. The MCP server will read the MAILGUN_API_KEY from the env and use the specified region for API requests.
  5. Verify the connection

    1. Use the MCP client to call a harmless read-only tool (for example, list domains or fetch account details) to confirm authentication works. If you get a 401/403, double-check the key and region. (documentation.mailgun.com)
  6. Security & rotation reminders

    1. Store the key securely (password manager or secrets manager); do not commit it to source control. (help.mailgun.com)
    2. Rotate keys periodically or create scoped Domain Sending Keys to limit blast radius. If you lose a key, create a new one and update FastMCP. (documentation.mailgun.com)

Quick Start

View on GitHub

More for Communication

View All →

More for Analytics and Data

View All →

Similar MCP Servers

Report Issue

Thank you! Your issue report has been submitted successfully.