
Headless Gmail MCP Server
The Headless Gmail MCP Server allows seamless, headless interaction with Gmail accounts for sending, retrieving, and managing emails. Designed for secure, remot...
Seamlessly connect Gmail with your AI assistants in FlowHunt. Automate email management, search, batch operations, and more, all while maintaining security through OAuth2.
The Gmail MCP Server is a Model Context Protocol (MCP) server designed to integrate Gmail functionalities into AI platforms such as Claude Desktop. Its primary role is to serve as a bridge between AI assistants and Gmail, allowing natural language interactions for managing emails. This includes sending and reading emails, managing labels, handling attachments, searching for specific messages, and performing batch operations. By exposing these capabilities as MCP tools and resources, the Gmail MCP Server enables developers to create powerful workflows where AI agents can automate and streamline email management, facilitate contextual data retrieval from inboxes, and manipulate Gmail content programmatically, all while leveraging secure OAuth2-based authentication.
No explicit prompt templates are listed in the repository or documentation.
Email Messages
Exposes email messages as resources that can be read and used as context for LLM interactions.
Gmail Labels
Provides access to both system and user-defined Gmail labels, which can be used to organize or retrieve emails.
Attachments Metadata
Enables retrieval of information about email attachments, such as filenames, types, and sizes.
Search Results
Allows clients to access the results of advanced email searches based on subject, sender, or date range.
Based on the features listed in the documentation, the following tools are provided by the Gmail MCP Server:
send_email
Send emails with subject, content, attachments, and recipients, including support for HTML and international characters.
read_email
Retrieve email messages by ID, with support for complex MIME structures.
list_labels
List all available Gmail labels (system and user-defined).
manage_labels
Create, update, delete, and list labels for comprehensive label management.
search_emails
Search emails using various criteria (subject, sender, date range).
list_emails_by_label
List emails in inbox, sent, or custom labels.
mark_read_unread
Mark emails as read or unread.
move_email
Move emails to different labels/folders.
delete_email
Delete emails from the mailbox.
batch_operations
Efficiently process multiple emails at once with batch operations.
Automated Email Sending
Developers can set up workflows that allow AI agents to compose and send emails automatically, reducing manual effort for routine communications.
Inbox Triage and Management
AI assistants can categorize, label, and move emails to appropriate folders, helping users maintain organized inboxes and prioritize important messages.
Email Search and Retrieval
With advanced search criteria, users can quickly locate specific messages or attachments, streamlining information retrieval from their Gmail accounts.
Batch Processing
Bulk operations such as deleting, marking read/unread, or moving groups of emails can be automated, saving time for users with high email volumes.
Label Management Automation
AI can create, update, or delete Gmail labels dynamically, enabling adaptive organization strategies based on evolving user needs or project requirements.
windsurf.json
or similar).{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": ["@gongrzhe/server-gmail-autoauth-mcp@latest"]
}
}
}
Securing API Keys Example:
{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": ["@gongrzhe/server-gmail-autoauth-mcp@latest"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}
{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": ["@gongrzhe/server-gmail-autoauth-mcp@latest"]
}
}
}
Environment Variable Example:
{
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": ["@gongrzhe/server-gmail-autoauth-mcp@latest"]
}
}
}
{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": ["@gongrzhe/server-gmail-autoauth-mcp@latest"]
}
}
}
Note:
Always store sensitive API keys or credentials as environment variables and not directly in the configuration files. Use the env
property in your MCP server configuration for secure injection of credentials.
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:
Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"gmail-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent can now use this MCP as a tool with access to all its functions and capabilities. Remember to change “gmail-mcp” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Overview and features clearly documented |
List of Prompts | ⛔ | No explicit prompt templates found |
List of Resources | ✅ | Emails, labels, attachments, search results |
List of Tools | ✅ | Tools inferred from features list |
Securing API Keys | ✅ | Environment variable config is demonstrated |
Sampling Support (less important in evaluation) | ⛔ | No mention of sampling support |
Based on the available documentation, Gmail MCP Server is well-featured for Gmail workflow automation and integration but lacks explicit prompt templates and sampling/roots support documentation. Its security handling and tool/resource exposure are strong, so I’d rate this MCP a 7.5 out of 10 for completeness and developer readiness.
Has a LICENSE | ✅ (MIT) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 106 |
Number of Stars | 409 |
The Gmail MCP Server is a Model Context Protocol server that connects AI platforms to Gmail. It enables AI assistants to send, read, search, and organize emails via natural language, while managing labels, attachments, and batch operations, all with secure OAuth2 authentication.
It exposes tools for sending emails, reading messages, searching emails, managing labels, handling attachments, marking emails, moving or deleting emails, and performing batch operations—all as MCP tools and resources accessible to AI workflows.
Always store sensitive API keys such as GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET as environment variables using the 'env' property in your MCP server configuration. Avoid hard-coding credentials directly in your config files.
Yes! By integrating the Gmail MCP Server in FlowHunt, you can automate email sending, triage, search, label management, and batch operations, all from your AI-powered workflow.
Use cases include automated email sending, smart inbox triage, advanced email search and retrieval, label management, and batch processing of emails for efficient workflow automation.
Empower your AI agents to manage and automate Gmail tasks. Integrate the Gmail MCP Server in FlowHunt for advanced, secure email workflows.
The Headless Gmail MCP Server allows seamless, headless interaction with Gmail accounts for sending, retrieving, and managing emails. Designed for secure, remot...
The Email MCP Server integrates AI assistants with external email systems, enabling automated email sending, file attachments, and SMTP validation through a str...
The Google Workspace MCP Server connects AI agents and large language models to Google Workspace services, enabling seamless programmatic automation and workflo...