Skip to main content
Glama
MailOps MCP Server

MailOps MCP Server

MailOps

Open-source Gmail automation, without handing your inbox to a server.

MailOps keeps Gmail tidy with simple per-label rules: archive after N days, move to Trash after M days, or keep forever. You manage everything from a clean web dashboard, or from Claude, through the MailOps MCP server.

Status: beta. The Gmail engine logic has run in production for one user since Sept 2026; engine v3 (no spreadsheet), the dashboard and the MCP server are new. See the roadmap.

Get started

  1. Sign in to your MailOps dashboard (or self-host one).

  2. Follow Setup: copy the engine into your Google account, run setup, approve the code. Engine guide.

  3. Add rules, start a dry run, check Activity, then turn on production in Settings.

  4. Optional: connect Claude.

Related MCP server: gmail-mcp-server

How it works

flowchart LR
  E[Your Apps Script<br/>MailOps engine] -- archive / trash / labels / filters --> G[(Your Gmail)]
  E <-- rules & approved changes / runs & heartbeat --> A[MailOps API<br/>Vercel]
  W[Dashboard] --> A
  C[Your Claude<br/>via MCP] -- read & propose --> A
  A --> F[(Firestore)]
  • Your Gmail stays yours. The engine runs as an Apps Script in your Google account. The web app only uses basic Google sign-in and never gets Gmail access.

  • Safe by default.

    • dry run first

    • move to Trash, never permanent delete

    • starred, Important and Keep-labelled mail is never touched

    • every change made from the web or Claude is a proposal you approve.

  • Free to run. Fits the Firebase Spark and Vercel Hobby free tiers, and Apps Script quotas. Self-host with your own Firebase and Vercel.

  • Claude-native. Ask Claude to "add a rule that trashes promo mail from my bank after 90 days". It proposes; you approve in the dashboard.

Repository

Path

What

apps/web

Next.js dashboard, API routes, MCP endpoint (Vercel)

engine

Apps Script engine that runs in each user's account (tested in Node)

packages/schema

Shared zod schemas: rules, settings, proposals

firebase

Firestore security rules and indexes

docs

Architecture, MCP, self-hosting, roadmap

Development

corepack pnpm install
corepack pnpm check      # format + typecheck + tests (same as CI)

See CONTRIBUTING.md. Security issues: see SECURITY.md.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to read and manage your Gmail account, including listing, searching, sending, drafting, replying to, archiving, labeling, and trashing emails via the Gmail API.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables Claude.ai and Claude Code to read and write a single Gmail mailbox, including search, drafts, sending, and label management.
      21
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude to search, read, summarize, and reversibly organize Gmail across multiple linked accounts, with journaled changes, undo, triage preferences, and defenses against prompt injection.
      2
      MIT