All How-To Guides

4 Ways to Send Emails with Claude Code

How to send emails with Claude Code?

4 MCP servers featured

Email automation is a powerful capability for notifications, outreach, and workflow automation. Claude Code can't send emails directly, but MCP servers provide secure email integration with Gmail, Outlook, and custom SMTP servers. Here are the best options for email automation.

Recommended MCP Servers

Gmail MCP (Anthropic)

anthropics/gmail-mcp

>1k

Official Gmail integration from Anthropic for reading and sending emails through the Gmail API.

Key Features

  • Read and send Gmail messages
  • OAuth authentication
  • Search and filter emails
  • Official Anthropic support

Installation

npx @anthropic-ai/gmail-mcp

The official Gmail MCP from Anthropic is the safest choice for Gmail integration. It uses proper OAuth authentication, handles tokens securely, and provides read/write access to your inbox. Recommended for production use cases.

Best for: Gmail users wanting official integration View on GitHub

Google Workspace MCP

kimtaeyoon83/mcp-google-workspace

>400

Comprehensive Google Workspace integration including Gmail, Calendar, Drive, and Docs.

Key Features

  • Gmail, Calendar, Drive, Docs support
  • Full Google Workspace integration
  • OAuth token management
  • Multiple transport options

Installation

See GitHub for setup instructions

If you use multiple Google services, this MCP is a one-stop solution. Beyond Gmail, it integrates Calendar, Drive, and Docs. Great for workflows that span multiple Google products.

Best for: Teams using full Google Workspace View on GitHub

AgentMail MCP

agentmail-to/agentmail-toolkit

>200

Create inboxes on the fly to send, receive, and take actions on email. Email infrastructure built for AI agents.

Key Features

  • Create disposable inboxes
  • Send and receive emails
  • Built for AI agent workflows
  • No personal email exposure

Installation

pip install agentmail-mcp

AgentMail is designed specifically for AI agents that need email capabilities. Create throwaway inboxes, handle incoming mail, and automate responses—all without exposing your personal email. Perfect for building email-driven automations.

Best for: Automated email workflows View on GitHub

Microsoft 365 MCP

softwarearchitect817/microsoft-graph-mcp

>300

Microsoft Office and Microsoft 365 integration including Outlook, files, Excel, and calendar via Graph API.

Key Features

  • Outlook email integration
  • OneDrive and SharePoint access
  • Excel and calendar support
  • Graph API powered

Installation

See GitHub for Azure setup

For organizations on Microsoft 365, this MCP provides Outlook email along with OneDrive, SharePoint, and other Microsoft services. Uses the official Graph API for secure, enterprise-grade access.

Best for: Microsoft/Outlook users View on GitHub

Quick Comparison

MCPStarsBest ForProsCons
Gmail MCP>1kGmail usersOfficial Anthropic supportGmail only
Google Workspace>400Full Google suiteMultiple servicesComplex setup
AgentMail>200AI automationsDisposable inboxesRequires account
Microsoft 365>300Outlook usersEnterprise integrationAzure setup required

Getting Started

To get started with email in Claude Code:

  1. For Gmail, use the official Gmail MCP:

    npx @anthropic-ai/gmail-mcp
    
  2. For Outlook/Microsoft 365, set up the Microsoft Graph MCP with Azure credentials.

  3. For AI agent workflows, consider AgentMail for disposable inboxes.

Example prompt: "Check my inbox for unread emails from the last 24 hours and summarize the important ones."

Related Guides