Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’¬ Communication
  3. MCP Server Imap
MCP Server Imap logo
Health: ActiveRecent health check succeeded.Last checked 9/22/2026, 9:47:39 AM

MCP Server Imap

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository1 GitHub StarsTotal stargazers on GitHub for the source repository (1 stars).Visit Website

Email tools for any IMAP/SMTP provider: list, read, search, send, and manage messages.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (10) Directory Badge Claim listing AlternativesπŸ’¬ More in Communication

Capabilities & Tool Schemas (10) ~106 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server Imap.

email_list

List emails from a folder

email_read

Read a single message with full body

email_search

Search by from/to/subject/date/unread

email_folders

List all folders with message counts

email_move

Move messages between folders

email_flag

Set read/star/flag status

Documentation Overview

@aiwerk/mcp-server-imap

npm version npm downloads License: MIT

IMAP/SMTP MCP server that works with any email provider. Set host, user, pass β€” done.

Unlike Gmail-only or Outlook-only MCP servers, this one speaks standard IMAP/SMTP β€” so it works with every email provider out of the box.

Why this server?

Most email MCP servers only work with one provider (Gmail, Outlook). This one works with any provider that supports IMAP:

  • Gmail, Outlook, Yahoo β€” yes
  • Fastmail, ProtonMail Bridge, Zoho β€” yes
  • Self-hosted (Dovecot, Postfix, hMailServer) β€” yes
  • Corporate/hosted (Hostpoint, Infomaniak, OVH) β€” yes

One server, every mailbox.

Highlights

  • Universal β€” standard IMAP/SMTP, works everywhere
  • Simple setup β€” just IMAP_HOST, IMAP_USER, IMAP_PASS and you're connected
  • Safety first β€” email sending is disabled by default (SMTP_SEND_ENABLED=false). Your AI agent can read emails but can't send anything until you explicitly opt in
  • Lazy credentials β€” the server starts and exposes its tool list without requiring credentials. Auth is only needed when a tool is actually called
  • Real MIME parsing β€” handles multipart, HTML/text, attachments, reply threading

AIWerk hosted service β€” email_send and email_reply are local-only

If you use this server through the AIWerk hosted service at aiwerkmcp.com, the two outgoing-mail tools are not exposed:

  • ❌ email_send
  • ❌ email_reply

The other 8 read-side tools (email_list, email_read, email_search, email_folders, email_flag, email_move, email_delete, email_attachment) work normally on the hosted service.

Why? The hosted service shares an IP across all users. If outgoing mail went out from that shared IP, the IP would appear in every recipient's Received: headers β€” one bad actor could damage deliverability for every user. There is no shared-IP architecture where arbitrary user sends works safely.

How to send mail then? Run the server locally, where outgoing mail goes from your own IP and your own provider reputation. Three paths:

  1. Ad-hoc one-email CLI β€” see the next section. Zero config, one-shot.
  2. Direct stdio MCP server in your client (Cursor, Claude Desktop, OpenClaw) β€” point your client config at npx -y @aiwerk/mcp-server-imap with your IMAP_* and SMTP_* env vars including SMTP_SEND_ENABLED=true.
  3. Local @aiwerk/mcp-bridge β€” npx -y @aiwerk/mcp-bridge install imap-email --catalog aiwerkmcp.com, then point your client at the local bridge endpoint.

In all three cases the mail goes from your home / office IP, not from the hosted service.

Ad-hoc one-email CLI

