Skip to main content
RaoufResearchOS
English
Sydney, AustraliaCurrent Sydney Time—
Press Escape to close this window.
Gmail MCP
Back

Engineering

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.

  • TypeScript
  • MCP
  • Node.js
Project IdentityStill

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

  1. Keep account identity, policy and approval enforcement on the authenticated server.
  2. Use opaque staging handles and a confined local companion to transfer attachments.
Documented technology stack
  • 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 Code

03 / 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.

Search

Find a project, paper, write-up, or page.

30 / 44 · Search results

↑ ↓ Workspace NavigationEnter OpenEsc Close