Email logo

Email

Connect AI agents to multiple IMAP/SMTP accounts to search, read, send, organize mail, and manage attachments.

Install Email

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": {
    "email-4": {
      "command": "npx",
      "args": [
        "-y",
        "@n24q02m/email"
      ],
      "env": {
        "EMAIL_CREDENTIALS": "YOUR_VALUE_HERE",
        "EMAIL_USER": "YOUR_VALUE_HERE",
        "EMAIL_APP_PASSWORD": "YOUR_VALUE_HERE",
        "MCP_TRANSPORT": "YOUR_VALUE_HERE",
        "TRANSPORT_MODE": "YOUR_VALUE_HERE",
        "OUTLOOK_CLIENT_ID": "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.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y @n24q02m/email

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The email MCP server connects AI agents to IMAP and SMTP accounts for searching, reading, sending, replying to, forwarding, and organizing messages. It supports multiple accounts, detects provider settings from email domains, and handles custom IMAP hosts. Use it when an agent needs mailbox access across Gmail, Outlook, Yahoo, iCloud, Zoho, ProtonMail, or other IMAP providers. Run it over stdio for a local single-user setup or HTTP with bearer authentication.

Use cases

  • Search messages across several mail accounts
  • Read incoming mail and summarize relevant threads
  • Send replies or forward messages from an agent workflow
  • Organize messages and folders through MCP
  • Manage email attachments across supported accounts

Key features

  • Multi-account IMAP/SMTP access
  • Provider auto-discovery
  • Composite search, reading, sending, and organization tools
  • Thread-aware replies and forwards
  • Attachment management
  • Stdio and bearer-authenticated HTTP modes

Tools5

What Email 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

Recent health check succeeded.

7/7 checks healthy over the last 25d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

GitHub stars40Stargazers on the source repository.
npm downloads2.9kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Tools exposed5Callable tools this server registers over MCP.

How Email works

What email does

The email MCP server gives AI agents access to mailboxes through standard IMAP and SMTP connections. It is designed for multiple accounts and supports common providers including Gmail, Outlook, Yahoo, iCloud, Zoho, and ProtonMail, along with custom IMAP services.

Its capabilities cover the main mailbox workflows: finding messages, reading content, sending new mail, replying, forwarding, organizing folders, handling attachments, and checking credential status. Reply and forward operations preserve thread-related headers such as In-Reply-To and References, helping messages remain associated with their existing conversations.

The server exposes four composite tools plus a help tool. Composite operations group related email actions into fewer calls, while the help tool and MCP Resources provide additional descriptions when needed.

How it works

The default transport is stdio. An MCP client launches the package and passes account credentials through environment variables. The server can also run in HTTP mode with a bearer token, providing a single-user remote deployment model. Provider settings such as IMAP and SMTP hosts and ports are detected from the email domain; custom IMAP hosts are supported as well.

Multiple accounts are supplied as comma-separated email:password entries. Most providers use app passwords, so they do not require an OAuth setup. Outlook, Hotmail, and Live accounts can use the bundled OAuth device-code flow when the server runs in HTTP mode.

Setup and configuration

Install the npm package with npx and use the @latest tag:

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

The package starts in stdio mode when run without arguments. Credentials can be provided with EMAIL_CREDENTIALS, or with the separate EMAIL_USER and EMAIL_APP_PASSWORD variables. Start HTTP mode with email --http, MCP_TRANSPORT=http, or TRANSPORT_MODE=http.

For Outlook OAuth device authentication, use email auth [outlook] <email>. Tokens are stored in ~/.better-email-mcp/tokens.json. The email logout [<email>] command removes one account's token or all locally stored Outlook tokens when no address is given.

Tools and capabilities

  • Search and read messages across configured accounts.
  • Send new email and manage attachments.
  • Reply to or forward messages while retaining thread headers.
  • Organize messages and folders.
  • Report credential status.
  • Discover provider connection settings from email domains.
  • Support multiple mailbox credentials in one configuration.

Limitations and notes

The stdio and HTTP modes are single-user configurations. HTTP mode uses bearer authentication and is intended for a remotely hosted deployment. App-password authentication covers most providers, while Outlook, Hotmail, and Live use the included OAuth device-code flow in HTTP mode. The package command is email; better-email-mcp remains available as a legacy command alias.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Email

email is an MCP server that connects AI agents to IMAP and SMTP email accounts. Its main tools support searching, reading, sending, replying to, forwarding, organizing, and checking credentials, with multi-account support, provider auto-discovery, and attachment handling for services such as Gmail, Outlook, Yahoo, iCloud, Zoho, and ProtonMail.

Install it with `npx --yes @n24q02m/email@latest` and add a stdio `mcpServers` entry containing `EMAIL_CREDENTIALS`. You can provide one `email:app-password` pair or multiple comma-separated pairs. The server also accepts separate `EMAIL_USER` and `EMAIL_APP_PASSWORD` variables.

Yes, email works with Cursor through an `mcpServers` JSON configuration. Use the same stdio command and environment settings shown for other MCP clients, or configure the HTTP mode if connecting to a remotely hosted instance.

Use the bundled OAuth device-code flow with `email auth [outlook] <email>` when running in HTTP mode. Outlook, Hotmail, and Live accounts are supported through this flow, and tokens are saved locally in `~/.better-email-mcp/tokens.json`.

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