IM

infomaniak/mcp-server-mail

部署与 DevOps

本页由 AI 翻译,技术细节请以原文为准。 查看原文

18 stars 11 forks 质量 72 趋势 42

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

  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. mail_rename_folder

    • Rename a folder in the mailbox
    • Required inputs:
      • folder_id (string): Folder ID to rename
      • name (string): New folder name
    • Optional inputs:
      • mailbox_uuid (string): Mailbox UUID (uses primary if omitted)
    • Returns: Renamed folder with id and name
  6. mail_list_emails

    • List emails in a folder
    • Required inputs:
      • folder_id (string): Folder ID
    • Optional inputs:
      • mailbox_uuid (string): Mailbox UUID
      • limit (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 with flagged)
      • flagged (boolean): Only return starred/flagged emails in this folder (cannot be combined with unseen)
    • Returns: List of email threads with subject, from, date, seen status, flagged status, preview
  7. mail_read_email

    • Required inputs:
      • folder_id (string): Folder ID containing the email
      • message_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
  8. 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 email
      • message_id (string): Message ID or UID
      • attachment_id (string): Attachment ID from mail_read_email response
    • 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
在 GitHub 查看完整 README

安装

npx -y @infomaniak/mcp-server-mail
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mail": { "command": "npx", "args": [ "-y", "@infomaniak/mcp-server-mail" ], "env": { "MAIL_TOKEN": "your-token" } } } }