Gmail
Summary
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.
Available Actions(13)
send_email
Sends a new email immediately. Supports plain text, HTML, or multipart emails. Parameters: to (array of strings), subject (string), body (string), cc (optional array of strings), bcc (optional array of strings), mimeType (string)
draft_email
Creates a draft email without sending it. Parameters: to (array of strings), subject (string), body (string), cc (optional array of strings)
read_email
Retrieves the content of a specific email by its ID. Parameters: messageId (string)
search_emails
Searches for emails using Gmail search syntax. Parameters: query (string), maxResults (optional integer)
modify_email
Adds or removes labels from emails (move to different folders, archive, etc.). Parameters: messageId (string), addLabelIds (optional array of strings), removeLabelIds (optional array of strings)
delete_email
Permanently deletes an email. Parameters: messageId (string)
list_email_labels
Retrieves all available Gmail labels. Parameters: None
create_label
Creates a new Gmail label. Parameters: name (string), messageListVisibility (string), labelListVisibility (string)
update_label
Updates an existing Gmail label. Parameters: id (string), name (string), messageListVisibility (string), labelListVisibility (string)
delete_label
Deletes a Gmail label. Parameters: id (string)
get_or_create_label
Gets an existing label by name or creates it if it doesn't exist. Parameters: name (string), messageListVisibility (string), labelListVisibility (string)
batch_modify_emails
Modifies labels for multiple emails in efficient batches. Parameters: messageIds (array of strings), addLabelIds (optional array of strings), removeLabelIds (optional array of strings), batchSize (optional integer)
batch_delete_emails
Permanently deletes multiple emails in efficient batches. Parameters: messageIds (array of strings), batchSize (optional integer)
社区评论
暂无评论. 成为第一个评论的人!
登录以参与讨论