yunfeizhu/mcp-mail-server
A lightweight Model Context Protocol (MCP) server that provides IMAP and SMTP email functionality for AI assistants like Claude in Cursor IDE. Built with TypeScript and optimized for easy deployment via npm/npx.
Supports multi-mailbox navigation with RFC 6154 auto-detection of special folders (Sent, Drafts), concurrent connection management with timeout guards, and comprehensive search operations (by sender/subject/date/keyword) with optional inbox-only filtering. Implements stateless message retrieval using UIDs rather than connection state, HTML-escape injection prevention in replies, and automatic attachment metadata extraction. Integrates with Claude Desktop, Cursor, Claude Code, and other MCP clients via stdio transport with environment-based configuration for TLS/SSL email servers.
22 stars and 8,235 monthly downloads. Available on npm.
Stars
22
Forks
12
Language
TypeScript
License
MIT
Category
Last pushed
Mar 17, 2026
Monthly downloads
8,235
Commits (30d)
0
Dependencies
4
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/mcp/yunfeizhu/mcp-mail-server"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related servers
imdinu/apple-mail-mcp
Fast MCP server for Apple Mail — disk-first reads, 87x faster batch JXA, FTS5 search (700–3500x...
codefuturist/email-mcp
Email MCP server with full IMAP + SMTP support — read, search, send, manage, and organize email...
MadLlama25/fastmail-mcp
A Model Context Protocol (MCP) server that provides access to the Fastmail API, enabling AI...
patrickfreyer/apple-mail-mcp
MCP server giving AI assistants full access to Apple Mail - read, search, compose, organize &...
VibeTensor/vibemcp
Token-Optimized Unified MCP Server for Gmail & Microsoft 365. 60% fewer tokens, 100% more power.