KosmoKrator

communication

Mailgun MCP, CLI, and Lua Integration for AI Agents

Mailgun integration docs for AI agents: MCP gateway setup, Mailgun CLI commands, Lua API reference, credentials, and function schemas.

7 functions 6 read 1 write API key auth

Mailgun for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
mailgun
route_slug
mailgun
package
mailgun
auth_strategy
api_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Mailgun MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mailgun.

Mailgun CLI Matrix

Use these pages for direct Mailgun CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
mailgun.mailgun_get_current_user Read read 0 Verify the Mailgun API connection and retrieve basic account info by listing domains.
mailgun.mailgun_get_domain Read read 1 Get details and DNS records for a specific Mailgun domain.
mailgun.mailgun_list_domains Read read 2 List all domains in your Mailgun account with optional pagination.
mailgun.mailgun_list_messages Read read 8 List message events in your Mailgun domain with optional filtering and pagination.
mailgun.mailgun_list_routes Read read 2 List all routes in your Mailgun account with optional pagination.
mailgun.mailgun_list_webhooks Read read 1 List all webhooks configured for a Mailgun domain.
mailgun.mailgun_send_email Write write 9 Send an email via Mailgun. Specify from, to, subject, and text or HTML content.