Email MCP logo

Email MCP

by marlinjai

Manage Gmail, Outlook, iCloud, and IMAP email with search, sending, organization, drafts, and batch operations.

Install Email MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "marlinjai-email-mcp": {
      "command": "npx",
      "args": [
        "@marlinjai/email-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 36 tools correctly (Today).

Overview

marlinjai/email-mcp provides one MCP interface for Gmail, Outlook, iCloud, and generic IMAP/SMTP accounts. It uses Gmail REST and Microsoft Graph where available, with IMAP-based access for broad provider compatibility, and supports OAuth2 for Gmail and Outlook. An interactive setup wizard stores encrypted credentials and configures accounts before the MCP process is added to a client. Reach for it when an agent needs to search, send, organize, transfer, or batch-manage messages across one or more email accounts.

Use cases

  • Search inboxes across multiple providers
  • Send replies and forward messages
  • Create and update email drafts
  • Batch-move or mark large message sets
  • Transfer messages between accounts

Key features

  • Gmail, Outlook, iCloud, and generic IMAP/SMTP support
  • OAuth2 setup with automatic token refresh
  • Compact search results with optional full bodies
  • Encrypted credential storage
  • Batch email management
  • Attachment retrieval and disk saving

Tools36

What Email MCP lets your agent do. Expand a tool for its parameters.

Verified live~6.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

23/26 checks healthy over the last 92d

What it can do

From the 36 tools this server returned when we ran it.

Can delete or modify data · 7Handles credentials · 2Makes network requests · 1Read-only tools · 29
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age263 days
Maintainers1

Observed 2026-11-10 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @marlinjai/email-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars26Stargazers on the source repository.
npm downloads1.5kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed36Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Email MCP works

What marlinjai/email-mcp does

marlinjai/email-mcp connects MCP-compatible agents to Gmail, Outlook, iCloud, and other IMAP email services. It covers account management, folder and label inspection, filtered search, message and thread retrieval, attachments, sending, replies, forwards, drafts, and common organization actions.

Provider behavior varies where the underlying APIs differ. Gmail uses its REST API, Outlook uses Microsoft Graph, and iCloud or generic providers use IMAP with optional SMTP for sending. Gmail-only label operations and Outlook-only category operations are exposed separately. Cross-account transfer can copy or move messages while preserving the original raw MIME; when deletion is requested, the source is sent to trash only after the target import succeeds.

How it works

Install the package globally with npm or run it through npx. The email-mcp-setup wizard guides provider selection and authentication, including browser-based OAuth2 flows for Gmail and Outlook. iCloud accounts use an Apple app-specific password, while other IMAP accounts require server details and credentials. After setup, add the MCP server command to the client's configuration.

Search returns compact results by default to limit context usage. A request can include full message bodies when needed. Attachments can either be returned as base64 data or saved to disk, with saved files restricted to the configured downloads directory. Batch delete, move, mark, and spam-report operations reduce the number of calls needed for large message sets.

Credentials are stored with AES-256-GCM encryption and machine-derived keys. Gmail and Outlook tokens support automatic refresh. Removing an account also removes local credentials and attempts provider-side cleanup for the relevant OAuth tokens or grant.

Setup and configuration

Install with npm install -g @marlinjai/email-mcp, or run the setup wizard with npx -y -p @marlinjai/email-mcp@latest email-mcp-setup. The -p or --package option is important when invoking the setup binary through npx.

A minimal MCP configuration uses the npx command with @marlinjai/email-mcp as its argument. Gmail can use the package's OAuth credentials, or a separately registered Google OAuth desktop client through EMAIL_MCP_GMAIL_CLIENT_ID and EMAIL_MCP_GMAIL_CLIENT_SECRET. Outlook supports a custom client through EMAIL_MCP_OUTLOOK_CLIENT_ID. Gmail authorization can use full or restricted scope, with the latter excluding permanent deletion.

Set EMAIL_MCP_DOWNLOADS_DIR to change the fixed base directory used by attachment saves. Gmail's shared OAuth application may require an account to be registered as a test user while Google's verification process is pending.

Tools and capabilities

  • List, add, remove, and test configured accounts.
  • Search messages, retrieve individual emails or threads, and inspect folders.
  • Send, reply to, forward, create, list, and update drafts.
  • Move, delete, mark, label, and report messages as spam or junk.
  • Create folders and inspect Gmail labels or Outlook categories.
  • Read attachments as base64 or save them directly to disk.
  • Apply delete, move, mark, label, and spam-report actions in batches.
  • Transfer or copy messages between accounts while preserving raw message details.

Email composition tools accept file-path or base64 attachments. The total attachment limit is 25 MB, while Outlook permits up to 3 MB per message through this server. Gmail composition tools also read the sending address's Gmail signature on each call and add it to outgoing messages and drafts.

Limitations and notes

Gmail labels and label operations are provider-specific, as are Outlook categories. Generic IMAP and iCloud behavior can differ from Gmail and Outlook; for example, updating a draft on those providers replaces the old draft and returns a new ID. Attachment and thread retrieval for IMAP-based accounts may require the source folder when the message is not in the inbox.

A restricted Gmail scope cannot perform explicit permanent deletion. The regular delete operation can instead move a message to trash, while the spam-report tools train the provider's spam filter rather than acting as a security abuse report.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Email MCP

marlinjai/email-mcp is an MCP server that connects AI agents to Gmail, Outlook, iCloud, and generic IMAP/SMTP accounts. Its main tools search, read, send, reply, forward, draft, organize, transfer, and batch-manage email, with OAuth2 support for Gmail and Outlook and encrypted local credential storage.

Install it globally with `npm install -g @marlinjai/email-mcp`, or run it through npx without a global install. Configure accounts first with `npx -y -p @marlinjai/email-mcp@latest email-mcp-setup`, then add the `npx` server command to the MCP client's configuration.

Run the interactive setup wizard and select Gmail or Outlook to start the browser-based OAuth2 flow. Gmail supports full or restricted permission scopes. You can also supply your own Google OAuth client ID and secret, or an Outlook client ID, through environment variables before running setup.

Yes, marlinjai/email-mcp uses a standard MCP command configuration and can be added to an MCP-compatible client such as Cursor. Configure the server with `npx` and `@marlinjai/email-mcp`, then use the setup wizard to add email accounts.

Use `email_save_attachment` to download an attachment directly to disk and return metadata instead of base64 content. Its `outputPath` is relative to the configured downloads directory, which defaults to `~/.email-mcp/downloads`; set `EMAIL_MCP_DOWNLOADS_DIR` to change that directory.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewEmail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/marlinjai-email-mcp?style=directory)](https://allmcps.com/mcp/marlinjai-email-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/marlinjai-email-mcp"><img src="https://allmcps.com/api/badge/marlinjai-email-mcp?style=directory" alt="Email MCP on AllMCPs" /></a>