← Back to directory
I

IMAP MCP Server

Community
Manage IMAP mailboxes and email through MCP.
Category
Other #217 of 678
Stars
★ 142 Popular
Transport
stdio (local process)
Runtime
Node.js 22.12+
Credentials
API key / credential required
License
MIT
Last commit
Tools
36
55FMRS · C

This is a stdio server for managing email over IMAP and SMTP. The source describes encrypted account credentials, multiple accounts, email reading and sending, folder management, and read-only or tool-allowlist restrictions.

Strongest · Documentation 15/20 Weakest · Maintenance 8/20

Reliability
10/20
Security and permissions
9/20
Maintenance
8/20
Documentation
15/20
Setup experience
13/20
Why each score
Reliability 10/20
The README describes a broad set of IMAP/SMTP tools, their parameters, failure cases, and fallback behavior; the manifest declares an npm package using stdio. This review has only static material, with no CI, committed tests, or observed handshake, and the implementation cannot be checked against the documented behavior. Reproducibility and dependency control therefore remain uncertain, and the score stays within the static-calibration cap of 12.
Security and permissions 9/20
The README claims AES-256-CBC credential encryption, separate key storage and restrictive file permissions, and describes attachment path limits and wizard network binding. It also exposes high-impact capabilities including credential entry, message and attachment access, sending, deletion, and account editing. A read-only mode is documented, but all tools are enabled by default, bulk deletion is not dry-run by default, and the account-level sender allowlist can be changed through an exposed tool. Without implementation evidence these boundaries cannot be verified. The supplied material does not establish a red-line condition, so the red-line score range is not applied.
Maintenance 8/20
The repository is listed as unarchived, has an MIT license, and the manifest identifies version 2.2.0; the README gives an npm-based update path. There is no evidence here about commit or release cadence, issue response, dependency updates, or a security-response channel. Stars and open issue count do not increase the score.
Documentation 15/20
The README covers installation, configuration for mainstream clients, account authentication, tool parameters, read-only and allowlist options, limitations, a reported search failure, and troubleshooting. Deductions reflect the lack of source or execution evidence to verify claims about encryption, permissions, tool behavior, and error handling, as well as missing information about costs, dependency maintenance, and security response.
Setup experience 13/20
The README specifies a Node.js version, offers npx, installation scripts, a manual build path, an account wizard, and Claude Code/Desktop configuration examples. It also documents environment-based credentials and remote wizard options. The setup cannot be verified through CI or tests in the supplied material; users still need valid IMAP/SMTP credentials, and some paths require command-line or account configuration. Under static calibration, the score remains at or below 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkChanges third-party account data

Best for

  • Users who want an AI assistant to access one or more IMAP/SMTP mailboxes.
  • Users who want to restrict exposed tools with read-only mode or a tool allowlist.

Not for

  • Users whose mail service does not support IMAP/SMTP.
  • Users needing services or email operations outside the documented capabilities.

Required permissions

  • Needs to connect to configured accounts over IMAP; sending mail and saving sent copies also uses SMTP and corresponding mailbox permissions.
  • Account credentials are stored locally; the README describes AES-256-CBC encryption and separate storage for the key and account configuration.
  • The optional attachment path parameter reads local files; downloaded attachments are saved in a downloads directory.

Risks and side effects

  • Send, reply, forward, and delete tools can send messages or change mailbox contents; bulk deletion can affect multiple emails.
  • Credential encryption depends on a key stored separately on the local machine; do not share or commit the key or account configuration.
  • Environment-variable credentials are read at server startup; read-only mode or a tool allowlist can limit exposed functionality.
  • The setup wizard uses plain HTTP when bound beyond loopback, which can expose its access token and entered passwords to network observers; the README recommends an SSH tunnel.

Setup

Before you start

Runtime:Node.js 22.12+

IMAP_MCP_WIZARD_TOKEN optionalsecret Access token used when the wizard binds beyond loopback; set a fixed token of at least 16 characters if desired.
IMAP_MCP_ACCOUNT_WORK_GMAIL_IMAP_PASSWORD optionalsecret Overrides the IMAP password for an existing account named Work Gmail; obtain it from your email account credentials.
IMAP_MCP_ACCOUNT_WORK_GMAIL_SMTP_PASSWORD optionalsecret Overrides the SMTP password for an existing account named Work Gmail; obtain it from your email account credentials.
Other optional settings (6)
IMAP_MCP_BIND optional Sets the setup wizard’s bind address; defaults to 127.0.0.1.
PORT optional Port used by npm run web; defaults to 3000.
IMAP_MCP_ACCOUNT_WORK_GMAIL_IMAP_USERNAME optional Overrides the IMAP username for an existing account named Work Gmail; obtain it from your email account credentials.
IMAP_MCP_ACCOUNT_WORK_GMAIL_SMTP_USERNAME optional Overrides the SMTP username for an existing account named Work Gmail; obtain it from your email account credentials.
IMAP_MCP_READ_ONLY optional Set to a truthy value to register only safe read-only tools; configure it in the MCP client’s env object.
IMAP_MCP_ENABLED_TOOLS optional Sets a comma-separated allowlist of tool names; configure it in the MCP client’s env object.

