Alibaba Mail MCP service
This feature is available only for the AI Premium Edition. For information about the differences between editions, see Version Introduction.
The effectiveness of Alibaba Mail MCP calls depends on the baseline capabilities of the AI agent. We recommend optimizing the prompts and knowledge base for your AI agent.
1. What is the MCP service?
MCP stands for Model Context Protocol. It aims to provide a unified, standard interface for large language models and AI agents. Similar to a USB port, it allows an AI agent to connect to and operate external tools for complex tasks.
Alibaba Mail supports the MCP protocol. You can use this protocol to authorize an AI agent to operate your mailbox. By chatting with the AI agent, you can send emails and retrieve email information.
2. Capabilities
You can view detailed descriptions, parameters, and other information about the tools using the MCP tool query interface.
Function | Tool name | Description |
Batch Update Emails | batch_update_emails | Marks multiple emails as read or unread, or adds or removes labels. You can process up to 100 emails at a time and perform one type of operation per call. |
Create Calendar Event | create_calendar_event | Creates an appointment or meeting in a specified calendar. This tool supports recurring events and can send email notifications to attendees. |
Create Email Attachment Upload Session | create_email_attachment_upload_url | Creates an attachment upload session for an email draft and returns a temporary upload URL. The attachment is associated with the draft only after the client uploads the file. |
Create Email Draft | create_email_draft | Creates an email draft in the Drafts folder and saves information such as the subject, body, and recipients. The draft is not automatically sent after creation. |
Forward (Draft) | create_email_forward_draft | Creates a forward draft based on an original email. You can set the body and recipients for the forwarded message. The draft is not automatically sent after creation. |
Reply All (Draft) | create_email_reply_all_draft | Creates a reply-all draft based on an original email. The reply includes the sender, original recipients, and CC recipients. The draft is not automatically sent after creation. |
Reply (Draft) | create_email_reply_draft | Creates a reply draft based on an original email to reply to the sender. If the original email has a Reply-To header, the reply is sent to that address. The draft is not automatically sent after creation. |
Create Mail Folder | create_mail_folder | Creates a mail folder. You can specify its location by using the parent folder ID. |
Batch Delete Emails | delete_emails | Deletes multiple emails by their IDs. You can delete up to 100 emails at a time. |
Delete Mail Folder | delete_mail_folder | Deletes a mail folder by its folder ID. Only empty folders can be deleted. |
Get Calendar Event Details | get_calendar_event | Retrieves the details of a calendar event based on the user's email, calendar ID, and event ID. |
Get Email Details | get_email | Retrieves the details of an email by its ID. By default, it returns basic fields. You can use $select to retrieve extended information such as the body and recipients. |
Get Email Attachment Download URL | get_email_attachment_download_url | Retrieves a temporary URL for a client to download a specified email attachment. |
Get Conversation | get_email_conversation | Retrieves an overview of an email conversation, including the subject, summary, number of emails, and read status. It does not currently return the details of individual emails within the conversation. |
List Calendar Events within a Time Range | list_calendar_view | Queries for calendar events within a specified time range in a given calendar and expands recurring events into individual occurrences. Supports cursor-based pagination. |
List Calendars | list_calendars | Lists all calendars a user can access, including their own and any shared calendars they have accepted. |
List Email Attachments | list_email_attachments | Queries for all attachments of an email by its ID to retrieve information such as attachment IDs. |
List Conversations | list_email_conversations | Lists email conversations in a folder with pagination. Supports time range and time sorting. Returns a maximum of 100 entries at a time. |
List Mail Folders | list_mail_folders | Queries for subfolders under a top-level folder or a specified parent folder. You can choose to recursively return all levels. |
Batch Move Emails | move_emails | Moves multiple emails to a destination folder. You can move up to 100 emails at a time. The destination folder cannot be the Drafts folder. |
Search Emails | search_emails | Searches for emails by criteria such as subject, body, sender, recipient, and time. Supports combined queries and pagination. Returns a maximum of 100 emails per page. |
Search Users by Keyword | search_users | Searches for users in the same domain by keywords such as name, nickname, Pinyin, employee ID, or office location to retrieve information like their email address. |
Send Email | send_email | Creates and immediately sends a new email based on information such as the subject, HTML body, and recipients. The sending process is completed in a single call. |
Send Email Draft | send_email_draft | Sends an email from the Drafts folder by its draft ID. You can specify whether to save the sent email to the Sent folder. |
Update Email Draft | update_email_draft | Modifies the subject, body, recipients, and other information of an existing draft. This operation is only supported for email drafts in the Drafts folder. |
Update Mail Folder Name | update_mail_folder | Renames a mail folder using its folder ID. |
3. Usage
-
Log on to the Alibaba Mail domain admin platform with the administrator account (postmaster).
Standard edition
Domestic edition
Enable the MCP service.
Go to Settings > Feature Switches.
Find and enable the "Allow MCP Service" option, and then save.
After you enable this feature, members within the specified scope can use the Alibaba Mail MCP service to authorize external AI agents to access and operate their personal mailboxes.

Configure the MCP service
Step 1: Go to Mailbox Settings > AI Intelligence > MCP Service. Click Generate Token, enter a purpose for the token, and set an expiration time.

Step 2: Copy the token or JSON configuration.

Configure the MCP client
Configure the MCP parameters for Alibaba Mail in your AI agent.





















