This Gmail AutoAuth MCP server, developed by gongrzhe, provides a standardized interface for AI assistants to interact with Gmail through natural language. Built with TypeScript and leveraging the Model Context Protocol SDK, it offers tools for sending emails, reading messages, searching emails, managing labels, and more. The server implements OAuth2 authentication with auto browser launch, supporting both desktop and web application credentials. By abstracting Gmail API operations and handling authentication complexities, it enables AI systems to easily manage email communications. This implementation is particularly valuable for applications requiring programmatic email access, facilitating use cases such as automated email management, intelligent email filtering, and AI-driven communication assistance.
Sends a new email immediately. Parameters: to (array of strings), subject (string), body (string), cc (optional array of strings), bcc (optional array of strings)
Creates a draft email without sending it. Parameters: to (array of strings), subject (string), body (string), cc (optional array of strings)
Retrieves the content of a specific email by its ID. Parameters: messageId (string)
Searches for emails using Gmail search syntax. Parameters: query (string), maxResults (optional integer)
Adds or removes labels from emails (move to different folders, archive, etc.). Parameters: messageId (string), addLabelIds (array of strings), removeLabelIds (array of strings)
Permanently deletes an email. Parameters: messageId (string)
Retrieves all available Gmail labels. Parameters: {}
Creates a new Gmail label. Parameters: name (string), messageListVisibility (string), labelListVisibility (string)
Updates an existing Gmail label. Parameters: id (string), name (string), messageListVisibility (string), labelListVisibility (string)
Deletes a Gmail label. Parameters: id (string)
Gets an existing label by name or creates it if it doesn't exist. Parameters: name (string), messageListVisibility (string), labelListVisibility (string)
Modifies labels for multiple emails in efficient batches. Parameters: messageIds (array of strings), addLabelIds (array of strings), removeLabelIds (array of strings), batchSize (optional integer)
Permanently deletes multiple emails in efficient batches. Parameters: messageIds (array of strings), batchSize (optional integer)
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!