Mailbridge

io.github.Creativestefan由 GitHub 帳號 Creativestefan 發布v2.6.1更新於 Oct 24, 2026

Connect your AI assistant to email — read, search, send, and organise via IMAP/SMTP.

已驗證STDIO僅桌面效率與工作流溝通與協作

概覽

AI 產生的概覽

本機 MCP 伺服器,把 AI 助理接到 IMAP/SMTP 信箱,可讀取、搜尋、寄送、排程與整理郵件。

可以做什麼
  • 讀取、搜尋與彙整郵件:從任一資料夾取得郵件、內文、對話串、聯絡人往來紀錄、合併收件匣,以及附優先順序與分類標籤的摘要,並可匯出為 Markdown。
  • 處理附件:列出並安全掃描附件,讀取 PDF、DOCX、文字與圖片,從郵件和 .ics 檔擷取行事曆事件。
  • 撰寫與寄送:寄送新郵件或含附件的回覆,儲存、列出並寄出草稿,排程寄送或取消排程,檢查讀取回條確認。
  • 整理郵件:標為已讀或未讀、移動、刪除、批次操作、後續提醒、透過 List-Unsubscribe 退訂,以及用本機規則標記與排序。
  • 管理帳號:列出、新增、切換與移除已連結帳號,並開啟設定入口。
適用情境
適合讓助理整理收件匣、彙整未讀郵件、起草或寄出回覆,或在不切換應用的情況下維持信箱秩序。適用於桌機上的 iCloud 或任何自訂 IMAP 帳號。
執行需求
以 npm 套件 mailbridge-mcp 透過 npx 在本機執行,需要具備憑證存放區的桌機系統(macOS Keychain、Windows 認證管理員或 Linux Keyring)。需要支援 IMAP 與 SMTP 的信箱帳號;iCloud 需使用 App 專用密碼。需要連線郵件伺服器的網路,並會開啟一次瀏覽器完成設定表單。
安裝前請注意
助理可以寄送、回覆、排程、移動與刪除郵件,並可退訂郵件清單,請先審閱草稿並確認破壞性操作。它會處理信箱密碼,密碼存於作業系統憑證存放區;iCloud 請使用 App 專用密碼而非 Apple ID 主密碼。排程郵件會在預定時間後的下一次工作階段啟動時寄出。讀取回條取決於收件人,不能當作已讀的證明。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mailbridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Mailbridge MCP

Connect your AI assistant to your email — read, search, send, reply, organise, draft, schedule, and manage attachments from iCloud or any IMAP account. Works with Claude, OpenAI Codex, Cursor, Windsurf, and any MCP-compatible client.

Credentials are stored securely in your OS credential store (macOS Keychain, Windows Credential Manager, or Linux Keyring) — never in a file.


Features

Reading & Search

  • Read emails — fetch inbox, any folder, with subject/sender/date
  • Inbox digest — smart summary with priority scoring, categories, and action suggestions
  • Search — find emails by keyword, sender, or subject
  • Thread view — see the full conversation thread for any email
  • Contact history — view all emails to/from a specific contact
  • Unified inbox — merge multiple folders into one date-sorted view
  • Priority scoring — every email is automatically scored 1–5 for urgency
  • Auto-categorisation — emails are tagged Finance, Travel, Calendar, Newsletter, and more

Sending & Drafts

  • Send & reply — compose new emails or reply with threading
  • Send attachments — attach local files or inline content to any outgoing email
  • Smart drafts — save emails locally for review before sending
  • Email scheduling — schedule emails to send at a future time
  • Read receipts — optionally request confirmation when a sent email is opened (recipient-dependent; see Read Receipts)

Organisation

  • Bulk actions — mark, move, or delete multiple emails in one command
  • Follow-up reminders — tag an email "remind me in 3 days" and it surfaces in your next digest
  • Unsubscribe — auto-unsubscribe from mailing lists via List-Unsubscribe headers
  • Email rules — define local rules to flag, categorise, or prioritise emails automatically
  • Move, delete, mark — standard inbox management tools

Attachments & Content

  • Read attachments — PDF, DOCX, TXT, JPG, PNG, MP3, MP4 and more
  • Attachment safety — every attachment is scanned before download; dangerous file types are blocked
  • Export email — export any email as clean Markdown
  • Calendar extraction — pull event details (dates, times, locations) from emails and .ics files

