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.
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
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 22.12+
IMAP_MCP_WIZARD_TOKEN
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
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
Overrides the SMTP password for an existing account named Work Gmail; obtain it from your email account credentials.
IMAP_MCP_BIND
Sets the setup wizard’s bind address; defaults to 127.0.0.1.
PORT
Port used by npm run web; defaults to 3000.
IMAP_MCP_ACCOUNT_WORK_GMAIL_IMAP_USERNAME
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
Overrides the SMTP username for an existing account named Work Gmail; obtain it from your email account credentials.
IMAP_MCP_READ_ONLY
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
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.
{"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.
{
"servers": {
"imap": {
"command": "npx",
"args": [
"-y",
"imap-mcp-server"
],
"env": {}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.imap] command = "npx" args = ["-y", "imap-mcp-server"]
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add imap -- npx -y imap-mcp-server
Run it in a terminal; replace any <…> placeholders with your own values first.
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.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Manage UniFi Network controllers through MCP.
Manage UniFi networks and devices through MCP.
Ask your affiliate networks in plain English from your AI workspace.
Run 119 Horosa astrology and metaphysics techniques locally.
Source revision 0a6e6651069e Data synced 2026-12-05 Read the FMRS scoring method Markdown