dearkarl: a read-only MCP server that feeds Claude only the emails you forward

Fit-Stranger1738 · reddit · 2026-12-06

Weekend developer Olek built dearkarl, a way to give Claude access to specific emails without connecting your whole Gmail. You forward mail to a secret address; a Cloudflare Worker converts it to Markdown and writes it to one Google Drive folder (or an inbox/ directory in a private GitHub repo), which an MCP server exposes to Claude.

The MCP side is strictly read-only (listfiles, readfile) — no sending or deleting. Auth is OAuth 2.1 for Claude apps or a personal token for Claude Code, with tokens stored as hashes. Only mail verifiably from your own address (DMARC/SPF) is saved, and mail passes through Worker memory for seconds without touching disk. Hosted version is free; code is open source with an MIT self-hosted option.

Open design question: MCP has no good way to notify clients that new mail arrived — Claude only sees it when calling listfiles (the self-hosted version uses a Claude Code session-start hook).

Original post →

More from coding & agent

coding & agent channel →