MCP directory
E(

Email (IMAP/SMTP)

by github.com/mindstone · v0.3.4 · updated Nov 14, 2026

Email IMAP/SMTP MCP server: iCloud, Gmail, Yahoo, Outlook, and custom IMAP providers

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @mindstone/[email protected]

Environment variables

  • EMAIL_IMAP_EMAILrequired

    Email address

  • EMAIL_IMAP_PASSWORDrequiredsecret

    App-specific password

  • EMAIL_IMAP_PROVIDER

    Provider — icloud, gmail, yahoo, outlook, or custom (auto-detected from email domain if unset)

  • EMAIL_IMAP_IMAP_HOST

    Custom IMAP host (for provider=custom)

  • EMAIL_IMAP_SMTP_HOST

    Custom SMTP host (for provider=custom)

  • EMAIL_IMAP_IMAP_PORT

    Custom IMAP port

  • EMAIL_IMAP_SMTP_PORT

    Custom SMTP port

  • EMAIL_IMAP_MAX_RECIPIENTS

    Safety cap: maximum combined To+CC+BCC recipients per email_send call. Defaults to 25; raising bypasses spam-prevention guardrails against prompt-injection-driven mass sends.

  • EMAIL_IMAP_RATE_LIMIT_PER_HOUR

    Safety cap: maximum email_send calls per rolling window. Defaults to 50; protects against runaway sends when injection content escapes the LLM's intent.

  • EMAIL_IMAP_RATE_LIMIT_WINDOW_MS

    Sliding-window length for the rate limit (ms)

  • MCP_WORKSPACE_PATH

    Workspace directory that email_get_attachment downloads into (fresh email-imap-attachment-* staging directories). Defaults to the system temp directory.

More from github.com/mindstone

More MCP servers