Accounts

  • Multiple accounts — connect and switch between accounts
  • Secure credentials — passwords stored in OS keychain, never in plain text

Install

Claude Cowork

  1. Go to Customize → Connectors → Browse Plugins → "+" sign
  2. Add marketplace source: https://github.com/Creativestefan/mailbridge-mcp
  3. Start a new chat — and enter Open Mailbridge setup to open the setup portal and connect your email account
  4. For iCloud emails you will need to create an App specfic password to access your email securely. Using your real password will fail to authenicate.
  5. To reopen setup at any time: "open Mailbridge setup"

To update later: Customize → Connectors → Browse Plugins → (...) button and Click Check for update


OpenAI Codex

  1. Add the Mailbridge marketplace:
bash
codex plugin marketplace add Creativestefan/mailbridge-mcp --ref main
  1. Install the plugin:
bash
codex plugin add mailbridge@mailbridge
  1. Start a new Codex thread and test:
Use Mailbridge to check my email connection.
  1. If no account is connected yet:
Type "Open Mailbridge setup" and send.

The setup portal saves credentials directly to your OS credential store (macOS Keychain, Windows Credential Manager, or Linux Keyring).

To update later:

bash
codex plugin marketplace upgradecodex plugin add mailbridge@mailbridge

Cursor

  1. Open Cursor Settings → Tools & MCP
  2. Click Add MCP Server and paste:
json
{  "mcpServers": {    "mailbridge": {      "command": "npx",      "args": ["-y", "mailbridge-mcp@latest"]    }  }}
  1. Fully quit and reopen Cursor (MCP servers only load at startup)
  2. Start a new chat and test:
Use Mailbridge to check my email connection.

If no account is connected yet, the setup portal opens automatically — or ask: "open email setup".

To update later: bump the version tag in your config to mailbridge-mcp@latest — it always pulls the newest release.


Via npm (any MCP client)

Add to your MCP client config (e.g. claude_desktop_config.json):

json
{  "mcpServers": {    "mailbridge": {      "command": "npx",      "args": ["mailbridge-mcp"]    }  }}

On first start, if no account is configured, the setup portal opens automatically in your browser. Fill in your email details — credentials are saved directly to your OS credential store and the portal closes. You only need to do this once.

To reopen setup at any time, ask your assistant: "open email setup"


Setup

On first install, a browser form opens automatically to connect your email account. Credentials go directly into your OS credential store on submit — nothing is written to a file.

To reopen setup at any time, just ask your assistant: "open email setup".

iCloud

You must use an App-Specific Password — your main Apple ID password will not work.

Go to account.apple.com → Sign-In & Security → App-Specific Passwords → +, name it "Mailbridge", and use the generated password.

Custom IMAP account

Use your full email address and password. The mail server is usually mail.yourdomain.com — check your email provider's settings if unsure.


Tools

Reading

ToolDescription
check_connectionTest connection and show inbox stats
read_emailsFetch emails from any folder (includes priority + category)
get_email_bodyGet full body of an email by UID
get_emails_with_previewFetch emails with body snippets — used for inbox summaries
search_emailsSearch by keyword, sender, or subject
list_foldersList all mailbox folders
get_threadFetch the full conversation thread for an email
get_contact_historyAll emails to/from a specific contact
unified_inboxMerge multiple folders into one sorted view
export_emailExport an email as clean Markdown
extract_calendar_eventsExtract event details and parse .ics attachments

Attachments

ToolDescription
get_attachmentsList attachments with safety scan — no download
read_attachmentDownload and read an attachment after user approves

Sending & Drafts

ToolDescription
send_emailCompose and send a new email (optional file attachments)
reply_to_emailReply to an existing email (optional file attachments)
save_draftSave an email as a local draft
list_draftsList saved drafts
send_draftSend a saved draft by ID
delete_draftDiscard a saved draft
schedule_emailSchedule an email for future delivery
list_scheduledList pending scheduled emails
cancel_scheduledCancel a scheduled email
check_email_opensScan the inbox for read-receipt confirmations and report opens
list_tracked_emailsShow tracked emails and their open status (no inbox scan)

Organisation

