Imap Wizard logo

Imap Wizard

Read, search, organize, export, and send email through IMAP and SMTP from MCP clients.

Install Imap Wizard

Run the project’s own setup commands, in order.

Setup steps from the project

imap-wizard installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Configure
    npx -y imap-wizard account add
    
  2. 2. Add to Claude Code
    claude mcp add email -- npx -y imap-wizard stdio
    
  3. 3. Add to your MCP client
    npx -y imap-wizard install
    
  4. 4. Install
    npm i -g imap-wizard
    
  5. 5. Install
    git clone https://github.com/Fe2-O3/imap-wizard.git
    
  6. 6. Install
    cd imap-wizard
    

Overview

imap-wizard MCP server connects AI assistants directly to IMAP and SMTP accounts for reading, searching, organizing, and sending email. It runs locally over MCP stdio, supports multiple accounts, and can be configured with an interactive account wizard. Reach for it when an agent needs mailbox operations without routing messages through a cloud service. Safety controls include non-destructive reads, optional read-only mode, duplicate-send protection, and restricted file saving.

Use cases

  • Search large mailboxes for messages and attachments
  • Send replies and forward email from an AI client
  • Export messages and download attachments to local files
  • Triage inboxes and apply bulk mailbox actions
  • Inspect DMARC, SPF, and DKIM results from message headers

Key features

  • IMAP mailbox access with SMTP sending
  • Multi-account configuration
  • Non-destructive message reads
  • Read-only mode and duplicate-send protection
  • Attachment and .eml file export
  • Inbox triage and bulk actions

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.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev

Adoption & maintenance

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

npm downloads1.9kPackage downloads in the last 30 days.
Last commit16d agoMost recent push to the default branch.

How Imap Wizard works

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:

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

Terminal
npx -y imap-wizard test

Claude Code can register the server directly:

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

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

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 Imap Wizard

imap-wizard is an MCP server that connects AI clients to IMAP mailboxes and SMTP accounts. Its main tools let assistants list, search, retrieve, send, reply to, forward, organize, export, and download email while applying controls such as read-only mode and duplicate-send protection.

Run `npx -y imap-wizard account add`, test the accounts with `npx -y imap-wizard test`, then register `npx -y imap-wizard stdio` with your MCP client. The `install` command can write configuration for several supported desktop and coding clients.

Yes, imap-wizard works with Cursor through its standard MCP stdio configuration. Run `npx -y imap-wizard install` to select Cursor and have the installer write the client configuration, then restart the application.

No, ordinary reads use IMAP `BODY.PEEK` and leave messages unread. A caller must explicitly request marking a message as read, and read-only mode refuses that operation.

It detects likely retries and refuses duplicate sends by default. The duplicate guard applies to sending, replies, forwards, and drafts; an explicit `allow_duplicate` option can override it.

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