MCP for Thunderbird

io.github.wadejbeckett由 GitHub 帳號 wadejbeckett 發布v0.3.1更新於 Nov 4, 2026

Work with the mail in Thunderbird from AI apps, within limits set in the Thunderbird add-on.

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

概覽

AI 產生的概覽

讓 AI 應用在本機依你在外掛中設定的權限,搜尋、閱讀、整理與起草 Thunderbird 郵件。

可以做什麼
  • 列出帳號與資料夾,依寄件者、收件者、主旨、內文、日期、資料夾或標籤搜尋郵件,讀取單封郵件,列出對話串,儲存附件,查詢聯絡人與標籤
  • 將郵件標為已讀或加上旗標,新增或移除標籤,移動、複製、封存或移至垃圾桶
  • 把新郵件、回覆或轉寄存到草稿匣,或開啟已填好的撰寫視窗供你檢查後寄出
  • 僅在開啟並列出允許的收件者後,直接寄送郵件
  • 為郵件篩選器提供步驟建議,由你在 Thunderbird 中手動建立
適用情境
適合想讓助理篩選、檢索與整理 Thunderbird 信箱,或先起草郵件再由你確認寄出,同時不想交出信箱密碼、也不希望郵件經過外部伺服器的情境。
執行需求
需在本機安裝:Thunderbird 外掛加同機上的主機程式,隨 Thunderbird 啟動與關閉。需 Thunderbird 140 ESR 或更新版本;目前僅正式支援 Linux,Windows 與 macOS 套件已建置但未經人工驗證。已測試 IMAP 帳號。Thunderbird 必須執行中,內文搜尋需要郵件已下載到本機。
安裝前請注意
起草、聯絡人與直接寄送預設關閉;寄送還需列出允許的收件者並通過 Thunderbird 本身的權限提示。整理工具只能移至垃圾桶,不能永久刪除。郵件內文會交給 AI 應用,再由其傳送給廠商。主機程式尚未程式碼簽章,Windows 與 macOS 安裝時會警告。README 請求以門羅幣捐款,屬自願。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

MCP for Thunderbird

MCP for Thunderbird lets AI apps on your computer work with the mail in Thunderbird, within limits you set in Thunderbird.

AI apps such as Claude Desktop, Claude Code, Codex and Cursor connect to outside tools through the Model Context Protocol (MCP), an open standard. MCP for Thunderbird gives them a set of mail tools: search your mail, read a message, tidy your inbox, write a draft for you to check. You choose which accounts they may use and what they may do, and you can pause them at any time from Thunderbird's toolbar.

MCP for Thunderbird works with Thunderbird. It is not made by, endorsed by or affiliated with Mozilla or MZLA Technologies, the makers of Thunderbird.

How it works

MCP for Thunderbird has two parts:

  • The add-on, installed in Thunderbird. It does the mail work through Thunderbird's standard add-on interfaces, and it holds your settings, the activity log and the pause switch.
  • The host, a small program installed on the same computer. Thunderbird starts it when Thunderbird starts, and it stops when Thunderbird closes. AI apps talk to the host, and the host passes their requests to the add-on.

Thunderbird already has your mailbox logins and a copy of your mail, so MCP for Thunderbird never asks for a mail password. Nothing goes through any outside server: the add-on, the host and the AI apps talk to each other only on your computer. The AI app itself then sends what it reads to its vendor, as it does with anything else you give it. PRIVACY.md sets out exactly what goes where.

What AI apps can do

The tools come in groups, and you switch each group on or off in the add-on's options. A tool in a group that is off is not offered to AI apps at all.