Requires Node.js 22.12 or newer. In the MCP client configuration, set the server command to npx and arguments to -y and imap-mcp-server. Add accounts with the web setup wizard or imap_add_account.

claude_desktop_config.json
{"mcpServers":{"imap":{"command":"npx","args":["-y","imap-mcp-server"],"env":{}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "imap": {
      "command": "npx",
      "args": [
        "-y",
        "imap-mcp-server"
      ],
      "env": {}
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.imap]
command = "npx"
args = ["-y", "imap-mcp-server"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add imap -- npx -y imap-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm imap_list_accounts and imap_search_emails appear in the client’s tool list, then run imap_list_accounts to check that account configuration is available.

Troubleshooting

  1. Check the IMAP host, port, and TLS settings, and confirm IMAP is enabled with the provider.
  2. If authentication fails, check whether the provider requires an app-specific password; confirm SMTP access is enabled when sending.
  3. Environment-variable credentials are read at startup, so restart the server after changing them.
  4. If search returns no results despite messages in the folder, check the server's search support; the README describes a slower fallback for certain Strato search failures.

Things to try

Once connected, you can ask your AI assistant things like:

  • List my configured email accounts.
  • Show me the latest 5 emails in my Gmail inbox.
  • Search for emails from [email protected] in the last week.
  • Forward the email with subject “Meeting Notes” to [email protected].

Tools 36

imap_add_account writes
Add an IMAP email account.
imap_update_account writes
Update settings for an existing account.
imap_list_accounts read-only
List configured accounts.
imap_remove_account destructive
Remove an email account.
imap_connect writes
Connect to an email account.
imap_disconnect writes
Disconnect an account.
imap_test_account read-only
Test an account connection.
imap_search_emails read-only
Search emails using criteria.
Show 28 more tools
imap_get_email read-only
Get the full content of an email.
imap_get_latest_emails read-only
Get recent emails.
imap_mark_as_read writes
Mark email as read.
imap_mark_as_unread writes
Mark email as unread.
imap_flag_email writes
Flag an email.
imap_unflag_email writes
Unflag an email.
imap_add_keyword writes
Add a custom IMAP keyword to an email.
imap_remove_keyword writes
Remove a custom IMAP keyword from an email.
imap_delete_email destructive
Delete one email.
imap_move_email writes
Move email to another folder.
imap_find_thread_messages read-only
Find messages in the same conversation as messages already sorted elsewhere.
imap_download_attachment writes
Download an attachment or extract PDF text.
imap_bulk_delete destructive
Delete specified emails in bulk.
imap_bulk_delete_by_search destructive
Delete emails matching criteria, with an optional preview.
imap_send_email destructive
Send a new email via SMTP.
imap_save_draft writes
Save an email as a draft.
imap_reply_to_email destructive
Reply to an existing email.
imap_forward_email destructive
Forward an existing email.
imap_list_folders read-only
List mailbox folders.
imap_folder_status read-only
Get folder status, message counts, and flags.
imap_create_folder writes
Create a mailbox folder.
imap_get_unread_count read-only
Count unread emails.
imap_check_spam
Check spam.
imap_domain_stats
Get domain statistics.
imap_list_spam_domains
List spam domains.
imap_delete_spam
Delete spam emails.
imap_delete_by_domain
Delete emails by domain.
imap_upload_file
Upload a file for use as an email attachment.

Use cases

Search email and read message bodies and attachments.
Manage folders, message status, and custom labels.
Send, reply to, or forward email through SMTP, or save drafts.
Organize and clean up multiple mailboxes.

Supported clients

Claude Desktop
Claude Code
CursorPartial support

Listed from the project's documentation, not tested by this site.

Overview

IMAP MCP Server gives AI assistants IMAP/SMTP email capabilities, including searching, reading, organizing, sending, replying to, and forwarding messages. It supports multiple accounts and stores credentials using AES-256 encryption.

Similar servers

Source revision 0a6e6651069e Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/imap-mcp-server.svg)](https://followmcp.com/en/servers/imap-mcp-server)