GMail Manager MCP
Provides comprehensive Gmail inbox management capabilities including email search, reading, bulk deletion, label creation and management, and inbox analytics for organizing and cleaning up email accounts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GMail Manager MCPdelete all promotional emails from last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gmail Manager MCP
π§Ή Clean your inbox β’ π·οΈ Organize with labels β’ ποΈ Bulk delete emails
β¨ What It Does
Gmail Manager MCP provides direct access to your Gmail inbox through the Model Context Protocol, allowing you to:
Feature | Description |
Find emails by sender, subject, date, or any Gmail query | |
Get insights about your email patterns and volume | |
Read the full content of an email | |
Create and apply labels to categorize emails automatically | |
Remove old newsletters, notifications, and spam efficiently |
Related MCP server: gmail-mcp-server
π Quick Setup
π Prerequisites: Get Gmail Credentials ποΈ
Create New Project π
Enable Gmail API π§
Create OAuth client ID (Desktop app type) π
Download as
gcp-oauth.keys.jsonπ₯Navigate to Data access β Add or remove scopes β Enter:
https://mail.google.com/π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.jsonGeneral locations:
Current directory:
./gcp-oauth.keys.json(works everywhere)Home directory:
~/gcp-oauth.keys.json(for npx usage)Custom path: Set
GMAIL_OAUTH_PATHenvironment variable
π₯ Installation
npm i -g @spark-apps/gmail-manager-mcpgit 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.jsonmacOS
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux
~/.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 access via web browser | |
Search emails using Gmail query syntax | |
Read the full content of an email | |
Create a draft reply to an email with a smart, context-aware response | |
List all Gmail labels | |
Create a new Gmail label | |
Apply a label to an email | |
Apply labels to multiple emails | |
Remove a label from an email | |
Delete a Gmail label | |
Permanently delete an email | |
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 MCP β’ Privacy Policy β’ Terms of Service
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceIntegrates Gmail with Claude Desktop to fetch unread emails, generate AI-powered draft replies with customizable tone and style guides, and manage your inbox through natural language commands.MIT
- Alicense-qualityDmaintenanceEnables AI-powered inbox management with natural language commands through Claude Desktop. Supports sending, reading, searching, organizing emails, and managing labels using Gmail API with automatic authentication.8MIT
- Flicense-qualityDmaintenanceEnables reading unread emails and creating draft replies in Gmail via Claude Desktop.
- AlicenseAqualityCmaintenanceConnects multiple Gmail accounts to Claude Desktop via MCP, enabling email search, labeling, drafts, and confirmed sending through natural language.13190MIT
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflowβ¦
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organizβ¦
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/muammar-yacoob/GMail-Manager-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server