GroupToolsWhat they do
Readmail_accounts, mail_folders, mail_search, mail_read, mail_thread, mail_attachment, mail_filter_suggest, mail_tagsList accounts and folders; search mail by sender, recipient, subject, text, date, folder, tags, junk state, or mail to or from you; read one message; list the messages in a conversation; save an attachment to a folder you choose; describe a message filter for you to create; list your tags with their colours.
Organisemail_mark, mail_tag, mail_move, mail_archive, mail_trashMark as read or flagged; add or remove tags; move or copy to another folder; archive; move to Trash. Moving, archiving and moving to Trash give back each message's new id, so the AI app can go on working with it.
Draftmail_draft, mail_composeSave a new message, reply or forward to Drafts (Thunderbird 153 or later); open a filled-in compose window for you to check and send.
Contactsmail_contactsLook people up in your address books, and optionally find mailing lists with their members. Address books belong to the whole profile, so this searches every local address book, Collected Addresses included, whatever accounts you ticked.
Sendingmail_sendSend a message with no window, only to recipients you have listed (Thunderbird 153 or later). Off unless you turn it on.

AI apps write the body of a message as plain text, and the add-on turns it into an HTML message: a blank line starts a new paragraph, a paragraph of lines that start with - or * becomes a bulleted list, and a paragraph of lines that start with 1. , 2. and so on becomes a numbered list. An indented line continues the list item above it. A list needs a blank line between it and the text around it; otherwise its lines stay as typed.

An AI app can send the body as HTML instead, with html set to true, when it needs tables or formatting. The add-on keeps paragraphs, line breaks, bulleted and numbered lists, bold and italic, links to web and mail addresses, and tables, and gives each table a border and cell padding so it reads the same in Thunderbird and in the recipient's mail program. Everything else is removed: scripts, styles, images and any other markup. The identity's signature and, in a reply or forward, the quoted original still follow the text.

A reply or forward goes out from the identity the original was addressed to, as in Thunderbird: one of its own account's identities first, then one of any other enabled account; for mail you sent, from the identity that sent it. An AI app can name another identity, by its address, with from: for a reply or forward, an identity of any enabled account; for a new message or a direct send, one of the account's identities. A draft written from another account's identity is saved in that account's Drafts folder. With account, a reply or forward is written from that account, and saved in its Drafts folder, even when the original is in another account. A reply can go to a mailing list (kind reply_list) when the original names one in its List-Post header, and a forward can attach the whole original message (forward_as set to attachment) instead of quoting it. mail_compose returns the ids of the compose tab and window it opened.

What it cannot do

  • Delete mail for good. The organise tools can move mail to Trash, but no tool empties Trash or Junk, deletes a folder or changes account settings.
  • Edit Thunderbird's message filters. Thunderbird gives add-ons no way to change filters, so mail_filter_suggest writes out the steps for you to follow in Thunderbird's Message Filters window.
  • Calendar and tasks. Thunderbird has no stable add-on interface for them.
  • Work with AI apps in a web browser, such as ChatGPT or claude.ai in a browser tab. Those reach tools through a server on the internet, and MCP for Thunderbird only listens on your own computer.
  • Work when Thunderbird is closed. The host runs only while Thunderbird runs. An AI app that asks in the meantime is told "Thunderbird is not running".
  • Run on Thunderbird for Android.

Safety defaults

  • No accounts until you tick them. On first run a setup page asks which accounts AI apps may use. None is ticked to begin with.
  • "Read and organise" is the suggested level. Drafting and contacts are off until you turn them on.
  • No sending. With the default settings, nothing an AI app does can send mail or delete anything for good. Drafts and the compose window leave the decision to send with you. Direct sending stays off unless you turn it on in the options, list the addresses or domains it may send to, and allow it in Thunderbird's own permission prompt.
  • Search never returns message text. Search results are pointers: sender, subject, date, folder, flags. An AI app reads the text of a message only by asking for that one message.
  • Message text is marked as untrusted. Hidden text, scripts and invisible characters are removed as far as practical, and what remains is wrapped in a block that tells the AI app it is data from the sender, never instructions.
  • Local only, with an access key. The host listens only on 127.0.0.1 and answers only requests that carry its access key. The AI apps that setup connects read the key by themselves, so you never copy it by hand.
  • Excluded folders stay excluded. A folder you exclude in the options stays hidden from AI apps when it is renamed or moved in Thunderbird, and in an account with excluded folders a new folder, which may be one renamed in webmail, stays hidden until you check the excluded folders; SECURITY.md has the details.
  • You can see and stop it. The toolbar button shows whether MCP for Thunderbird is connected, paused or not connected, whether its host program is missing or could not be started, and when an excluded folder was not found or a new folder is hidden, and its menu has a Pause button that refuses every request until you resume. The activity log in the options lists the last 500 requests (time, app, tool and outcome), without message text or addresses.

