
1. mail_list_mailboxes - List all mailboxes in your Infomaniak account - Returns: List of mailboxes with uuid, email, and mailbox name
概览
1. mail_list_mailboxes - List all mailboxes in your Infomaniak account - Returns: List of mailboxes with uuid, email, and mailbox name 2. mail_list_folders - List all folders in a mailbox - Required inputs: - mailbox_uuid (string, optional): Mailbox UUID (uses primary if omitted) - Returns: List of folders with id, name, path, role, unread/total counts 3. mail_create_folder - Create a new folder in the mailbox - Required inputs: - name (string): Name of the folder to create - Optional inputs: - parent_folder_id (string): Parent folder ID (omit for root-level folder) - mailbox_uuid (string): Mailbox UUID (uses primary if omitted) - Returns: Created folder with id, name, and parent_folder_id 4. mail_delete_folder - Delete a folder from the mailbox - Required inputs: - folder_id (string): Folder ID to delete - Optional inputs: - mailbox_uuid (string): Mailbox UUID (uses primary if omitted) - Returns: Deletion confirmation 5.
README
以下为原文 README 节选,完整内容请查看原文。
Mail MCP Server
MCP Server for the Infomaniak Mail API.
Tools
-
mail_list_mailboxes- List all mailboxes in your Infomaniak account
- Returns: List of mailboxes with uuid, email, and mailbox name
-
mail_list_folders- List all folders in a mailbox
- Required inputs:
mailbox_uuid(string, optional): Mailbox UUID (uses primary if omitted)
- Returns: List of folders with id, name, path, role, unread/total counts
-
mail_create_folder- Create a new folder in the mailbox
- Required inputs:
name(string): Name of the folder to create
- Optional inputs:
parent_folder_id(string): Parent folder ID (omit for root-level folder)mailbox_uuid(string): Mailbox UUID (uses primary if omitted)
- Returns: Created folder with id, name, and parent_folder_id
-
mail_delete_folder- Delete a folder from the mailbox
- Required inputs:
folder_id(string): Folder ID to delete
- Optional inputs:
mailbox_uuid(string): Mailbox UUID (uses primary if omitted)
- Returns: Deletion confirmation
-
mail_rename_folder- Rename a folder in the mailbox
- Required inputs:
folder_id(string): Folder ID to renamename(string): New folder name
- Optional inputs:
mailbox_uuid(string): Mailbox UUID (uses primary if omitted)
- Returns: Renamed folder with id and name
-
mail_list_emails- List emails in a folder
- Required inputs:
folder_id(string): Folder ID
- Optional inputs:
mailbox_uuid(string): Mailbox UUIDlimit(number): Maximum emails to return (default: 50)offset(number): Pagination offset (default: 0)unseen(boolean): Only return unread emails in this folder (cannot be combined withflagged)flagged(boolean): Only return starred/flagged emails in this folder (cannot be combined withunseen)
- Returns: List of email threads with subject, from, date, seen status, flagged status, preview
-
mail_read_email- Required inputs:
folder_id(string): Folder ID containing the emailmessage_id(string): Message ID or UID
- Optional inputs:
mailbox_uuid(string): Mailbox UUID
- Returns: Full email with uid, msg_id, subject, from, to, cc, bcc, date, body, html, preview, seen status, flagged status, folder, folder_id, headers, and attachment metadata
- Required inputs:
-
mail_download_attachment- Download an email attachment. Common web image formats (png/jpeg/gif/webp) are returned as image content, everything else as an embedded resource
- Required inputs:
folder_id(string): Folder ID containing the emailmessage_id(string): Message ID or UIDattachment_id(string): Attachment ID frommail_read_emailresponse
- Optional inputs:
mailbox_uuid(string): Mailbox UUID (uses primary if omitted)
- Returns: a small metadata text block plus the binary as a typed content block
安装
npx -y @infomaniak/mcp-server-mail配置
{
"mcpServers": {
"mail": {
"command": "npx",
"args": [
"-y",
"@infomaniak/mcp-server-mail"
],
"env": {
"MAIL_TOKEN": "your-token"
}
}
}
}