How much does the Mailgun API actually cost?
Mailgun publishes an API, but per-tier gating wasn't extracted automatically.
- Most likely scenario: API access is either included in all paid plans, or it's gated to higher tiers and we need to verify on the live docs page.
- Until verified, treat the question "which plan unlocks the API" as open. Don't budget on the assumption it's free with the cheapest paid plan.
API at a glance
Mailgun also has an MCP server
If you're wiring Mailgun into Claude / Cursor / Codex, the MCP server is usually less code than the REST API.
See Mailgun MCP pageWhat you can build with the Mailgun API
Three personas, three different shapes of build. Pick the row that matches how you actually ship.
Glue Mailgun into your daily workflow
- Pull a digest of campaign performance into your morning Slack
- Trigger a one-off backfill when something looks off
- Pipe data into your own SQLite for ad-hoc queries
Sell Mailgun reporting at scale
- White-label Mailgun data into client-branded dashboards
- Run scheduled multi-account reports without logging into the Mailgun UI
- Cross-reference with the rest of the client's stack (CRM, analytics, ad spend)
Production pipelines for Mailgun
- Real-time sync into your warehouse on a cron
- Custom alerts the dashboard's built-in alerting can't express
- Backfill + idempotency handling for Mailgun data older than the dashboard exposes
Quickstart template
# Starter template — endpoint paths and SDK package names come from # the Mailgun API docs: https://www.mailgun.com/glossary/api/ curl -X GET "https://www.mailgun.com/<your-endpoint>" \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/json" | jq .
Template only. Endpoint paths, exact base URL, and auth header format come from mailgun.com/glossary/api.
Limits and gotchas
- No OpenAPI spec — you write typed clients by hand or use a third-party generator on the docs HTML.
- No official SDK detected. Plan on hitting the API directly with your HTTP client of choice.
- Rate limits: always read the docs page before scaling — the published limit is usually lower than the practical one and overages can be expensive.
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.
Mailgun API FAQ
Does Mailgun have a public API?+
Should I use the API or the MCP server for Claude / Cursor / Codex?+
Sources
- Mailgun official site: https://www.mailgun.com
- API docs: https://www.mailgun.com/glossary/api/
- MCP server: https://www.mailgun.com/integrations/mcp-server/
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.