SECURITY.md describes the threats and the protections in detail, including their limits.

Supported versions

  • Thunderbird 140 ESR or later. Versions before 140 are not supported.
  • Only Linux is supported for the moment. The Windows and macOS packages are built and tested in CI, but have not yet been checked by hand on a real PC or Mac; they are on the releases page for anyone who wants to try them, and support for them follows once that check is done.
  • On Thunderbird 140 ESR, mail_draft and mail_send are not offered: the interface that sends a message without opening a window came in Thunderbird 153, and drafts are offered from 153 too, the versions they are tested on. mail_compose still opens a filled-in compose window for you to check and send, and every other tool works as on later versions. AI apps do not see them in the tool list there, and a call to either by name fails as an unknown tool.
  • On Thunderbird 140 ESR, the text of a text attachment (mail_attachment on a text/plain or text/html attachment) is right only where its characters are in Latin-1: Thunderbird 140 hands add-ons the text it decoded itself with each character cut to one byte, so a character outside Latin-1, such as €, comes out as another character. Thunderbird 153 and later hand over the attachment's own bytes, which are decoded in the charset its headers name. Saving an attachment is not affected.
  • Tested on Linux with Thunderbird 140.17.0esr, 153.5.1esr and 159.0: every end-to-end test passed on each, run locally on 1 November 2026. The end-to-end tests added on 3 November 2026 (search arguments and threads, attachment types and headers, accounts and folders, excluded folders that follow renames, tags, contacts, archiving into a new year folder, reply identities, attachment placeholders in forwards, offline sending and the host start messages) passed on 153.6.0esr, and on 4 November 2026 the whole suite passed locally on 140.17.0esr and 159.0 as well. In CI, the e2e-linux workflow runs the full end-to-end suite on 140 ESR and on the current release. On Windows and macOS, CI installs the current release and runs the reading and organising end-to-end tests (TestE2ERead and TestE2EOrganise); the other end-to-end tests (among them folder search, search arguments and threads, drafts and sending, the injection defaults, connect mode and the toolbar) run on Linux only. docs/PLATFORMS.md lists what runs where.
  • Account types: tested with IMAP. MCP for Thunderbird uses only Thunderbird's general mail interfaces, so other account types Thunderbird supports, such as Gmail and Microsoft 365 over IMAP, should behave the same. Exchange accounts added with Thunderbird's built-in Exchange support have not been tested.
  • Linux: Thunderbird downloaded from thunderbird.net, and distribution packages that are not a Snap or Flatpak, work. The Snap (what apt install thunderbird gives you on current Ubuntu) has not been tested, and the Flatpak is not supported; see INSTALL.md.

Quick start

  1. Install the host for your system from the GitHub releases page; only Linux is supported for the moment (see Supported versions). On Linux, then run mcp-for-thunderbird setup as your own user. Windows and macOS warn that it comes from an unknown publisher; INSTALL.md shows how to continue.
  2. Install the add-on in Thunderbird from the same releases page: download mcp-for-thunderbird-<version>.xpi, open the ≡ menu, choose Add-ons and Themes, then the gear button, then Install Add-on From File…, and pick the file. (A listing on addons.thunderbird.net, which updates the add-on by itself, is to follow.)
  3. The add-on opens its setup page: tick the accounts AI apps may use, choose what they may do, and tick the AI apps to set up.
  4. Restart your AI app and ask it, for example, "What needs my attention in my inbox today?"

INSTALL.md has the full steps for each system, how to connect other AI apps, how to upgrade and how to uninstall.

