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

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

Gmail Inbox Zero & Filter Suite (google-gmail-mcp) is a free AI agent skill on Agensi by rfpacheco, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [rfpacheco](https://www.agensi.io/creators/rfpacheco)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gmail-inbox-zero-filter-suite-google-gmail-mcp
- Tags: automation, gmail-api, inbox-zero, mcp-server, productivity

## 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):
   ```bash
   npx -y google-gmail-mcp auth
   ```
2. Add the Stdio server to your AI agent config:
   ```json
   {
     "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

- Node.js

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Gmail Inbox Zero & Filter Suite (google-gmail-mcp) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an AI to write an email?

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.

### Which AI agents or frameworks can I use with this skill?

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

### What are the technical requirements to get this skill running?

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.

### Can this skill permanently delete emails to free up Google account storage?

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.

### Is there a limit to how many emails can be triaged at once?

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.

### What exactly is included in this skill package?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