ToolDescription
mark_as_readMark email as read
mark_as_unreadMark email as unread
move_emailMove email to another folder
delete_emailMove email to Trash
bulk_mark_readMark multiple emails as read
bulk_mark_unreadMark multiple emails as unread
bulk_moveMove multiple emails to a folder
bulk_deleteMove multiple emails to Trash
set_reminderSet a follow-up reminder on an email
list_remindersView active reminders (overdue ones flagged)
complete_reminderMark a reminder as done
unsubscribe_emailAuto-unsubscribe via List-Unsubscribe header

Rules

ToolDescription
add_ruleAdd a local rule to flag, categorise, or prioritise emails
list_rulesList all configured rules
remove_ruleRemove a rule by name
apply_rulesDry-run rules against a set of emails

Accounts

ToolDescription
list_accountsShow all connected accounts
switch_accountSwitch active account
add_accountAdd a new account via chat
remove_accountRemove an account (defaults to active)
remove_all_accountsDisconnect and remove all accounts
open_setupOpen the setup portal to connect or add an account

Inbox Summary

Ask your assistant "catch me up" or "what did I miss?" for a structured digest.

Every email now carries automatic priority scoring (1–5) and category tags so the digest is sorted instantly:

  • 🔴 Action Required — priority 4–5 or keywords like "urgent", "deadline", "reply needed"
  • 💰 Finance & Billing — invoices, payments, subscription renewals
  • 📅 Events & Calendar — meeting invites, travel confirmations, RSVPs
  • 📦 Updates & FYI — newsletters, notifications, low-priority

Follow-up reminders due today or overdue are surfaced at the top of every digest.

The digest closes with a suggested actions block — specific next steps like "unsubscribe from X", "set a reminder on Y", or "bulk archive the 8 newsletters".


Drafts & Scheduling

Save any email as a draft before sending:

"Draft a reply to this email — I'll review it first"

Schedule an email for later:

"Send this to [email protected] tomorrow at 9am"

Scheduled emails fire automatically on the next session start after the scheduled time.


Read Receipts

Ask Mailbridge to track when a sent email is opened:

"Send this to [email protected] and let me know when he opens it"

This sets request_receipt: true, which adds standard read-receipt headers (RFC 8098 / MDN) to the message. Later:

"Did John open my email?"

runs check_email_opens, which scans your inbox for the recipient's confirmation and reports who opened it and when.

How it actually works — and its limits:

  • Mailbridge uses read-receipt headers, not tracking pixels. Nothing phones home to any server; the recipient's mail app asks them to confirm, and the confirmation comes back as a normal email that Mailbridge reads locally.
  • A receipt only arrives if the recipient's client supports read receipts and the recipient agrees to send one. Apple Mail and Thunderbird prompt for this; Gmail's web app ignores it.
  • No receipt does not mean the email was unread. An "awaiting" status simply means no confirmation has come back — it is not proof of anything.
  • This is intentionally the privacy-respecting approach: no invisible pixels, no third-party trackers, no data leaving your device.

Email Rules

Define local rules that apply automatically during inbox summaries:

"Flag all emails from [email protected] as urgent" "Categorise anything from [email protected] as Finance" "Set priority 5 on emails with 'invoice due' in the subject"

Rules are stored locally — they work without any server-side filtering.


Attachments

Mailbridge scans every attachment before downloading:

SafetyMeaning
✅ SafeKnown safe file type, extension matches MIME type
⚠️ WarningUnrecognised extension or MIME mismatch — will not auto-download
🚫 BlockedExecutable or script file — refused outright (.exe, .bat, .ps1, .sh, .jar, etc.)

Supported file types:

TypeWhat happens
PDFText extracted and displayed
DOCXText extracted and displayed
TXT, CSV, MDDisplayed as plain text
JPG, PNG, GIF, WebPDisplayed inline — the AI can see and describe the image
MP3, MP4, WAV, M4ASaved to temp path — pass to a transcription plugin

Supported Providers

ProviderIMAPSMTP
iCloudimap.mail.me.com:993smtp.mail.me.com:587
Custom IMAPYour mail serverYour mail server

Security

  • Passwords are stored exclusively in the OS credential store — never written to any file
  • The setup portal is a one-time browser form — it starts, collects your credentials, saves them to your OS keychain, then shuts down automatically
  • All IMAP and SMTP connections use SSL/TLS
  • Attachments are scanned before download — executables and scripts are always blocked
  • No data is sent to any Mailbridge server — everything runs locally on your device

License

MIT — see LICENSE


Legal

來源:README.md,提交 ff169fa

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.6.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分