Mailctx
Transforms IMAP emails into token-optimized Markdown for AI agents and provides an MCP server for AI access to read and draft mail.
Mailctx addresses the challenge of providing AI agents with access to email by cleaning up the often-messy content of raw emails. It strips out unnecessary elements like HTML tags, deeply nested quotes, and tracking pixels, converting email into a compact, token-optimized Markdown format, achieving a significant 60-98% token reduction. Beyond just cleaning, it includes a Model Context Protocol (MCP) server, allowing tools like Claude Desktop to securely search, read, and draft email replies directly. A crucial design feature is its safety boundary: agents can read and draft but are structurally incapable of sending or deleting mail, ensuring users always retain final send authority.