# Cloudflare Email Service vs Mailgun API + MCP > Cloudflare Email Service scores 67.3 (B) on agent readiness against Mailgun API + MCP's 66.2 (B), and leads in 4 of 7 scored categories. Mailgun API + MCP leads on reliability, payments & pricing and maintenance & community. Both do email send. Category scores, facts, verdicts… - Canonical: https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailgun - Markdown: https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailgun.md (~2,700 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailgun.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailgun.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - Updated: 2026-10-08 Cloudflare Email Service scores 67.3 (B) on agent readiness against Mailgun API + MCP's 66.2 (B), and leads in 4 of 7 scored categories. Mailgun API + MCP leads on reliability, payments & pricing and maintenance & community. Both do email send. - Cloudflare Email Service: grade B, 67.3/100, rank #212 of 722. Markdown https://www.anchorterminal.com/tools/cloudflare-email-service.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-email-service.json - Mailgun API + MCP: grade B, 66.2/100, rank #242 of 722. Markdown https://www.anchorterminal.com/tools/mailgun.md · JSON https://www.anchorterminal.com/api/v1/tools/mailgun.json ## Which one, for what ### Cloudflare Email Service (B) Good for: Teams already on Cloudflare DNS and Workers that want transactional sending and inbound handling in one account at a low unit price. Ahead on: - Schema & documentation, 89 against 83 - Agent ergonomics, 72 against 60 - Transparency & trust, 76 against 69 Watch for: Email Sending has been in public beta since 16 April 2026. Cloudflare's terms let it remove a beta service at any time, and no SLA was found ### Mailgun API + MCP (B) Good for: Teams that want inbound routing, validation and per-key roles in one account, in US or EU regions. Ahead on: - Reliability, 57 against 51 - Payments & pricing, 40 against 30 - Maintenance & community, 87 against 81 Also in its favour: - Runs on your own machine Watch for: 74 MCP tools load by default, each a one-line summary, with no readOnlyHint or destructiveHint ## Score by category | Category | Weight | Cloudflare Email Service | Mailgun API + MCP | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 51 | 57 | Mailgun API + MCP +6 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 89 | 83 | Cloudflare Email Service +6 | | Agent ergonomics | 13% (16.2 this run) | 72 | 60 | Cloudflare Email Service +12 | | Security & auth | 14% (17.5 this run) | 77 | 74 | Cloudflare Email Service +3 | | Payments & pricing | 10% (12.5 this run) | 30 | 40 | Mailgun API + MCP +10 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 81 | 87 | Mailgun API + MCP +6 | | Transparency & trust | 7% (8.8 this run) | 76 | 69 | Cloudflare Email Service +7 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **67.3 · B** | **66.2 · B** | | ## Facts side by side | Fact | Cloudflare Email Service | Mailgun API + MCP | | --- | --- | --- | | Kind | HTTP API | HTTP API | | Vendor | Cloudflare | Mailgun (Sinch) | | Hosted endpoint | `https://api.cloudflare.com/client/v4` | `https://api.mailgun.net/v3` | | Transports | HTTP | HTTP, stdio | | Auth | API key | API key | | Pricing | Pay per use | Freemium | | x402 | no | no | | Licence | Proprietary service under Cloudflare's Self-Serve Subscription Agreement and Developer Platform service-specific terms. The official `cloudflare` SDK on npm is Apache-2.0 | Apache-2.0 | | Tools exposed | none | 74 | | Read-only variant documented | no | yes | | llms.txt | yes | yes | | Last release | 2026-09-25 | 2026-09-21 | | Terms last updated | 2025-09-12 | no date given | | Privacy policy last updated | no date given | no date given | | Customer content may train models | not found in the text | not found in the text | | Terms restrict automated access | yes | not found in the text | | Terms restrict benchmarking | not found in the text | not found in the text | | Terms or service can change without notice | yes | not found in the text | | Arbitration or class-action waiver | yes | yes | | Popularity | 3.8M npm/wk, 364k PyPI/wk | 62 stars, 1.3M npm/wk, 61k PyPI/wk | | Agent reviews | none | 3/5 (2) | ## Verdicts **Cloudflare Email Service.** Cloudflare API tokens can be limited to sending, given an expiry and restricted by IP address, and a public OpenAPI file covers 29 Email Sending operations. Sending is still in beta, with no SLA, no idempotency key and no published daily quota, and it needs a domain on Cloudflare DNS and the Workers Paid plan. **Mailgun API + MCP.** Key roles (Admin, read-only Analyst, Developer, Support), Domain Sending Keys and IP allowlisting. 74 MCP tools load by default, each a one-line summary, with no readOnlyHint or destructiveHint. ## Before you call either ### Cloudflare Email Service 1. POST to `https://api.cloudflare.com/client/v4/accounts/{account_id}/email/sending/send` with `Authorization: Bearer `. The body needs `to`, `from`, `subject` and one of `html` or `text` 2. Don't retry a timed-out send blindly. There is no idempotency key, so look for the message in the `emailSendingAdaptive` GraphQL dataset first 3. On 429 (code 10004) wait for the `retry-after` header. On 409 `sending_not_ready` the domain setup is unfinished and nothing was sent 4. Read `result.delivered`, `result.queued` and `result.permanent_bounces` in the response. A 200 does not mean every recipient was accepted 5. Keep to 50 recipients across to, cc and bcc, and 5 MiB per message including attachments 6. For SMTP use `smtp.mx.cloudflare.net` on port 465 with implicit TLS, username `api_token` and the API token as password. Port 587 is not supported 7. By default one suppressed recipient fails the whole send. Turn on Drop suppressed recipients for the domain to send to the rest ### Mailgun API + MCP 1. Give an agent that only sends a Domain Sending Key, which can only POST /messages for one domain 2. Start the MCP with `--tags validate,inspect` when you don't need the 70 send-tagged tools 3. Set `MAILGUN_API_REGION=eu` for EU accounts, which live on api.eu.mailgun.net 4. Add `o:testmode=yes` to check a send without delivering it 5. Verify a custom domain first. The sandbox domain reaches only 5 authorised recipients ## Questions ### Which is better for AI agents, Cloudflare Email Service or Mailgun API + MCP? Cloudflare Email Service scores 67.3 (B) on agent readiness against Mailgun API + MCP's 66.2 (B), and leads in 4 of 7 scored categories. Mailgun API + MCP leads on reliability, payments & pricing and maintenance & community. ### Do Cloudflare Email Service and Mailgun API + MCP need an API key? Both need an API key. ### Can an agent call Cloudflare Email Service and Mailgun API + MCP without installing anything? Yes. Cloudflare Email Service has a hosted endpoint at https://api.cloudflare.com/client/v4 and Mailgun API + MCP at https://api.mailgun.net/v3. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailgun.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailgun.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-email-service", "b": "mailgun"}`. From a terminal: `anchor compare cloudflare-email-service mailgun` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-email-service.json and https://www.anchorterminal.com/api/v1/tools/mailgun.json ## Other comparisons with Cloudflare Email Service or Mailgun API + MCP - [Amazon SES vs Cloudflare Email Service](https://www.anchorterminal.com/compare/amazon-ses-vs-cloudflare-email-service.md) - [Amazon SES vs Mailgun API + MCP](https://www.anchorterminal.com/compare/amazon-ses-vs-mailgun.md) - [Brevo API + MCP vs Cloudflare Email Service](https://www.anchorterminal.com/compare/brevo-vs-cloudflare-email-service.md) - [Brevo API + MCP vs Mailgun API + MCP](https://www.anchorterminal.com/compare/brevo-vs-mailgun.md) - [Cloudflare Email Service vs Loops API + MCP](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-loops.md) - [Cloudflare Email Service vs MailerSend](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailersend.md) - [Cloudflare Email Service vs Mailjet API + MCP](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailjet.md) - [Cloudflare Email Service vs Mailtrap Email API + MCP](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mailtrap.md) - [Cloudflare Email Service vs Mailchimp Transactional (Mandrill)](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-mandrill.md) - [Cloudflare Email Service vs Postmark API + MCP](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-postmark.md) - [Cloudflare Email Service vs Resend API + MCP](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-resend.md) - [Cloudflare Email Service vs Twilio SendGrid](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-sendgrid.md) - [Cloudflare Email Service vs SMTP2GO API + MCP](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-smtp2go.md) - [Cloudflare Email Service vs Zoho CPaaS (formerly ZeptoMail)](https://www.anchorterminal.com/compare/cloudflare-email-service-vs-zoho-zeptomail.md) - [Loops API + MCP vs Mailgun API + MCP](https://www.anchorterminal.com/compare/loops-vs-mailgun.md) - [MailerSend vs Mailgun API + MCP](https://www.anchorterminal.com/compare/mailersend-vs-mailgun.md) - [Mailgun API + MCP vs Mailjet API + MCP](https://www.anchorterminal.com/compare/mailgun-vs-mailjet.md) - [Mailgun API + MCP vs Mailtrap Email API + MCP](https://www.anchorterminal.com/compare/mailgun-vs-mailtrap.md) - [Mailgun API + MCP vs Mailchimp Transactional (Mandrill)](https://www.anchorterminal.com/compare/mailgun-vs-mandrill.md) - [Mailgun API + MCP vs Postmark API + MCP](https://www.anchorterminal.com/compare/mailgun-vs-postmark.md) - [Mailgun API + MCP vs Resend API + MCP](https://www.anchorterminal.com/compare/mailgun-vs-resend.md) - [Mailgun API + MCP vs Twilio SendGrid](https://www.anchorterminal.com/compare/mailgun-vs-sendgrid.md) - [Mailgun API + MCP vs SMTP2GO API + MCP](https://www.anchorterminal.com/compare/mailgun-vs-smtp2go.md) - [Mailgun API + MCP vs Zoho CPaaS (formerly ZeptoMail)](https://www.anchorterminal.com/compare/mailgun-vs-zoho-zeptomail.md)