Note: On the AIWerk hosted service, the email_send and email_reply MCP tools are not exposed (the service shares an IP across all users, so allowing arbitrary sends would risk every user's deliverability). Use any of the three paths below to send email locally.

Need to send a single email from the command line β€” for example, to deliver a draft your AI agent composed? Use aiwerk-send-email:

bash
SMTP_HOST=smtp.gmail.com \
SMTP_PORT=587 \
SMTP_USER=me@gmail.com \
SMTP_PASS='app-password' \
SMTP_FROM='Me <me@gmail.com>' \
npx -y @aiwerk/mcp-server-imap aiwerk-send-email \
  --to "alice@example.com" \
  --subject "Re: invoice" \
  --body "Got it, will pay Monday."

On success, exits 0 and prints JSON: {"ok":true,"messageId":"...","envelope":{...}}

On failure, exits 1 with the error on stderr. Credentials are never printed.

All CLI arguments

ArgumentRequiredDescription
--toYesRecipient(s), comma-separated
--subjectYesSubject line
--bodyOne of body/htmlPlain-text body
--htmlOne of body/htmlHTML body (both β†’ multipart)
--in-reply-toNoMessage-ID of original message (thread preservation)
--referencesNoSpace-separated reference IDs
--ccNoCC recipients, comma-separated
--bccNoBCC recipients, comma-separated

CLI environment variables

VariableRequiredDefaultDescription
SMTP_HOSTYesβ€”SMTP server hostname
SMTP_PORTYesβ€”587 for STARTTLS, 465 for implicit TLS
SMTP_USERYesβ€”SMTP username / email address
SMTP_PASSYesβ€”Password or app-specific password
SMTP_FROMYesβ€”Sender address (Name <email> or plain email)
SMTP_TLSNofalsetrue for implicit TLS (port 465); false for STARTTLS (port 587)

Install

Three ways to get email tools β€” pick the one that fits.

1. Quick (single email) β€” aiwerk-send-email CLI above: no MCP client needed, one command sends one email.

2. Direct stdio MCP server β€” all 10 email tools exposed to your AI agent:

Terminal
npx -y @aiwerk/mcp-server-imap

3. Local bridge with catalog UX β€” install via the AIWerk catalog for a guided setup:

Terminal
npx -y @aiwerk/mcp-bridge install imap-email --catalog bridge.aiwerk.ch

Option 1 β€” Hosted (zero setup)

No local runtime, no env vars on your machine β€” credentials are AES-256-GCM encrypted server-side via HashiCorp Vault.

  1. Sign up at aiwerkmcp.com.
  2. Install IMAP Email from the catalog and paste your IMAP/SMTP credentials.
  3. Point your MCP client (Claude.ai, Cursor, Hermes, …) at your hosted endpoint:
    Code
    https://bridge.aiwerk.ch/u/<your-user-id>/mcp
    
    with your Bearer token.

All 10 tools appear immediately. Install other AIWerk recipes from the same bridge.

Option 2 β€” Self-hosted (npx)

Run directly β€” you manage the credentials:

bash
IMAP_HOST="imap.example.com" \
IMAP_USER="user@example.com" \
IMAP_PASS="app-password" \
SMTP_HOST="smtp.example.com" \
npx @aiwerk/mcp-server-imap

The server starts immediately and responds to tools/list even without credentials β€” they're only required when a tool is actually called (lazy credentials).

Tools (10)

ToolPurpose
email_listList emails from a folder
email_readRead a single message with full body
email_searchSearch by from/to/subject/date/unread
email_foldersList all folders with message counts
email_moveMove messages between folders
email_flagSet read/star/flag status
email_deleteMove messages to Trash
email_sendSend a new email (requires opt-in)
email_replyReply to a message (requires opt-in)
email_attachmentList or download attachments

Configuration

Claude Desktop

Add to claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "email": {
      "command": "npx",
      "args": ["-y", "@aiwerk/mcp-server-imap"],
      "env": {
        "IMAP_HOST": "imap.example.com",
        "IMAP_USER": "you@example.com",
        "IMAP_PASS": "your-app-password",
        "SMTP_HOST": "smtp.example.com"
      }
    }
  }
}

Cursor / Windsurf / VS Code

Same config format in the respective MCP settings.

AIWerk hosted service

If you want zero-setup, install via aiwerkmcp.com β€” see Option 1 above.

Environment variables

IMAP (required)

VariableDefaultDescription
IMAP_HOSTβ€”IMAP server hostname
IMAP_USERβ€”Email address or username
IMAP_PASSβ€”Password or app-specific password
IMAP_PORT993IMAP port
IMAP_TLStrueUse TLS
IMAP_TIMEOUT30000Connection timeout (ms)

