Gmail Automator

•

Connect AI coding agents to Gmail with proactive quota enforcement, durable queuing, and encrypted OAuth credential storage.

Gmail Automator is a self-hosted Model Context Protocol (MCP) server and REST API that allows AI assistants like Claude Code, Cursor, and OpenCode to safely interact with Gmail. Operating as a secure proxy, it holds encrypted OAuth credentials locally so agents never touch raw tokens, and it enforces Gmail's rolling 24-hour sending quotas before dispatching API calls to prevent account lockouts. With support for standard MCP transports (streamable HTTP and stdio), threaded replies, draft creation, inbox search, and durable task queuing, it gives autonomous workflows reliable mailbox automation without compromising security.

Características Principales

0114 native MCP tools and a matching REST API for sending, reading, searching, threading, and labelling emails
02Proactive rolling 24-hour quota enforcement that prevents account lockouts before reaching Google's API
03AES-256-GCM encrypted OAuth token management stored locally and isolated from AI agent contexts
04Built-in human-in-the-loop draft review and intelligent send-pacing intervals
05Durable queue with lease-based job tracking that survives server and worker restarts
060 GitHub stars

Casos de Uso

01Enabling coding agents like Claude Code or Cursor to send notifications or PR summaries without risking account suspensions
02Automating inbox triage and categorization using Gmail search filters and custom label management
03Executing safe email outreach batches that automatically pace sends and track quota limits