Open-source IMAP MCP lets Claude read and send email from any mailbox, with OAuth and hard safety rails

Ordinary_Ad_404 · reddit · 2026-11-14

Lacking an official connector for Namecheap email, the author built an MIT-licensed remote IMAP/SMTP MCP server supporting up to 20 mailboxes managed via Claude, with per-mailbox source labels and replies sent from the original mailbox. Stack: Next.js + Better Auth's MCP plugin on Vercel with Neon Postgres, one-click deploy. Safety design is the highlight: real OAuth 2.1 with dynamic client registration and no secrets in URLs; a draft-confirmation flow where senddraft can only send an exact draft and must repeat To/Cc/Bcc/subject or the server refuses; sends capped at 10/hour per mailbox with an ALLOWSEND=false drafts-only mode; mail passwords stay in your own Vercel env vars, never in the database.

Original post →

More from coding & agent

coding & agent channel →