# imap-wizard [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/Fe2-O3/imap-wizard  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1873  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/imap-wizard

## Description
IMAP Wizard — email MCP server with IMAP + SMTP support

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Fe2-O3/imap-wizard), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Configure:

```sh
npx -y imap-wizard account add
```

2. Add to Claude Code:

```sh
claude mcp add email -- npx -y imap-wizard stdio
```

3. Add to your MCP client:

```sh
npx -y imap-wizard install
```

4. Install:

```sh
npm i -g imap-wizard
```

5. Install:

```sh
git clone https://github.com/Fe2-O3/imap-wizard.git
```

6. Install:

```sh
cd imap-wizard
```

## Documentation

## What imap-wizard does

imap-wizard exposes email operations to MCP-compatible AI clients through standard IMAP and SMTP connections. It supports multiple accounts and can read, search, sort, send, reply to, forward, export, and organize messages. Common tasks include finding unread mail, locating an invoice, replying to a thread, moving messages, and saving attachments or `.eml` files.

The package runs locally and communicates directly with the configured mail servers. It does not require a hosted account or intermediary service, and its configuration remains compatible with the upstream `email-mcp` folder layout at `~/.config/email-mcp/`.

## How it works

The server is launched as an MCP stdio process, normally through `npx -y imap-wizard stdio`. An MCP client sends tool calls, while imap-wizard performs the corresponding IMAP or SMTP operation for the selected account.

Mailbox reads use IMAP `BODY.PEEK`, so fetching a message does not mark it as read. Marking mail read requires an explicit option. Message retrieval is chunked for larger mailboxes, and connection handling includes mailbox-lock timeouts, reconnection, and periodic connection replacement.

Email content returned through tools is marked as untrusted external content. This helps distinguish message text from instructions intended for the assistant. A single background worker handles watcher, alert, and AI-triage activity when multiple client processes are running.

## Setup and configuration

Node.js 22.13 or newer is required. Add an account with:

```bash
npx -y imap-wizard account add
```

The setup wizard asks for the account address and password and fills settings for common providers. Verify IMAP and SMTP access with:

```bash
npx -y imap-wizard test
```

Claude Code can register the server directly:

```bash
claude mcp add email -- npx -y imap-wizard stdio
```

For Claude Desktop, Cursor, Windsurf, VS Code, Codex, or OpenCode, the installer can detect supported applications and write their MCP configuration:

```bash
npx -y imap-wizard install
```

Other clients can use an MCP entry with `npx` as the command and `stdio` as the argument. The package is also available as a global npm installation, a Docker image, or a source build. Credentials can use the macOS Keychain, Linux `secret-tool`, password commands such as 1Password, Bitwarden, or `pass`, and OAuth2.

## Tools and capabilities

Available operations include:

- Listing, searching, and retrieving email
- Sending, replying to, forwarding, and managing drafts
- Moving and deleting messages, mailboxes, and labels
- Downloading attachments and exporting messages as `.eml` files
- Inspecting sender authentication through DMARC, SPF, and DKIM headers
- Triaging inboxes and applying bulk actions
- Configuring account tools, alerts, and related email behavior

Tool access can be selected during setup and changed with `imap-wizard tools`. The selection can cover reading, sending, organization, filter rules, calendar, and alerts.

## Limitations and notes

Read-only mode removes tools that change mail and disables background services. Exporting messages and downloading attachments remain available for permitted local destinations. Sending is rate-limited to 10 messages per minute per account by default, and duplicate-send detection blocks retries unless explicitly overridden.

File exports and attachment downloads require absolute paths, cannot overwrite existing files, and reject hidden, system, application, and other restricted locations. Protected mailboxes such as INBOX, Sent, Drafts, Trash, Junk, and Archive cannot be deleted or renamed. An audit log is enabled by default, with sensitive fields hidden. The project is licensed under LGPL v3.

_Full upstream README: https://allmcps.com/mcp/imap-wizard/readme_

