Better Email MCP logo

Better Email MCP

by n24q02m

IMAP/SMTP email MCP server for multi-account search, reading, sending, replies, forwarding, folders, and attachments.

Install Better 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": {
    "n24q02m-better-email-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@n24q02m/email"
      ],
      "env": {
        "EMAIL_CREDENTIALS": "YOUR_VALUE_HERE",
        "EMAIL_USER": "YOUR_VALUE_HERE",
        "EMAIL_APP_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

n24q02m/better-email-mcp connects AI agents to email accounts through IMAP and SMTP, with provider settings discovered from the account domain. It supports multiple accounts, app-password authentication for most providers, and Outlook OAuth device-code authentication in HTTP mode. Composite tools cover email search and organization, message actions, folders, attachments, credentials, and help. Use it when an agent needs to work across Gmail, Outlook, Yahoo, iCloud, Zoho, ProtonMail, or custom IMAP accounts.

Use cases

  • Search messages across several configured mailboxes
  • Read and summarize email threads with attachments
  • Send replies and forwards while preserving thread headers
  • Download attachments from selected messages
  • Inspect folders and mailbox status through IMAP

Key features

  • IMAP and SMTP email access
  • Multi-account configuration
  • Provider auto-discovery
  • App-password authentication
  • Thread-aware replies and forwards
  • Attachment listing and downloads

Tools5

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

Self-reported~73 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 1d ago

Recent health check succeeded.

4/6 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @n24q02m/email (npm)

Adoption & maintenance

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

GitHub stars35Stargazers on the source repository.
npm downloads1.4kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Better Email MCP works

What n24q02m/better-email-mcp does

n24q02m/better-email-mcp exposes email operations to MCP-compatible AI clients over IMAP and SMTP. It can search and read messages, organize mail, compose and send messages, reply within a thread, and forward email. It also provides mailbox-folder operations, attachment listing and downloading, credential-management actions, and on-demand tool documentation.

The server is designed for multiple accounts in one configuration. Supported provider families include Gmail, Outlook, Yahoo, iCloud, Zoho, ProtonMail, and custom IMAP services. Provider connection details can be inferred from the email domain, while custom IMAP hosts are supported for services that are not auto-discovered.

How it works

The default transport is stdio, intended for launching from an MCP client. HTTP mode is also available with bearer-token protection and is started explicitly with the package's HTTP option or transport setting. The package provides an email command; the legacy better-email-mcp command remains available as an alias.

Most accounts use an app password rather than an OAuth setup. Outlook, Hotmail, and Live accounts can use the bundled OAuth2 device-code flow when the server runs in HTTP mode. OAuth tokens are stored locally for that flow and can be cleared with the logout command.

Replies and forwards preserve thread-related In-Reply-To and References headers. Tool descriptions are kept compact, with more detail available through the help tool and MCP resources.

Setup and configuration

Install and run the package through the latest npm tag:

Terminal
npx --yes @n24q02m/email@latest

For stdio, configure the MCP client to launch that command and provide credentials through EMAIL_CREDENTIALS:

config.json
{
  "mcpServers": {
    "email": {
      "command": "npx",
      "args": ["--yes", "@n24q02m/email@latest"],
      "env": {
        "EMAIL_CREDENTIALS": "user@gmail.com:app-password"
      }
    }
  }
}

Multiple accounts use comma-separated email:password pairs. An alternative is to set EMAIL_USER and EMAIL_APP_PASSWORD. Start HTTP mode with npx @n24q02m/email --http; it is intended for a single user and uses a bearer token. The command also supports Outlook authentication through email auth and token removal through email logout.

Tools and capabilities

  • Search, read, organize, compose, send, reply to, and forward email through the messages functionality.
  • List mailbox folders or inspect targeted IMAP STATUS metadata.
  • List and download message attachments.
  • Check credential status, obtain setup guidance, reset configuration, re-resolve provider settings, and clear cached data.
  • Retrieve detailed documentation for any tool through the help functionality.
  • Work with more than one configured email account.

Limitations and notes

Authentication is centered on app passwords for most providers, so the selected account must support that method. Outlook, Hotmail, and Live use the documented device-code path only in HTTP mode. Stdio is single-user and reads credentials from the process environment; HTTP mode is also described as single-user, despite the project documentation referring to hosted multi-user deployment separately.

The package is published as @n24q02m/email, while the MCP Registry identifier remains io.github.n24q02m/better-email-mcp. The project is licensed under Apache-2.0.

Reviews

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

Frequently Asked Questions about Better Email MCP

n24q02m/better-email-mcp is an MCP server that connects AI agents to IMAP and SMTP email accounts. Its main tools search, read, organize, compose, send, reply to, and forward messages, while also handling folders, attachments, credential status, configuration, and tool documentation across multiple accounts.

Install it with `npx --yes @n24q02m/email@latest` and add a stdio server entry to your MCP client configuration. Set `EMAIL_CREDENTIALS` to an `email:app-password` value, or use `EMAIL_USER` with `EMAIL_APP_PASSWORD`.

It supports Gmail, Outlook, Yahoo, iCloud, Zoho, ProtonMail, and custom IMAP services. Provider settings are discovered from the email domain when possible, and custom IMAP hosts can be configured for other services.

Yes, it works with Cursor through the client's `mcpServers` configuration. The standard stdio setup uses `npx @n24q02m/email@latest` and passes account credentials through the environment.

Set multiple `email:app-password` pairs in `EMAIL_CREDENTIALS`, separated by commas. The server can then manage the configured accounts through its email, folder, attachment, and configuration capabilities.

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 PreviewBetter Email MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/n24q02m-better-email-mcp?style=directory)](https://allmcps.com/mcp/n24q02m-better-email-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/n24q02m-better-email-mcp"><img src="https://allmcps.com/api/badge/n24q02m-better-email-mcp?style=directory" alt="Better Email MCP on AllMCPs" /></a>