Give Cline's autonomous coding agent email capabilities through MCP. Send, read, and manage email with Cline's built-in tool approval flow.
Cline is an autonomous coding agent for VS Code that can plan, write, and execute code with minimal human intervention. With its dedicated MCP server management UI, Cline makes it easy to add external tools like MultiMail. Once connected, Cline can handle email operations as part of larger automated workflows.
Cline stores MCP configuration in its VS Code extension settings directory, with a dedicated UI for adding and managing servers. The MultiMail MCP server connects via stdio transport, and Cline's tool approval flow ensures you stay in control of every email action the agent takes.
This integration is powerful for developers who want an autonomous agent that can read incoming emails, act on their contents by writing or modifying code, and then reply — all within a single task. Cline's approval flow pairs naturally with MultiMail's oversight modes for layered safety.
Sign up at multimail.dev and create an API key from your dashboard. This key authenticates all MCP server requests.
Install Cline from the VS Code marketplace. Search for 'Cline' (by Saoud Rizwan) in the Extensions panel and install it.
Click the MCP servers icon in Cline's sidebar panel to open the MCP server management UI. This provides a visual interface for adding and configuring MCP servers.
Click 'Add MCP Server' in Cline's UI, or manually edit the config file at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json.
{
"mcpServers": {
"multimail": {
"command": "npx",
"args": ["-y", "@multimail/mcp-server"],
"env": {
"MULTIMAIL_API_KEY": "mm_live_your_key_here"
}
}
}
}In the MultiMail dashboard, create a mailbox for Cline to use. Start with gated_send oversight so all outbound emails require your explicit approval before delivery.
In Cline's MCP panel, check that the MultiMail server shows a green status indicator. Ask Cline to list your mailboxes to confirm the tools are accessible.
| Tool | Description | Example |
|---|---|---|
| send_email | Send an email from your agent mailbox to any recipient. | Send a status update to the team after Cline finishes a coding task. |
| reply_email | Reply to a received email, maintaining the thread context. | Reply to a bug report with the fix details after Cline patches the code. |
| check_inbox | Check a mailbox for new or unread messages. | Check for new task requests emailed to the agent's inbox. |
| read_email | Read the full content of a specific email including headers and body. | Read a feature request email to understand requirements before coding. |
| create_mailbox | Create a new agent mailbox on your MultiMail account. | Create a project-specific mailbox for automated task dispatching. |
| list_mailboxes | List all mailboxes on your MultiMail account. | List mailboxes to select the appropriate sender for a notification. |
| get_thread | Retrieve an entire email thread to see the full conversation history. | Review the full conversation with a client before composing a reply. |
| search_contacts | Search your contact list by name, email, or tags. | Find the engineering lead's email to send a code review summary. |
| add_contact | Add a new contact to your MultiMail contact list. | Save a new team member's email after they join the project. |
| tag_email | Tag or categorize an email for organization and filtering. | Tag completed task emails as 'resolved' for tracking. |
| list_pending | List all emails currently awaiting human approval. | Review all emails Cline has queued before approving them. |
| decide_email | Approve or reject a pending email in the oversight queue. | Approve a deployment notification email after verifying the content. |
{
"mcpServers": {
"multimail": {
"command": "npx",
"args": ["-y", "@multimail/mcp-server"],
"env": {
"MULTIMAIL_API_KEY": "mm_live_your_key_here"
}
}
}
}Add this to Cline's MCP settings file to connect MultiMail.
Check my MultiMail inbox for unread emails. Read the most recent one. If it contains a coding task or bug report, implement the fix or feature in our codebase, run the tests, and reply to the sender with a summary of what you did.Let Cline read an email task, implement it, and reply with results.
Check my MultiMail inbox for all unread emails. Read each one and tag them as either 'bug', 'feature-request', or 'question' based on their content. For any tagged as 'bug', also add a 'priority-high' tag if the email mentions production issues.Have Cline process multiple emails and categorize them.
macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonCline's MCP config file location varies by platform.
Cline has a dedicated MCP server management panel in its sidebar. Use it to add, remove, and monitor MCP servers visually instead of editing the JSON config file manually. The UI shows connection status and available tools at a glance.
Cline has its own tool approval flow that prompts you before executing any tool. Combined with MultiMail's gated_send oversight mode, you get two layers of approval: Cline asks before calling send_email, and MultiMail holds the email for your final approval before delivery.
Cline keeps a full history of every task it performs. When Cline sends or reads emails, the complete interaction is recorded in Cline's task history, giving you an audit trail of all email operations alongside the code changes that prompted them.
If you trust Cline to read emails autonomously, consider enabling auto-approve for read-only MCP tools like check_inbox, read_email, and list_mailboxes while keeping approval required for send_email and reply_email.
Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a 38-tool MCP server. Formally verified in Lean 4.