Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

email-mcp

MCP server by marlinjai Community

Connects AI assistants to Gmail, Outlook, iCloud and generic IMAP accounts through one MCP server. Built for people who want search, reading, sending, drafts and batch email actions from their assistant.

  • Score 77
  • 28 stars
  • 274 a week
  • MIT
  • Updated

Install email-mcp

Built from the published package, never by AI.

claude mcp add email-mcp -- npx -y @marlinjai/email-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install email-mcp in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the email-mcp block.

About

email-mcp is a unified MCP server for email access across Gmail, Outlook, iCloud, and generic IMAP providers. It uses Gmail's REST API and Microsoft Graph where available, and falls back to IMAP for universal compatibility. Authentication uses browser-based OAuth flows for Gmail and Outlook with automatic token refresh, while iCloud and generic IMAP use credentials such as an app-specific password. Credentials are stored encrypted with AES-256-GCM.

The server exposes 36 tools for account management, searching and reading, sending and drafts, attachments, and organizing mail. Batch operations can delete, move, or mark hundreds of emails in one call, and search returns compact results by default with optional full bodies. It suits people who want an AI assistant such as Claude Code to work with their email across several accounts.

Written from the project's README and checked against it.

Tools it gives your assistant

  • email_searchSearches emails with filters, returning compact results unless returnBody is set to true.
  • email_getGets full email content by ID, including headers, body and attachment metadata.
  • email_get_threadGets an entire email thread or conversation.
  • email_sendComposes and sends a new email, with optional attachments.
  • email_replyReplies to an email and keeps the reply inside the original thread.
  • email_forwardForwards an email, with original attachments included only when opted in.
  • email_draft_createCreates a draft email, optionally as a reply in an existing thread.
  • email_draft_updateUpdates an existing draft's content and attachments.
  • email_get_attachmentDownloads a specific attachment by ID as base64 data.
  • email_save_attachmentSaves an attachment to a fixed downloads directory and returns metadata only.

What you need

  • Node.js, since the server is installed and run with npm and npx
  • A Gmail or Outlook account for OAuth sign-in
  • An iCloud account with an app-specific password
  • An IMAP and SMTP server for generic IMAP accounts

Try asking

  • Search my inbox for unread emails from my accounting firm this week
  • Reply to the latest message in this thread and keep it in the conversation
  • Save the attachment from the invoice email to my downloads folder

Good to know

  • Google's verification of the shared Gmail OAuth app is still running, so other accounts need their own OAuth app.
  • Attachments are capped at 25 MB per message in total, and Outlook accepts up to 3 MB through this server.
  • Outlook, iCloud and IMAP accounts get no signature added to outgoing mail.
  • Attaching files by path works only from the folder set in EMAIL_MCP_ATTACHMENTS_DIR.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to email-mcp

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

email-mcp: common questions

Which email providers does email-mcp support?

It supports Gmail, Outlook, iCloud and generic IMAP/SMTP providers. Gmail and Outlook use their provider APIs where available, and IMAP is used as a fallback.

How are my email credentials stored?

Credentials are stored with AES-256-GCM encryption at rest, using machine-derived keys. OAuth tokens refresh automatically for Gmail and Outlook.

Can it delete many emails at once?

Yes. Batch operations can delete, move or mark hundreds of emails in a single call.

How do I install email-mcp?

In Claude Code run claude mcp add email-mcp -- npx -y @marlinjai/email-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is email-mcp the official server?

email-mcp is a community project by marlinjai, not verified by a company domain.

Is email-mcp free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is email-mcp safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to email-mcp?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does email-mcp work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

email-mcp Install

Add to stack

Loading.