Connect Codex to Mailgun
What happens next
Set up in minutes
Choose where it runs
On your computer through your own Codex, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Mailgun
A preset of real Mailgun operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Mailgun
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your Codex first calls in. Codex connects when a session starts — run codex, or restart a running one.
Run this in your terminal
<your-link> is your personal server URL — setup mints it for you.
Exact capabilities
Tools Codex gets
Mailgun
28 toolsSend an email message through a sending domain.
Send a pre-built raw MIME (RFC 2822) message.
Retrieve a stored / inbound message by its storage key.
Query message events (accepted, delivered, opened, failed, ...).
Query the newer Logs/analytics API for message activity.
Retrieve aggregated sending analytics (Metrics API).
List sending domains.
Add a new sending domain.
Get details and DNS records for a domain.
Trigger / check DNS verification for a domain.
Remove a sending domain.
List all mailing lists.
Create a new mailing list.
List members of a mailing list.
Add a single member to a mailing list.
Add up to 1000 members to a mailing list in one call.
Remove a member from a mailing list.
List stored account-level templates.
Store a new reusable email template.
Retrieve a template and its versions.
Add a new version to an existing template.
List inbound-email routing rules.
Create an inbound route (match expression -> action).
Delete an inbound route.
List configured event webhooks for a domain.
List suppressed bounce addresses.
Add an unsubscribe record to the suppression list.
Validate a single email address (deliverability, risk, role flags).
Starting points
What you can build
Meet the runner
About Codex
Good to know
Frequently asked questions
Keep exploring
More ways to connect
Make it yours
Open your Codex agent in one click.
NoClick runs Codex for you with Mailgun wired in as tools. Connect your account and run.