# Agentmail MCP connector

> Connects to the Agentmail MCP gateway to manage inboxes, drafts, threads, messages, attachments, and forwarding.

**URL:** https://caywork.com/learn/docs/node/agentmailmcp-node

## Content

The **Agentmail MCP Node** integrates with the Agentmail email platform through the Scalekit MCP gateway. It enables your AI agent to manage inboxes, drafts, messages, threads, attachments, and forwarding operations.

## Parameters

### Required Parameters
* **action** (string): The target Agentmail MCP action to run. Must be one of the enabled actions:
  * `agentmailmcp_create_draft`: Create a new email draft.
  * `agentmailmcp_create_inbox`: Create a new inbox.
  * `agentmailmcp_delete_draft`: Delete an existing draft.
  * `agentmailmcp_delete_inbox`: Delete an existing inbox.
  * `agentmailmcp_forward_message`: Forward a message to another recipient.
  * `agentmailmcp_get_attachment`: Retrieve an attachment.
  * `agentmailmcp_get_draft`: Get details of a specific draft.
  * `agentmailmcp_get_inbox`: Get details of a specific inbox.
  * `agentmailmcp_get_thread`: Get details of a specific thread.
  * `agentmailmcp_list_drafts`: List available drafts.
  * `agentmailmcp_list_inboxes`: List available inboxes.
  * `agentmailmcp_list_threads`: List available threads.
  * `agentmailmcp_reply_to_message`: Reply to an existing message.
  * `agentmailmcp_send_draft`: Send an existing draft.
  * `agentmailmcp_send_message`: Send a new message.
  * `agentmailmcp_update_draft`: Update an existing draft.
  * `agentmailmcp_update_message`: Update an existing message.

### Optional Parameters
* **params** (object): A key-value dictionary containing action-specific inputs (e.g., `{'inbox_id': 'inbox_123', 'to': 'user@example.com', 'subject': 'Hello'}`).

## Practical Use Cases
1. **Automated Email Workflows**: Draft, send, and reply to emails based on agentic triggers such as calendar events or task completions.
2. **Inbox Management**: Create dedicated inboxes for different contexts, list messages, and organize threads automatically.