productivity
Mailtrap MCP, CLI, and Lua Integration for AI Agents
Mailtrap integration docs for AI agents: MCP gateway setup, Mailtrap CLI commands, Lua API reference, credentials, and function schemas.Mailtrap 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.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
mailtrap.mailtrap_list_inboxes | Read read | 0 | List all inboxes in the Mailtrap account. Returns inbox IDs, names, and email addresses. |
mailtrap.mailtrap_get_inbox | Read read | 1 | Get details for a specific Mailtrap inbox by ID, including its email address, settings, and message counts. |
mailtrap.mailtrap_list_messages | Read read | 4 | List messages in a Mailtrap inbox with optional search and pagination. |
mailtrap.mailtrap_get_message | Read read | 2 | Get a single message from a Mailtrap inbox by its ID, including subject, sender, recipient, and body. |
mailtrap.mailtrap_send_test_email | Write write | 6 | Send a test email through Mailtrap. Provide sender, recipient(s), subject, and either text or HTML body. |
mailtrap.mailtrap_list_suppressions | Read read | 3 | List suppressions (blocked recipients) for a Mailtrap inbox. |
mailtrap.mailtrap_get_current_user | Read read | 0 | Get the current Mailtrap user profile and account info. Useful as a health check. |