Gmail Plugin MCP Server
Enables email management including sending, receiving, reading, trashing emails, marking emails as read, and opening emails in browser through Gmail's API with OAuth2 authentication.
Click on "Deploy 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 Plugin MCP Serversend an email to john@example.com about the project meeting tomorrow"
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 Plugin MCP Server
A powerful MCP server that enables Gmail integration, allowing you to manage emails directly through MCP clients. This plugin provides seamless access to Gmail's core functionality including reading, sending, and managing emails.
Reference: For a sample MCP server implementation using uvx, check out this example.
🎥 Demo
https://github.com/user-attachments/assets/df9e86cf-1f6b-4265-9c68-b3ed88103d1f
Related MCP server: mcp-gmail
✨ Features
📧 Send and receive emails
📥 Read unread messages
🗑️ Trash emails
📱 Open emails in browser
📝 Mark emails as read
🔒 Secure OAuth2 authentication
🚀 Quick Start
Prerequisites
Python 3.12 or higher
Gmail API credentials
MCP client (like Claude Desktop)
Installation
Clone the repository:
git clone https://github.com/yourusername/gmail-plugin.git
cd gmail-pluginInstall dependencies (choose one method):
# Method 1: Install in editable mode
uv pip install -e .
# Method 2: Install using requirements.txt
uv pip install -r requirements.txt
# Method 3: Install using uv sync (recommended)
uv sync --dev --all-extrasConfigure your Gmail API credentials:
Go to Google Cloud Console
Create a new project or select existing one
Enable Gmail API
Configure OAuth consent screen:
Select "External" user type (no publishing required)
Go to the Audiences tab : Add your email as a "Test user"
Add OAuth scope:
https://www.googleapis.com/auth/gmail/modify
Create OAuth 2.0 credentials:
Choose "Desktop App" as application type
Download the JSON credentials file
Save the credentials file and note its absolute path (will be used for
--creds-file-path)
Configuration
For Development/Unpublished Servers
Add this to your MCP client configuration:
"mcpServers": {
"gmail-plugin": {
"command": "uv",
"args": [
"--directory",
"[absolute path to working directory]",
"run",
"server.py"
"--creds-file-path",
"[absolute-path-to-credentials-file]",
"--token-path",
"[absolute-path-to-access-tokens-file]"
]
}
}For Published Servers
"mcpServers": {
"gmail-plugin": {
"command": "uvx",
"args": [
"gmail-plugin"
]
}
}🛠️ Development
Building and Publishing
Sync dependencies:
uv syncBuild package:
uv buildPublish to PyPI:
uv publishDebugging
Use the MCP Inspector for debugging:
npx @modelcontextprotocol/inspector uv --directory C:\Users\sanch\Desktop\gmail_plugin\gmail-plugin run gmail-plugin📚 API Reference
Available Tools
Tool Name | Description | Required Arguments |
| Send an email | recipient_id, subject, message |
| Retrieve unread emails | None |
| Read email content | email_id |
| Move email to trash | email_id |
| Mark email as read | email_id |
| Open email in browser | email_id |
Available Prompts
Prompt Name | Description | Arguments |
| Act as email administrator | None |
| Draft a new email | content, recipient, recipient_email |
| Edit existing email draft | changes, current_draft |
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server for Gmail that lets you search, read, and draft emails and replies.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
An MCP server that provides email capabilities, hosted on Alpic platform
An MCP server that provides email capabilities, hosted on Alpic platform
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.72GPL 3.0
- AlicenseBqualityFmaintenanceMCP server that connects Claude with Gmail to read, send, delete, and manage messages and labels via the Google Gmail API.3MIT
- AlicenseAqualityDmaintenanceA Gmail MCP server that enables Claude to send, search, and read emails using either Gmail API or SMTP/IMAP backend.3MIT
- AlicenseNot gradedqualityDmaintenanceA secure MCP server that enables Claude to read, search, send, reply, forward, and manage Gmail messages and labels through natural language commands.62 npm1MIT