Known limits

  • Text search needs mail stored on your computer. Searching the text of messages finds only messages whose full text Thunderbird has downloaded. For IMAP accounts, turn on "Keep messages for this account on this computer" in the account's Synchronization & Storage settings.
  • Text search is case-sensitive, because Thunderbird's search is. Results come newest first, and a long search stops after about 10 seconds and returns what it found, with a note on how to narrow it.
  • "Has attachments" can be unknown in search results when there was no time left to check it.
  • Attachments that are not in the message cannot be saved. A FileLink attachment, or one the message only links to, is listed with its link; one that was detached or deleted in Thunderbird is listed as such. The message holds only a placeholder for these, so the add-on refuses to save it.
  • Excluded folders are kept by their path. When you rename or move an excluded folder in Thunderbird, the add-on moves the exclusion with it. A folder renamed or moved while the add-on is turned off is not followed: the toolbar then says an excluded folder was not found, and in that account the folder under its new name stays hidden from AI apps until you check Excluded folders in the options.
  • One time budget per request. A request that changes many messages at once (marking, tagging, moving) reports which messages were done and which failed if Thunderbird is slow.
  • Reply and forward drafts are saved to Drafts with their threading kept. When you send one, Thunderbird files the sent copy according to the account's own settings; this has not been tested on every account type.
  • Drafts kept in another account. Thunderbird does not tell add-ons which folder an identity saves its drafts in, so mail_draft saves every draft in the Drafts folder of the account it is written from. For an account with no Drafts folder of its own, it uses the Drafts folder of Local Folders, on your computer, when Local Folders is enabled, and refuses otherwise; it never saves a draft in another server account, which would copy the mail it quotes onto that server.
  • Attachments stored outside a message, such as a FileLink or a detached file, are only a placeholder in the message. A forward draft that would carry one is refused; forward the whole message as an attachment instead, or open the forward with mail_compose.
  • Direct sending needs Thunderbird online. While Thunderbird is set to Work Offline, mail_send sends nothing and says so; it does not queue the message to send later.
  • Direct sending accepts only simple addresses: letters, digits and . _ + - before the @, and a plain domain. Write a draft for any other address. SECURITY.md explains why.
  • The host is not code-signed yet, so Windows and macOS warn when you install it. Thunderbird does not require add-ons to be signed, so the add-on installs from the file without a warning; a listing on addons.thunderbird.net, to follow, will update it by itself.

Links

MCP for Thunderbird is listed in the official MCP Registry, which MCP directories and apps read, as io.github.wadejbeckett/mcp-for-thunderbird; each published release updates the entry.

Support this project

MCP for Thunderbird is free software from Noiz. If it is useful to you, the main way to support its development is a donation in Monero (XMR):

text
44BtMn9izxH8mK2yFbSdY6Di7TNobkLbnHdZ6gZQjukCME5vsNhtPRtH4TcVkDHKHLhSpAJbsjv8gCdYuSZVMpXgMkUC1hV

You can also help by reporting bugs, sending fixes or starring the repository.

Licence and credits

MCP for Thunderbird is published by Wade J. Beckett (wadejbeckett on GitHub) under the GNU General Public License, version 3 or (at your option) any later version (LICENSE).

Parts of the add-on and the threat model in SECURITY.md are adapted from thunderbird-cli by Vitalii Ionov, used under the MIT License. NOTICE lists the files and keeps that licence. The host links Go libraries under the Apache-2.0, MIT and BSD licences; THIRD_PARTY_LICENSES carries their notices and ships inside every host package.

Thunderbird is a trademark of the Mozilla Foundation. Claude, Codex and Cursor are the names of products of Anthropic, OpenAI and Anysphere; they appear here only to say which apps MCP for Thunderbird works with, and none of those companies makes, endorses or is affiliated with it.

來源:README.md,提交 9e4f93d

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

5
  1. v0.3.1最新Nov 4, 2026
  2. v0.2.4Nov 3, 2026
  3. v0.2.3Nov 3, 2026
  4. v0.2.2Nov 3, 2026
  5. v0.1.0Nov 1, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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