How to connect Mailgun MCP to Claude Desktop
Add this block to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Cursor and Codex use a similar schema.
{
"mcpServers": {
"mailgun": {
"command": "npx",
"args": ["mcp-remote", "<YOUR_MCP_URL>"]
}
}
}
// HTTP-transport MCP. Get your <YOUR_MCP_URL> from the vendor dashboard.
// Server source: https://www.mailgun.com/integrations/mcp-server/
// Claude Code (one-liner): claude mcp add mailgun <YOUR_MCP_URL> --transport httpSome MCP servers require an API key. Check the source page for setup: mailgun.com/integrations/mcp-server.
Does Mailgun MCP cost extra?
Mailgun ships an official MCP server that uses your existing subscription credentials.
- No separate MCP licence to buy. You pay for your Mailgun plan, the MCP server queries that account.
- Whether it's gated to a specific tier wasn't extracted automatically — verify the access requirements on the MCP page or pricing docs.
Mailgun also publishes a REST API
Mailgun publishes an API, but per-tier gating wasn't extracted automatically.
See Mailgun API pageWhat you can do with Mailgun from an AI agent
Three shapes of agent workflow. Pick the row that matches how you actually use Claude / Cursor / Codex day to day.
Skip the dashboard, ask Claude
- "What campaigns underperformed this week?" answered in seconds
- Quick one-off questions without leaving the editor
- Pipe Mailgun data into your personal notes / docs without writing a script
Run client analysis at agent speed
- Hand the MCP server to your team — every consultant can ask Claude about any client's Mailgun account
- Multi-account workflows without context-switching the Mailgun UI
- Reports you'd normally spend hours on, done before standup
Production agent workflows
- Embed in your internal Codex / Cursor agents that triage Mailgun data daily
- Combine with other MCP servers in a multi-step agent chain
- Constrain agents to read-only roles to keep production Mailgun safe
Limits and gotchas
- Official MCP server — published by Mailgun themselves, so it should track product changes.
- Fallback: the REST API works for any flow the MCP server doesn't cover.
- Rate limits: MCP calls count against your underlying Mailgun API quota. Burst usage from a curious agent can drain a daily allowance fast.
Agent-readiness verdict
Moderate agent fit with official MCP support. Mailgun has a live official MCP server and documented public API, which enables Claude workflows, but lacks OpenAPI specs and SDKs across multiple languages. The missing structured outputs and webhook support limit automation depth compared to modern agent-native platforms.
Scored 2026-06-07 by Joonas (TMB).
Mailgun MCP & API FAQ
Is the Mailgun MCP server official?+
Can I use the Mailgun MCP with Cursor or Codex?+
Does Mailgun have a public API?+
Sources
- Mailgun official site: https://www.mailgun.com
- MCP server page: https://www.mailgun.com/integrations/mcp-server/
- API docs: https://www.mailgun.com/glossary/api/
Data verified by Joonas on the dates shown. MCP server status auto-rechecked weekly.
10+ years in digital marketing. I review marketing software for AI-stack fit: real pricing, MCP and API support, and how cleanly each tool drops into an AI agent workflow, cross-checked against verified data and real user feedback.

