← free tools

free email MCP server

Email MCP

Every inbox for Claude. One Claude connection for Gmail, Outlook, iCloud and any IMAP inbox. Claude writes the drafts, you press Send.

How to installCode on GitHub

Free and open source, MIT. Runs on your computer with Node.js 22. Works with Claude Desktop and Claude Code. Updated 26 November 2026.

Find the Acme invoice thread and draft a reply saying it's paid
email_search_all 3 inboxes searched, 4 results
Found it in your work Gmail, sent 2 days ago by Sam at Acme. I saved a reply in the same thread.
Draft saved, not sentHi Sam, the invoice was paid this morning. Thanks!Open in Gmail →

What Email MCP is

Email MCP is a free, open-source MCP server that gives Claude every inbox you have, Gmail, Outlook, iCloud and any IMAP account, through one connection. Claude can search all of them in one call, read threads and write replies, and in drafts-only mode it can't send or delete anything. It runs on your own computer, so your mail never passes through a third party.

Claude's built-in mail connectors each cover one provider. If you run a work Gmail, a personal Gmail and an Outlook inbox, Email MCP puts all three behind a single connection. We use it at Agniverse to triage several inboxes from one Claude chat, with a person pressing Send on every reply.

What it does

How a reply works in drafts-only mode

  1. You ask Claude to find a thread and reply to it.
  2. Claude calls email_search_all, which searches every inbox and says which one has the thread.
  3. Claude reads the thread and calls email_draft_create with the email it is replying to, so the draft lands in the same thread.
  4. The result carries an Open in Gmail link. You open the draft, change what you want and press Send.

Email MCP vs the original email-mcp

This is a fork of marlinjai/email-mcp, which does the hard parts: the providers, the OAuth sign-ins, encrypted token storage and 37 tools. The fork adds four things on top.

FeatureThis fork (agni-layer)Upstream email-mcp
Gmail, Outlook, iCloud and IMAP accountsYesYes
Search every inbox in one callYes, email_search_allOne account per call
Drafts-only mode (no send, no delete)Yes, EMAIL_MCP_DRAFT_ONLY=1No
Open in Gmail link on draftsYesNo
Unwraps google.com/url and Safe LinksYes, on by defaultNo
Tools38 (26 in drafts-only mode)37
LicenceMITMIT

Install

You need Node.js 22 or newer and git. The changes live on the agni-layer branch of annayal-consumerxai/email-mcp until they are merged, so install from source.

1. Get the code

git clone -b agni-layer https://github.com/annayal-consumerxai/email-mcp.git
cd email-mcp
npm install
npm run build

2. Add your inboxes

node dist/setup/wizard.js

The wizard asks for a provider, opens the sign-in page and then offers to add another account, so you can add Gmail, Outlook and iCloud in one go. iCloud needs an app-specific password from your Apple account.

Gmail: Google is still reviewing the shared sign-in, so for now it only lets in accounts on its test list. Make your own OAuth client (type Desktop app, Gmail API on) in Google Cloud, add yourself as a test user, and set EMAIL_MCP_GMAIL_CLIENT_ID and EMAIL_MCP_GMAIL_CLIENT_SECRET before you run the wizard and in the server's settings below.

3. Connect Claude

Claude Desktop: Settings, Developer, Edit Config, then add this to claude_desktop_config.json with the real path:

{
  "mcpServers": {
    "email": {
      "command": "node",
      "args": ["/path/to/email-mcp/dist/index.js"],
      "env": { "EMAIL_MCP_DRAFT_ONLY": "1" }
    }
  }
}

Claude Code: one line in a terminal.

claude mcp add email -e EMAIL_MCP_DRAFT_ONLY=1 -- node /path/to/email-mcp/dist/index.js

Leave out EMAIL_MCP_DRAFT_ONLY if you want Claude to be able to send and delete. Set EMAIL_MCP_CLEAN_LINKS=0 to keep links as they are.

4. Ask

Restart Claude and try: "Search all my inboxes for the last email from Sam and draft a reply."

Questions

What is Email MCP?

Email MCP is a free, open-source MCP server that connects Claude to all your email inboxes, Gmail, Outlook, iCloud and IMAP, through one connection. It runs on your own computer.

Can Claude read more than one Gmail account?

Yes. Add each Gmail account in the setup wizard and Claude can read, search and draft in all of them. email_search_all searches every account in one call.

Can Claude send emails without me?

Not in drafts-only mode. With EMAIL_MCP_DRAFT_ONLY=1 the send, forward and delete tools are never registered, so Claude only saves drafts. You open each one in Gmail and press Send.

Does my email go through your servers?

No. Email MCP runs on your computer and talks straight to Google, Microsoft, Apple or your IMAP server. There is no Agniverse server in between.

Does it work with Outlook and iCloud?

Yes. Outlook works through Microsoft Graph, iCloud through IMAP with an app-specific password, and any other provider through IMAP and SMTP.

Who made it?

Email MCP is built on marlinjai/email-mcp, MIT licensed. An Nayal added drafts-only mode, email_search_all, link cleaning and Open in Gmail links at Agniverse, in the annayal-consumerxai fork.

Built on marlinjai/email-mcp (MIT). Agniverse additions by An Nayal. More free tools on annayal.com/open-source.

👋🏽 Say hi, don't be shy

X me@consumerxaiGram me@consumerxaiLinkIn me/in/annayal