Mailgun integration
Powerful email sending API for transactional and marketing emails. Send, receive, and track emails at scale with high deliverability. Features include email validation, templates, analytics, and routing. Perfect for transactional notifications, marketing campaigns, and email automation. NOTE: Mailgun is region-scoped - US domains use base URL https://api.mailgun.net (default), EU domains use https://api.eu.mailgun.net. Use the host that matches the region your domain was created in.
Common Mailgun use cases
- List management
- Compliance
- List hygiene
- Template management
- Deliverability
- DNS setup
- Domain setup
- Domain cleanup
- Manual opt-out
- Email migration
What you can do with Mailgun
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Domain, 5 operations
- POSTcreate_domain
Creates a new sending domain in Mailgun.
- DELETEdelete_domain
Removes a sending domain from Mailgun.
- GETget_domain
Retrieves configuration details for a specific domain.
- GETget_domains
Retrieves all sending domains in your account.
- PUTverify_domain
Triggers DNS verification for a domain.
Template, 4 operations
- POSTcreate_template
Creates a reusable email template.
- DELETEdelete_template
Deletes an email template.
- GETget_template
Retrieves a specific email template.
- GETget_templates
Retrieves all email templates for a domain.
Bounce, 2 operations
- DELETEdelete_bounce
Removes an email address from the bounce list.
- GETget_bounces
Retrieves the list of bounced email addresses.
Message, 2 operations
- POSTsend_message
Sends an email message through Mailgun's API.
- POSTsend_mime
Sends a raw MIME-formatted email message.
Route, 2 operations
- POSTcreate_route
Creates a rule for handling incoming emails.
- GETget_routes
Retrieves all configured email routes.
Unsubscribe, 2 operations
- POSTadd_unsubscribe
Adds an email address to the unsubscribe list.
- GETget_unsubscribes
Retrieves the list of unsubscribed email addresses.
Complaint, 1 operation
- GETget_complaints
Retrieves spam complaints for a domain.
Event, 1 operation
- GETget_events
Retrieves email event logs for tracking and analytics.
Statistic, 1 operation
- GETget_stats
Retrieves aggregated email statistics.
Stored message, 1 operation
- GETget_stored_message
Retrieves a single stored message by its storage key.
Validation, 1 operation
- GETvalidate_email
Validates an email address for deliverability.
Use Mailgun from Claude Code, Cursor or Codex
Connect Mailgun in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Mailgun operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Mailgun
Create your workspace
Sign up free. Nothing to install.
Connect Mailgun once
Add your Mailgun connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Mailgun integration FAQ
- What can you do with the Mailgun integration?
- LiveContext exposes 22 operations on Mailgun, covering domain, template, bounce and message. Common uses include List management, Compliance and List hygiene.
Popular integrations
Instagram API with Instagram Login (graph.instagram.com). Manage a Business/Creator Instagram account…
Messaging platform API for building bots and integrations. Send messages, manage chats and channels, handle…
Google's video platform API for accessing video, channel, playlist, and comment data
Social media platform API for content creators and businesses. Access user info, manage videos, get…
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines,…
Google email service API for sending, receiving, and managing emails. Access messages, threads, labels,…
AI API from xAI (Elon Musk's AI company) powering Grok models. Access state-of-the-art language models with…
Professional networking platform API for managing profiles, connections, and content. Share posts, manage…