loading…
Search for a command to run...
loading…
Connects Claude Desktop to your Gmail so you can start managing your inbox using natural language. Bulk delete promos & newsletters, organize labels and get use
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.
🧹 Clean your inbox • 🏷️ Organize with labels • 🗑️ Bulk delete emails
npm MCP Server MIT GitHub Sponsors Report Bug GitHub Stars

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 |
gcp-oauth.keys.json 📥https://mail.google.com/ 🔓📁 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:
./gcp-oauth.keys.json (works everywhere)~/gcp-oauth.keys.json (for npx usage)GMAIL_OAUTH_PATH environment variablenpm i -g @spark-apps/gmail-manager-mcp
git clone https://github.com/muammar-yacoob/GMail-Manager-MCP.git
cd GMail-Manager-MCP
npm install
# 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
Add to your MCP client config file (Claude Desktop example):
%APPDATA%\\Claude\\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.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"]
}
}
}
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 |
⭐ 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
Your support helps maintain and improve the tool. please consider sponsoring the project.
Made with ❤️ for MCP • Privacy Policy • Terms of Service
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"muammar-yacoob-gmail-manager-mcp": {
"command": "npx",
"args": []
}
}
}