npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

email-smtp-imap-mcp

v2.0.1

Published

Email MCP Server with SMTP and IMAP support - simple, clean, and flexible

Downloads

222

Readme

Email MCP Server

A clean, simple MCP server for email operations (SMTP + IMAP).

Features

  • Send emails (HTML + attachments)
  • Search emails (flexible filters)
  • Reply/Forward (with threading)
  • Organize (mark read, archive, flag)
  • List folders

Installation

Option 1: NPM (Recommended)

npm install -g email-smtp-imap-mcp

Option 2: From Source

git clone https://github.com/samihalawa/email-smtp-imap-mcp.git
cd email-smtp-imap-mcp
npm install
npm run build

Configuration

Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "email": {
      "command": "npx",
      "args": ["-y", "email-smtp-imap-mcp"],
      "env": {
        "EMAIL_ACCOUNTS_JSON": "{\"icloud\":{\"smtp\":{\"host\":\"smtp.mail.me.com\",\"port\":587,\"user\":\"[email protected]\",\"password\":\"your-app-password\"},\"imap\":{\"host\":\"imap.mail.me.com\",\"port\":993},\"default_from_name\":\"Your Name\",\"sender_emails\":[\"[email protected]\",\"[email protected]\"]}}",
        "DEFAULT_EMAIL_ACCOUNT": "icloud"
      }
    }
  }
}

Replace [email protected], your-app-password, and Your Name with your actual credentials.

Email Provider Settings

"EMAIL_ACCOUNTS_JSON": "{\"icloud\":{\"smtp\":{\"host\":\"smtp.mail.me.com\",\"port\":587,\"user\":\"[email protected]\",\"password\":\"app-specific-password\"},\"imap\":{\"host\":\"imap.mail.me.com\",\"port\":993},\"default_from_name\":\"Your Name\",\"sender_emails\":[\"[email protected]\"]}}"

Note: Use app-specific password, not your iCloud password.

"EMAIL_ACCOUNTS_JSON": "{\"gmail\":{\"smtp\":{\"host\":\"smtp.gmail.com\",\"port\":587,\"user\":\"[email protected]\",\"password\":\"app-password\"},\"imap\":{\"host\":\"imap.gmail.com\",\"port\":993},\"default_from_name\":\"Your Name\",\"sender_emails\":[\"[email protected]\"]}}"

Note: Use app password, not your Google password.

"EMAIL_ACCOUNTS_JSON": "{\"outlook\":{\"smtp\":{\"host\":\"smtp-mail.outlook.com\",\"port\":587,\"user\":\"[email protected]\",\"password\":\"your-password\"},\"imap\":{\"host\":\"outlook.office365.com\",\"port\":993},\"default_from_name\":\"Your Name\",\"sender_emails\":[\"[email protected]\"]}}"

⚠️ Important: Restart Claude Desktop after adding configuration.

5 Tools

| Tool | Purpose | |------|---------| | emails_find | Search emails with filters | | emails_modify | Mark read, archive, flag | | email_send | Send new emails | | email_respond | Reply or forward | | folders_list | List folders |

Usage Examples

"Find unread emails from last week"
"Send an email to [email protected]"
"Reply to the last email from John"
"Archive all emails older than 30 days"
"List my email folders"

Documentation

  • QUICK_REFERENCE.md - Command examples
  • DESIGN.md - Architecture details
  • SETUP_COMPLETE.md - Full setup guide

License

MIT