npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@spark-apps/gmail-manager-mcp

v1.7.4

Published

A minimal MCP server for Gmail to help you manage, organize, and clean up your inbox

Readme

Gmail Manager MCP

🧹 Clean your inbox • 🏷️ Organize with labels • 🗑️ Bulk delete emails

npm MCP Server MIT GitHub Sponsors Report Bug GitHub Stars

✨ What It Does

Gmail Manager MCP provides direct access to your Gmail inbox through the Model Context Protocol, allowing you to:

| Feature | Description | |:---------|:-------------| | Email Search | Find emails by sender, subject, date, or any Gmail query | | Inbox Analytics | Get insights about your email patterns and volume | | Read & Draft Replies | Read the full content of an email | | Smart Organization | Create and apply labels to categorize emails automatically | | Bulk Cleanup | Remove old newsletters, notifications, and spam efficiently |

🚀 Quick Setup

📋 Prerequisites: Get Gmail Credentials 🗝️

  1. Create New Project 📁
  2. Enable Gmail API 📧
  3. Create OAuth client ID (Desktop app type) 🔐
  4. Download as gcp-oauth.keys.json 📥
  5. Navigate to Data accessAdd or remove scopes → Enter: https://mail.google.com/ 🔓
  6. Navigate to Test users → Add your Google email 👤

📁 Where to put gcp-oauth.keys.json:

For Windows users in WSL:

# Copy from Windows to current directory
cp /mnt/c/Users/YourUsername/gcp-oauth.keys.json ./gcp-oauth.keys.json

General locations:

  • Current directory: ./gcp-oauth.keys.json (works everywhere)
  • Home directory: ~/gcp-oauth.keys.json (for npx usage)
  • Custom path: Set GMAIL_OAUTH_PATH environment variable

📥 Installation

npm i -g @spark-apps/gmail-manager-mcp

git clone https://github.com/muammar-yacoob/GMail-Manager-MCP.git
cd GMail-Manager-MCP
npm install

💻 Terminal Usage

# Install globally
npm i -g @spark-apps/gmail-manager-mcp

# Setup authentication (run this first)
npx @spark-apps/gmail-manager-mcp@latest auth

# Test MCP server (for debugging)
npx @modelcontextprotocol/inspector npx @spark-apps/gmail-manager-mcp@latest

⚙️ Configure MCP Client

Add to your MCP client config file (Claude Desktop example):

  • Windows %APPDATA%\\Claude\\claude_desktop_config.json
  • macOS ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux ~/.config/Claude/claude_desktop_config.json

📦 For NPM Install:

{
  "mcpServers": {
    "gmail-manager": {
      "command": "npx", "args": ["@spark-apps/gmail-manager-mcp@latest"],
      "env": { "GMAIL_OAUTH_PATH": "C:\\path\\to\\gcp-oauth.keys.json" }
    }
  }
}

For Local Development:

{
  "mcpServers": {
    "gmail-manager": {
      "command": "node", "args": ["C:\\path\\to\\GMail-Manager-MCP\\dist\\index.js"]
    }
  }
}

🛠️ Available Tools

| Tool | Description | |:------|:-------------| | Authenticate Gmail | Authenticate Gmail access via web browser | | Search Emails | Search emails using Gmail query syntax | | Read Email | Read the full content of an email | | Create Reply | Create a draft reply to an email with a smart, context-aware response | | List Labels | List all Gmail labels | | Create Label | Create a new Gmail label | | Apply Label | Apply a label to an email | | Batch Apply Labels | Apply labels to multiple emails | | Remove Label | Remove a label from an email | | Delete Label | Delete a Gmail label | | Delete Email | Permanently delete an email | | Batch Delete Emails | Delete multiple emails at once |

💬 Example Commands

  • "Delete all promotional emails from last 30 days"
  • "Delete all unread newsletters older than 1 week"
  • "Delete all 'no-reply' emails from last 3 months"
  • "Delete all LinkedIn notification emails"
  • "Delete all password reset emails older than 1 month"
  • "Delete redundant email chains where I'm CC'd"
  • "Summarize email with subject: 'last boring meeting'"
  • "Summarize all emails about 'project deadline'"
  • "Reply to email about 'project update' saying 'Got it, thanks!'"
  • "Label all emails from my bank as 'Finance'"
  • "Create 'Travel' label and move all booking confirmations"
  • "Find emails with attachments larger than 5MB"
  • "Show me who sends me the most emails"
  • "Find all unread emails older than 1 week"
  • "Show my busiest email days this month"
  • "Find emails I starred but never replied to"

🌱 Support & Contributions

Star the repo & I power up like Mario 🍄
Devs run on coffee - Buy me one?
💰 Crypto tips welcome - Tip in crypto
🤝 Contributions are welcome - 🍴 Fork, improve, PR!
🎥 Need help? Setup Tutorial Join Discord

💖 Sponsor

Your support helps maintain and improve the tool. please consider sponsoring the project.


Made with ❤️ for MCPPrivacy PolicyTerms of Service