# Mailgun MCP Server

Runs Mailgun's MCP server on your machine so your agent can send email, manage domains and read delivery stats with your API key.

MCP server by Mailgun. Category: Agent craft.

## Install

Project (for this project only):

```sh
npx add-mcp @mailgun/mcp-server --env 'MAILGUN_API_KEY=${MAILGUN_API_KEY}'
```

Works with: Claude Code, Codex CLI, Cursor, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx add-mcp @mailgun/mcp-server --env 'MAILGUN_API_KEY=${MAILGUN_API_KEY}' -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Where it runs

Your computer.

## What it needs

Environment variables:

- `MAILGUN_API_KEY` (required): Your Mailgun API key
- `MAILGUN_API_REGION` (optional): API region: us or eu

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.
- Needs a key or account: It asks for an API key or a sign in before it works.

## Source

[Open the source](https://documentation.mailgun.com/docs/mailgun/mcp). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

- Previous: [MailerSend MCP](https://syn4pse.dev/terminal/mailersend-mcp.md)
- Next: [Mailtrap MCP Server](https://syn4pse.dev/terminal/mailtrap-mcp-server.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
