Gmail Inbox Zero & Filter Suite (google-gmail-mcp)

    by rfpacheco

    1

    Deterministic Gmail sorting, bulk Inbox Zero sweeps, and persistent Skip-Inbox server-side filters via 8 non-destructive, M8ven-verified MCP tools.

    Free

    Security scanned

    Works with the AI Agents you already use

    Gmail Inbox Zero & Filter Suite (google-gmail-mcp)

    Example session with this skill installed

    Audit my Gmail inbox, find unread promotions and newsletters older than 7 days sorted largest-first, and show me a safe triage + Skip-Inbox filter plan before modifying anything.

    • Read your context and instructions
    • Compiled the gmail inbox zero

    Summary

    Ran a read-only inbox & filter audit (gmail_inbox_summary + gmail_list_filters) and deterministic size-sorted search (gmail_search_and_sort). Found

    42 unread promotional/newsletter emails older than 7 days (totaling

    18.4 MB) with no conflicting server-side filters.

    No messages have been modified yet.

    Inbox Overview

    Category (in INBOX)CountUnread
    Primary62
    Updates1911
    Promotions3129
    Social1313
    Total INBOX6955

    Preview: Top Candidate Messages (Sorted by Size, Descending)

    #SenderSubjectSizeProposed Label
    1digest@newsletter.example.comWeekly AI Architecture Roundup #481.9 MBNewsletters (Archive)
    2updates@devplatform.example.comMonthly Release Notes & Changelogs1.4 MBDev/WebResources (Archive)
    3deals@retail.example.comSpring Hardware Deals1.1 MBNewsletters (Archive)
    4noreply@alerts.example.comAutomated Build Digest840 KBSystem/Alerts (Archive)

    Proposed Persistent Server-Side Filters (Checked Against 14 Existing Rules — 0 Duplicates)

    [
      {
        "from": "digest@newsletter.example.com",
        "targetLabelName": "Newsletters",
        "archiveInbox": true
      },
      {
        "from": "noreply@alerts.example.com",
        "targetLabelName": "System/Alerts",
        "archiveInbox": true
      }
    ]
    

    Next steps (awaiting your confirmation):

    1. Reply

    "Approve triage" to sync baseline taxonomy labels (gmail_sync_taxonomy_labels) and batch-archive the 42 matched messages via gmail_batch_triage (non-destructive: zero deletions).
    2. Reply

    "Approve filters" to register the 2 persistent Skip-Inbox rules via gmail_create_filter so future mail bypasses your inbox automatically.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Overview

    google-gmail-mcp pairs a guardrail-enforced SKILL.md playbook with a standalone, zero-CVE TypeScript MCP server (npx -y google-gmail-mcp, v1.0.1+) for deterministic Gmail automation across Claude Code, Cursor, GitHub Copilot, and any Stdio MCP client.

    What You Get (8 Annotated MCP Tools + 6 Playbooks)

    • Read-Only Inbox & Filter Audits: gmail_inbox_summary and gmail_list_filters inspect inbox volume, smart categories, and active rules before making any change.
    • Deterministic Client-Side Sorting: gmail_search_and_sort solves Gmail's lack of server-side ORDER BY, sorting matched mail by date, size, from, subject, unreadPriority, or importance.
    • High-Throughput Inbox Zero Sweeps: gmail_sync_taxonomy_labels and gmail_batch_triage categorize and archive up to 1,000 messages per batch with mandatory preview-before-mutate guardrails.
    • Persistent Skip-Inbox Filters: gmail_create_filter and gmail_delete_filter manage server-side Gmail rules (users.settings.filters) after checking existing filters to prevent duplicates.
    • Read-Only Storage Audit: gmail_storage_audit surfaces heavy messages (>=5 MB / >=10 MB) sorted largest-first without deleting anything.

    Quick Start

    1. Install & authorize once (native 127.0.0.1 loopback OAuth2 with CSRF state validation and 0600 local token storage):
      npx -y google-gmail-mcp auth
      
    2. Add the Stdio server to your AI agent config:
      {
        "mcpServers": {
          "gmail": {
            "command": "npx",
            "args": ["-y", "google-gmail-mcp"]
          }
        }
      }
      

    Security & Trust Posture

    • 100% Local & Zero Telemetry: Credentials stay on your machine (~/.gmail-mcp/credentials.json, mode 0600); zero third-party proxies.
    • Non-Destructive MCP Surface: Zero message delete or trash tools exposed to AI agents; all 8 tools declare explicit MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint).
    • Supply-Chain Verified: 0 production vulnerabilities (npm audit --omit=dev), SLSA v1 npm OIDC provenance attestation, and M8ven Verified Publisher.

    License

    Copyright (c) 2026 Ronny Pacheco. All Rights Reserved. Free to install and execute for personal, non-commercial use only. Copying, modifying, redistributing, creating derivative works, or commercial reuse is prohibited without prior written permission (see included LICENSE).

    Requires one-time manual OAuth setup via CLI. Cannot permanently delete or trash messages. Limited to 1,000 IDs per batch operation.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    • Free with an Agensi account

    Software
    Node.js

    Permissions

    Terminal / Shell
    Network Access

    100% local execution. OAuth tokens are stored locally at ~/.gmail-mcp/credentials.json (0600 permissions) using least-privilege scopes (gmail.modify + gmail.settings.basic). Zero message-deletion tools are exposed via MCP.

    Listed13 days ago

    What's inside

    Creator

    rfpacheco

    rfpacheco

    Frequently Asked Questions

    This skill automates high-volume inbox management, allowing you to bulk-triage thousands of emails, create permanent server-side filters, and identify storage-heavy attachments through direct API integration.

    The skill is compatible with any AI agent or platform that supports the Model Context Protocol (MCP) and can interface with Stdio servers.

    You will need to set up a Google Cloud project to obtain OAuth credentials and run the `google-gmail-mcp` server on your local machine or hosted environment.

    For security and safety, this skill focuses on triage and archiving; it does not support the permanent deletion or 'trashing' of messages via the MCP interface.

    The skill allows your agent to process up to 1,000 messages in a single operation, making it significantly faster than manual labeling or standard per-message API calls.

    You receive the complete tool-calling logic and configuration parameters needed to bridge your AI agent with the Gmail MCP server for all listed use cases.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    Free