GMail Manager MCP

GMail Manager MCP

Connects Claude Desktop to your Gmail so you can start managing your inbox using natural language. Bulk delete promos & newsletters, organize labels and get useful insights.

Category
Visit Server

README

<img src="public/images/trash-mail.png" alt="Gmail Manager" width="48" height="48" style="vertical-align: middle;"> Gmail Manager MCP

<div align="center">

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

npm MCP Server MIT

GitHub Sponsors Buy Me Coffee Report Bug Downloads GitHub Stars

<img src="public/images/meme.png" alt="Stop sending me unnecessary emails meme" width="400">

</div>

✨ What It Does

Gmail Manager MCP gives Claude Desktop direct access to your Gmail inbox, allowing you to:

Feature Description
Search Find emails by sender, subject, date, or any Gmail query
Analytics Get insights about your email patterns and volume
Read Read the full content of an email
Organize Create and apply labels to categorize emails automatically
Cleanup Remove old newsletters, notifications, and spam efficiently

🚀 Quick Setup

📋 Prerequisites: Get Gmail Credentials 🗝️

<details> <summary><strong>🔑 Required before any installation</strong></summary>

  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:

  • If using npm (npx): Place it in your home directory
    Windows: %USERPROFILE% • macOS/Linux: ~/
  • If running locally from source: Place it in the project root (same folder as package.json)
  • Or set a custom path: Define GMAIL_OAUTH_PATH in your Claude Desktop config to point to the file

</details>


📥 Installation

<details> <summary><strong>📦 Install from npm registry (Easier ⚡) </strong></summary>

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

</details>


<details> <summary><strong>🏠 Clone and build locally (Safer 🛡️)</strong></summary>

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

</details>

</details>


⚙️ Configure Claude Desktop

<details> <summary><strong>🔧 Required for all installation methods</strong></summary>

Add to your Claude Desktop config file:

  • 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"]
    }
  }
}

</details>

🛠️ Available Tools

<details> <summary><strong>🔧 View All Available Tools</strong></summary>

Tool Description
Auth Authenticate Gmail access via web browser
Search Search emails using Gmail query syntax
Read Read the full content of an email
Labels List all Gmail labels
Create Create a new Gmail label
Apply Apply a label to an email
Batch Apply Apply labels to multiple emails
Unlabel Remove a label from an email
Remove Delete a Gmail label
Delete Permanently delete an email
Batch Delete Delete multiple emails at once

</details>

💬 Example Commands

<details> <summary><strong>🧹 Quick Cleanup</strong></summary>

  • "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"

</details>

<details> <summary><strong>⚡ Smart Actions</strong></summary>

  • "Summarize email with subject: 'last boring meeting'"
  • "Summarize all emails about 'project deadline'"
  • "Label all emails from my bank as 'Finance'"
  • "Create 'Travel' label and move all booking confirmations"
  • "Find emails with attachments larger than 5MB"

</details>

<details> <summary><strong>📊 Inbox Insights</strong></summary>

  • "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"

</details>


🌱 Support & Contributions

Star the repo & I power up like Mario 🍄
Devs run on coffee - Buy me one?
🤝 Contributions are welcome - 🍴 Fork, improve, PR!
🎥 Need help? <img src="https://img.icons8.com/color/20/youtube-play.png" alt="YouTube" style="vertical-align: middle;"> Setup Tutorial • <img src="https://img.icons8.com/color/20/discord--v2.png" alt="Discord" style="vertical-align: middle;"> Join Discord

💖 Sponsor

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


<div align="center">

Made with ❤️ for Claude DesktopPrivacy PolicyTerms of Service

</div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured