# email [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/n24q02m/email  
**GitHub Stars:** 40  
**npm Downloads (last month):** 2913  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/email-4

## Description
IMAP/SMTP email for AI agents -- read, send, organize folders, and manage attachments across multiple accounts, with auto-discovery.

## Tools
Capabilities this server exposes over MCP:

- **messages** — Search, read, organize, compose, reply to, and forward emails
- **folders** — List mailbox folders or read targeted IMAP STATUS metadata
- **attachments** — List and download email attachments
- **config** — Credential status and setup guidance, reset, re-resolve, cache clear
- **help** — Get full documentation for any tool

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "email": {
    "command": "npx",
    "args": ["-y","@n24q02m/email"],
    "env": {
      "EMAIL_CREDENTIALS": "",
      "EMAIL_USER": "",
      "EMAIL_APP_PASSWORD": "",
      "MCP_TRANSPORT": "",
      "TRANSPORT_MODE": "",
      "OUTLOOK_CLIENT_ID": ""
    }
  }
}
```

**Requires environment variables:** `EMAIL_CREDENTIALS`, `EMAIL_USER`, `EMAIL_APP_PASSWORD`, `MCP_TRANSPORT`, `TRANSPORT_MODE`, `OUTLOOK_CLIENT_ID` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```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.

_Full upstream README: https://allmcps.com/mcp/email-4/readme_

