- Home
- Skills
- Workflow Automation
- Gmail Inbox Zero & Filter Suite (google-gmail-mcp)
Gmail Inbox Zero & Filter Suite (google-gmail-mcp)
by rfpacheco
Deterministic Gmail sorting, bulk Inbox Zero sweeps, and persistent Skip-Inbox server-side filters via 8 non-destructive, M8ven-verified MCP tools.
Free
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) | Count | Unread |
|---|---|---|
| Primary | 6 | 2 |
| Updates | 19 | 11 |
| Promotions | 31 | 29 |
| Social | 13 | 13 |
| Total INBOX | 69 | 55 |
Preview: Top Candidate Messages (Sorted by Size, Descending)
| # | Sender | Subject | Size | Proposed Label |
|---|---|---|---|---|
| 1 | digest@newsletter.example.com | Weekly AI Architecture Roundup #48 | 1.9 MB | Newsletters (Archive) |
| 2 | updates@devplatform.example.com | Monthly Release Notes & Changelogs | 1.4 MB | Dev/WebResources (Archive) |
| 3 | deals@retail.example.com | Spring Hardware Deals | 1.1 MB | Newsletters (Archive) |
| 4 | noreply@alerts.example.com | Automated Build Digest | 840 KB | System/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):
- 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_summaryandgmail_list_filtersinspect inbox volume, smart categories, and active rules before making any change. - Deterministic Client-Side Sorting:
gmail_search_and_sortsolves Gmail's lack of server-sideORDER BY, sorting matched mail bydate,size,from,subject,unreadPriority, orimportance. - High-Throughput Inbox Zero Sweeps:
gmail_sync_taxonomy_labelsandgmail_batch_triagecategorize and archive up to 1,000 messages per batch with mandatory preview-before-mutate guardrails. - Persistent Skip-Inbox Filters:
gmail_create_filterandgmail_delete_filtermanage server-side Gmail rules (users.settings.filters) after checking existing filters to prevent duplicates. - Read-Only Storage Audit:
gmail_storage_auditsurfaces heavy messages (>=5 MB / >=10 MB) sorted largest-first without deleting anything.
Quick Start
- Install & authorize once (native
127.0.0.1loopback OAuth2 with CSRFstatevalidation and0600local token storage):npx -y google-gmail-mcp auth - 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, mode0600); 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
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.
What's inside
Creator
rfpacheco
Frequently Asked Questions
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.