SMTP (optional, for sending)

VariableDefaultDescription
SMTP_HOST${IMAP_HOST}SMTP server hostname
SMTP_PORT465SMTP port
SMTP_USER${IMAP_USER}SMTP username
SMTP_PASS${IMAP_PASS}SMTP password
SMTP_TLStrueUse TLS
SMTP_FROM${IMAP_USER}Sender address
SMTP_SEND_ENABLEDfalseMust be true to enable sending

Debug

VariableDefaultDescription
IMAP_DEBUGfalseVerbose IMAP protocol logging

Security

  • Email sending is disabled by default β€” set SMTP_SEND_ENABLED=true to enable
  • Credentials are loaded lazily (only when a tool is called, not at startup)
  • No credentials are logged
  • Keep credentials in .env or a secret manager β€” never commit them to git

Supported providers

Tested with: Hostpoint, Gmail (app password), Outlook/Microsoft 365, Yahoo Mail, Fastmail, Dovecot, Postfix.

Works with any standards-compliant IMAP/SMTP server.

Build from source

bash
git clone https://github.com/AIWerk/mcp-server-imap
cd mcp-server-imap
npm install
npm run build
node dist/server.js

Contributing

Issues and PRs are welcome! Please open an issue first for larger changes.

Changelog

See CHANGELOG.md for version history.

About AIWerk MCP

Part of the AIWerk MCP platform β€” curated, signed MCP recipes served either as npm packages for self-hosting or through our multi-tenant hosted service at aiwerkmcp.com.

Other AIWerk MCP servers:

  • @aiwerk/mcp-server-cal β€” Cal.com scheduling
  • @aiwerk/mcp-server-wise β€” Wise (TransferWise) Personal API, read-only
  • @aiwerk/mcp-server-clawhub β€” ClawHub skill catalog

Browse the full catalog (20+ recipes including GitHub, Linear, Notion, Stripe, …) at aiwerkmcp.com.

License

MIT β€” AIWerk

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Communication View all alternatives
  • Email MCP logoEmail MCP

    Unified MCP server for email across Gmail (REST API), Outlook (Microsoft Graph), iCloud, and generic IMAP/SMTP. 24 tools for search, send, organize, and batch-manage emails with built-in OAuth2 and encrypted credential storage.

    πŸ’¬ Communication4 views
    Compare vs Email MCP β†’
  • Ox MCP logoOx MCP

    Email (IMAP/SMTP), mail filters (Sieve), calendar (CalDAV), contacts (CardDAV), and free/busy scheduling for Open-Xchange and standards-based mail platforms. Published on the official MCP Registry.

    πŸ’¬ Communication3 views
    Compare vs Ox MCP β†’
  • Slack MCP Server logoSlack MCP Server

    The most powerful MCP server for Slack Workspaces.

    πŸ’¬ Communication1 views
    Compare vs Slack MCP Server β†’
  • Line Bot MCP Server logoLine Bot MCP Server
    Verified

    MCP Server for Integrating LINE Official Account

    πŸ’¬ Communication9 views
    Compare vs Line Bot MCP Server β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
1
Stargazers on the source repository.
npm downloads
871
Package downloads in the last 30 days.
Last commit
1mo ago
Most recent push to the default branch.
Tools exposed
10
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about MCP Server Imap

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "mcp-server-imap": { "command": "npx", "args": ["-y","@aiwerk/mcp-server-imap"] } }

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

Technical Specs & Signals

CategoryπŸ’¬Communication
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedAug 10, 2026
4/5 checks healthy over the last 46d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars1
GitHub Star CountTotal stargazers on GitHub representing community popularity (1 stars).
Last commit1mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 10, 2026
npm downloads871/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
55Quality signal: Good Β· 55/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools25/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev Β· @aiwerk/mcp-server-imap (npm)

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’¬ Communication β†’Best MCP servers for Slack & Communication β†’Alternatives to MCP Server Imap β†’Install in Claude DesktopInstall in CursorInstall in VS CodeSetup guides for all 13 MCP clients