Gmail MCP
Gmail MCP combines a Cloudflare Worker with a local macOS companion. The Worker owns authentication, mailbox policy, approvals and operation tracking; the companion moves attachments between staging handles and configured filesystem roots without sending their bytes through model context. The repository reports a live end-to-end demonstration, but the project remains pre-release with five external qualification gates open.
01 / Overview
Problem
AI email tools need practical attachment handling and explicit authority for mailbox changes, especially when messages may contain malicious instructions.
My contribution
- Keep account identity, policy and approval enforcement on the authenticated server.
- Use opaque staging handles and a confined local companion to transfer attachments.
- 01TypeScript
- 02Cloudflare Workers
- 03D1
- 04R2
- 05KV
- 06Swift
02 / Evidence
Proof & Verification
- The repository documents 38 Gmail tools and a live demonstration of OAuth, owner-approved sending and an attachment round trip.
- Five external qualification gates remain open, so the project is still pre-release. The repository's checks were not rerun for this page.
Sources
Sources: Source Code03 / Methods
Build
Tech Stack
- TypeScript
- Cloudflare Workers
- D1
- R2
- KV
- Swift
- Multiple Google accounts with separate aliases, policies and send limits.
- Attachment staging, browser approvals, operation tracking and audit records.
Secure
- Approval binds to the exact stored payload; ambiguous sends become delivery_unknown and are not automatically retried.
- Permanent deletion is not exposed. The companion confines file operations to configured roots; it is not a sandbox against other processes owned by the same user.