Mailgun MCP events
Mailgun's webhook events are available to agents as MCP events through Hookdeck Event Gateway.
Mailgun's MCP server
Mailgun's MCP server (@mailgun/mcp-server) runs locally and lets an AI assistant call the Mailgun API, for example to send email, check delivery stats, or list and change webhook configurations. Its tools don't deliver Mailgun's events. To get those into an agent, subscribe it through Hookdeck Event Gateway, as described below.
How to subscribe
- Connect your agent to Hookdeck's MCP server, the MCP Events bridge.
- Point your Mailgun webhook at a Hookdeck source.
- Your agent lists the available events and subscribes to the ones it needs.
Events
| Webhook event | MCP event |
|---|---|
accepted | mailgun.accepted |
delivered | mailgun.delivered |
failed | mailgun.failed |
permanent_fail | mailgun.permanent_fail |
temporary_fail | mailgun.temporary_fail |
opened | mailgun.opened |
clicked | mailgun.clicked |
unsubscribed | mailgun.unsubscribed |
complained | mailgun.complained |
Subscribe your agent to Mailgun events.
Point your Mailgun webhook at Event Gateway and run the MCP Events bridge. Event Gateway delivers each event to the agents whose subscription filters it matches, and retries failures.