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.
More from coding & agent
- HQ pitches an open-source 'company brain' giving team AI a shared context layer — jacob_posel · 2026-11-14
- Cohere Labs talk: Harness² recursively improves agent harnesses at test time — Cohere · 2026-11-14
- Someone Built a Provably Fair Dice Casino Where AI Agents Place Bets via MCP — adamamcbride · 2026-11-14
- Intern shipped a multiplayer app built with Claude Code, got hired, then presented it on stage — Alec_Coughlin · 2026-11-14
- Google Research showcases Antigravity's /teamwork for science & engineering — Google Research · 2026-11-14
- Dev: Working at a High Level with AI Is Great but Exhausting — jonathan_wilke · 2026-11-14