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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gnidreve/classic-imap-smtp-mcp

v0.3.2

Published

A complete classic IMAP/SMTP MCP server. Everything a good mail client does — no OAuth, no cloud lock-in, no scope creep.

Readme

classic-imap-smtp-mcp

A complete IMAP/SMTP MCP server for AI assistants. Everything a good email client does — and nothing beyond.

npm version npm downloads CI GitHub Codeberg GitLab


classic-imap-smtp-mcp connects any IMAP/SMTP mailbox to an AI assistant via the Model Context Protocol. It runs locally, supports multiple accounts, and provides 36 tools for reading, writing, and managing email — nothing more, nothing less.

Quick Start

npx @gnidreve/classic-imap-smtp-mcp

Set environment variables USERNAME and PASSWORD to connect your mailbox:

export [email protected]
export PASSWORD=your-app-password

[!TIP] For most providers (Gmail, Outlook, iCloud, etc.) that's all you need — IMAP/SMTP hosts are auto-detected. If you need custom hosts or want to avoid collisions, see docs/config.md.

Full installation instructions: docs/install.md

[!NOTE] With multiple accounts, each tool accepts an optional account parameter. Defaults to the account named in default_account.

[!NOTE] --safe and --readonly are combinable (--readonly is stricter and wins). --no-imap and --no-smtp together produce an empty server — this aborts at startup (almost certainly a config mistake).

[!TIP] Wildcards match by prefix: imap_*, smtp_*, account_*, meta_*, or finer imap_delete_*, imap_bulk_*, imap_get_*.


📚 Documentation Index

🚀 Getting Started

  • Installation — Set up the server in 60 seconds with npx and your mailbox credentials
  • Configuration — Environment variables, multi-account via TOML, CLI flags & tool filters

📖 Reference

🛠️ Guides

  • Client Setup — Config snippets for Cursor, Windsurf, VS Code, Claude Code
  • Comparison — How this MCP compares to other mail servers

📄 Project

  • Roadmap — Development phases from 0.3 to 1.0
  • Contributing — Architecture, code style, how to contribute
  • Security — Report vulnerabilities responsibly
  • Changelog — Full release history

🤖 For LLM Agents

  • llms.txt — Machine-readable guide for AI assistants to consume this server
  • AGENTS.md — Technical architecture documentation for AI agents

Why this exists

Existing MCP mail servers are either incomplete, do too much (calendar, AI triage, scheduling), or lack features like multi-account, folder management, and fine-grained tool control. This project does one thing well: classic IMAP/SMTP — and makes every tool available through conditional registration so you control exactly what your AI assistant can do.


License

MIT — see LICENSE.