Skip to main content
Glama
weiting-tw

mcp-email

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAP_HOSTNoIMAP server hostname. Also accepts IMAP_SERVER as alias.
IMAP_PASSNoIMAP password. Also accepts IMAP_PASSWORD as alias. Can be omitted if EMAIL_PASS is set.
IMAP_PORTNoIMAP server port (e.g., 993 for SSL). Default is often 993.
IMAP_USERNoIMAP username. Also accepts IMAP_USERNAME as alias. Can be omitted if EMAIL_USER is set.
SMTP_HOSTNoSMTP server hostname. Also accepts SMTP_SERVER as alias.
SMTP_PASSNoSMTP password. Also accepts SMTP_PASSWORD as alias. Can be omitted if EMAIL_PASS is set.
SMTP_PORTNoSMTP server port (e.g., 587 for TLS, 465 for SSL). Default is often 587.
SMTP_USERNoSMTP username. Also accepts SMTP_USERNAME as alias. Can be omitted if EMAIL_USER is set.
EMAIL_FROMNoFrom address for outgoing emails, e.g., 'Your Name <you@example.com>'.
EMAIL_PASSNoShared email password used for both SMTP and IMAP if their specific PASS variables are not set.
EMAIL_USERNoShared email username used for both SMTP and IMAP if their specific USER variables are not set.
IMAP_USE_SSLNoWhether to use SSL for IMAP. Accepts 'true' or 'false'. Default is 'true' for port 993.true
SMTP_USE_TLSNoWhether to use TLS for SMTP. Accepts 'true' or 'false'. Default is 'true' if port is 587.
EMAIL_RETRY_MAXNoMaximum number of retry attempts for SMTP send.3
IMAP_VERIFY_CERTNoWhether to verify IMAP server certificate. Accepts 'true' or 'false'. Default is 'true'.true
SMTP_VERIFY_CERTNoWhether to verify SMTP server certificate. Accepts 'true' or 'false'. Default is 'true'.true
EMAIL_TIMEOUT_SECNoTimeout in seconds for email operations.30
EMAIL_ATTACHMENT_DIRSNoColon-separated list of allowed directories for attachment paths (whitelist). If empty, no restriction.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
email_configureA

Runtime 動態設定 SMTP / IMAP 帳號設定。任一欄位可單獨更新,未提供的欄位維持現值。回傳更新後的非敏感設定摘要。

email_test_connectionB

測試 SMTP 與/或 IMAP 連線是否能登入。回傳兩邊狀態。

email_sendB

寄送郵件。支援 HTML + 純文字、to/cc/bcc 多收件人、檔案/Base64 附件、自訂 headers、Reply-To。失敗自動 retry(exponential backoff)。

email_list_foldersA

列出 IMAP 上所有 mailbox / folder 名稱。

email_list_messagesA

列出指定 folder 中的訊息 header(最新優先)。可用 IMAP search syntax 篩選(預設 ALL)。

email_get_messageB

抓取單封郵件完整內容(含 body text/html、附件 metadata)。預設 peek 不改 SEEN flag。

email_markC

加 / 移除 IMAP flag(\Seen / \Flagged 等)。

email_deleteC

標記 \Deleted 並 expunge。注意:無法復原。

email_create_folderA

建立 IMAP folder / mailbox(支援中文名稱,自動 modified UTF-7 編碼)。已存在時不報錯,回傳 already_exists=true。

email_move_messagesA

把指定 UID 的信從 source_folder 搬到 destination_folder。優先用 UID MOVE,server 不支援則 fallback 為 COPY + UID EXPUNGE。目的地需先存在(請先呼叫 email_create_folder)。

email_apply_rulesA

掃描 folder 後,依規則對信件做 move / mark / delete。預設:子字串、大小寫不敏感、first-match-wins(一封信只套第一條命中的規則)。可用 case_sensitive / match_mode 與每條規則的 match(substring|regex|exact) 調整。強烈建議先 dry_run=true 預覽命中數與前幾封,確認無誤再執行。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/weiting-tw/mcp-email'

If you have feedback or need assistance with the MCP directory API, please join our Discord server