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 | |
List, search, create and update events, RSVP, and find times everyone is free |
Upgrading from a version before calendar support? Google cannot add scopes to a token it has already issued, so your saved credentials keep working for mail while every calendar call fails with a permissions error. Enable the Calendar API and add the calendar scope as below, then re-authenticate once:
npx @spark-apps/gmail-manager-mcp@latest authRunning a local checkout instead of the published package? Re-authenticate with the build your client actually loads, or you will re-consent against whichever version npm is serving and see the same error:
node /path/to/GMail-Manager-MCP/dist/index.js authRelated MCP server: gmail-mcp-server
π Quick Setup
π Prerequisites: Get Gmail Credentials ποΈ
Create New Project π
Create OAuth client ID (Desktop app type) π
Download as
gcp-oauth.keys.jsonπ₯Navigate to Data access β Add or remove scopes β add both:
https://mail.google.com/andhttps://www.googleapis.com/auth/calendarπ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
π¬ Reading
Tool | Description |
| Search using Gmail query syntax |
| Full content of one email |
| Every message in a conversation, oldest first |
| Attachments on an email, with download IDs |
| Save an attachment to a local path |
π§Ή Cleaning up
Tool | Description |
| Move to Trash β recoverable for 30 days. Prefer this |
| Pull messages back out of Trash |
| Remove from inbox, keep everything else |
| Mark read or unread |
| Permanent, bypasses Trash, cannot be undone |
π·οΈ Labels
Tool | Description |
| List all labels |
| Create a label, or return the existing one if the name is taken |
| Delete a label |
| One message |
| Many messages, throttled and retried |
βοΈ Rules & unsubscribing
Tool | Description |
| Filters (rules) currently on the account |
| Set a rule that applies to mail arriving from now on |
| Remove a filter |
| Read a sender's List-Unsubscribe link, without clicking it |
| Opt out of a mailing list via the sender's own one-click endpoint |
βοΈ Composing
Tool | Description |
| Write to Drafts without sending. The safe default |
| Manage drafts |
| Send an existing draft |
| Compose and send immediately |
| Draft a threaded reply |
| Send a fresh copy of a sent message (does not recall the original) |
π Calendar
Tool | Description |
| Calendars this account can access |
| Events on a calendar, optionally in a time range |
| Find events by keyword |
| One event in full, including RSVPs |
| Create an event, optionally with Meet link and guests |
| Change an event; only the fields you pass are altered |
| Delete an event |
| RSVP as yourself |
| Find slots where everyone is free, via free/busy |
π Auth
Tool | Description |
| Authenticate via browser. Covers Gmail and Calendar |
π¬ 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"
"What's on my calendar this week?"
"Find a 45-minute slot next week when Sam and I are both free, weekdays 9-5"
"Move Thursday's standup to 10am and add a Meet link"
"Decline the Friday review, comment that I'm on leave"
"Search my calendar for anything about the tax deadline"
"Show me the rules currently on my account"
"Rule: anything from noreply@ skips the inbox and gets labelled Noise"
"Get the unsubscribe link for this sender so I can check it before clicking"
"Unsubscribe me from this newsletter"
Unsubscribing uses the sender's own published opt-out. Where they support one-click (RFC 8058) it completes on its own; where the only route is emailing them, it asks first, since that sends mail from your account. A plain link with no one-click declaration is handed back for you to open β arbitrary URLs found in mail are never visited, and no response body from a sender is ever read back into the conversation.
π± 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
- AlicenseNot gradedqualityDmaintenanceIntegrates 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
- AlicenseNot gradedqualityDmaintenanceEnables 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
- FlicenseNot gradedqualityDmaintenanceEnables 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.13192MIT
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