Skip to main content
Glama
pratham-v0827

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: early development. The Gmail engine has run in production for a single user since Sept 2026. The multi-user web app is being built in the open. See the roadmap.

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.

Related MCP server: Gmail MCP Server

Repository

Path

What

apps/web

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

engine

Apps Script library that runs in each user's account

packages/schema

Shared zod schemas: rules, settings, proposals

firebase

Firestore security rules and indexes

docs

Architecture, roadmap

Development

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

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

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables reading, sending, searching, and managing Gmail through Claude using the official Google Gmail API.
    92 npm
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables Claude to read, search, send, and manage Gmail messages and threads through natural language.
    371 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables Gmail integration with Claude Code for reading, sending, searching emails, and managing labels through natural language.
    371 npm
    MIT
  • 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.
    -