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

Google Workspace MCP

taylorwilsdon/google_workspace_mcp

>1k

Comprehensive Google Workspace integration including Gmail, Calendar, Drive, Docs, Sheets, Slides, Chat, Forms, Tasks, and Search.

Key Features

  • Complete Gmail management with send, read, search
  • Full Google Workspace integration
  • OAuth 2.0 and OAuth 2.1 support
  • One-click Claude Desktop install via DXT

Installation

uvx workspace-mcp --tool-tier core

The most popular Google Workspace MCP with 1.1k+ stars. Covers Gmail, Calendar, Drive, Docs, Sheets, and more. Supports both free Google accounts and Workspace plans. Features one-click Claude Desktop installation.

Best for: Gmail and Google Workspace users View on GitHub

Gmail MCP Server

Samarth2001/gmail-mcp

>50

A focused Gmail MCP server for reading and sending emails through the Gmail API with OAuth authentication.

Key Features

  • Send plain text and HTML emails with attachments
  • Search emails with Gmail query syntax
  • Draft management and batch operations
  • OAuth 2.0 authentication

Installation

See GitHub for setup instructions

A lightweight Gmail-focused MCP server with comprehensive email management features. Supports sending, reading, searching, drafts, and batch operations. Good choice if you only need Gmail.

Best for: Users needing Gmail-only integration View on GitHub

AgentMail MCP

agentmail-to/agentmail-mcp

>15

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

npx -y 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

Outlook MCP

ryaker/outlook-mcp

>200

MCP server for Claude to access Outlook data via Microsoft Graph API. Certified by MCPHub.

Key Features

  • Outlook email integration
  • Calendar management with events
  • Microsoft Graph API powered
  • OAuth 2.0 authentication

Installation

See GitHub for Azure setup

For Microsoft 365 and Outlook users, this MCP provides email and calendar access via the Graph API. Well-documented with detailed Azure setup instructions. Certified by MCPHub for reliability.

Best for: Microsoft/Outlook users View on GitHub

Quick Comparison

MCPStarsBest ForProsCons
Google Workspace MCP>1.1kGmail + Google suiteMost comprehensive, active developmentComplex setup
Gmail MCP Server50+Gmail onlyLightweight, focusedGmail only
AgentMail15+AI automationsDisposable inboxesRequires account
Outlook MCP>200Outlook usersMCPHub certified, well-documentedAzure setup required

Getting Started

To get started with email in Claude Code:

  1. For Gmail/Google Workspace, use the Google Workspace MCP:

    uvx workspace-mcp --tool-tier core
    
  2. For Outlook/Microsoft 365, set up the Outlook MCP with Azure credentials.

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

    npx -y agentmail-mcp
    

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

Related Guides