mcp-email
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| IMAP_HOST | No | IMAP server hostname. Also accepts IMAP_SERVER as alias. | |
| IMAP_PASS | No | IMAP password. Also accepts IMAP_PASSWORD as alias. Can be omitted if EMAIL_PASS is set. | |
| IMAP_PORT | No | IMAP server port (e.g., 993 for SSL). Default is often 993. | |
| IMAP_USER | No | IMAP username. Also accepts IMAP_USERNAME as alias. Can be omitted if EMAIL_USER is set. | |
| SMTP_HOST | No | SMTP server hostname. Also accepts SMTP_SERVER as alias. | |
| SMTP_PASS | No | SMTP password. Also accepts SMTP_PASSWORD as alias. Can be omitted if EMAIL_PASS is set. | |
| SMTP_PORT | No | SMTP server port (e.g., 587 for TLS, 465 for SSL). Default is often 587. | |
| SMTP_USER | No | SMTP username. Also accepts SMTP_USERNAME as alias. Can be omitted if EMAIL_USER is set. | |
| EMAIL_FROM | No | From address for outgoing emails, e.g., 'Your Name <you@example.com>'. | |
| EMAIL_PASS | No | Shared email password used for both SMTP and IMAP if their specific PASS variables are not set. | |
| EMAIL_USER | No | Shared email username used for both SMTP and IMAP if their specific USER variables are not set. | |
| IMAP_USE_SSL | No | Whether to use SSL for IMAP. Accepts 'true' or 'false'. Default is 'true' for port 993. | true |
| SMTP_USE_TLS | No | Whether to use TLS for SMTP. Accepts 'true' or 'false'. Default is 'true' if port is 587. | |
| EMAIL_RETRY_MAX | No | Maximum number of retry attempts for SMTP send. | 3 |
| IMAP_VERIFY_CERT | No | Whether to verify IMAP server certificate. Accepts 'true' or 'false'. Default is 'true'. | true |
| SMTP_VERIFY_CERT | No | Whether to verify SMTP server certificate. Accepts 'true' or 'false'. Default is 'true'. | true |
| EMAIL_TIMEOUT_SEC | No | Timeout in seconds for email operations. | 30 |
| EMAIL_ATTACHMENT_DIRS | No | Colon-separated list of allowed directories for attachment paths (whitelist). If empty, no restriction. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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