Thunderbird MCP
Thunderbird MCP lets an AI agent drive the Thunderbird instance already running on your machine — mail, folders, search, composition, and diagnostics — through MCP tools.
Find and read mail with ranked global search, filtered searches, thread reconstruction, raw RFC 5322 source, and attachment listing.
Triage and file messages by marking read/flagged/junk, managing tags, moving/copying/archiving/deleting, and managing folders including Trash and Junk.
Compose and send mail by saving drafts/templates, replying, forwarding, opening compose windows, sending/queueing, and checking the Outbox.
Manage saved searches and tag definitions.
Diagnose and monitor Thunderbird with connection status, event polling, diagnostics, error-console access, add-on listing, and restart/wait tools.
With optional toolsets, also work with batch mail operations, attachment plans, follow-ups, contacts/address books, calendars/tasks, filters, accounts/identities/SMTP, preferences, junk training, and OpenPGP keys.
Safety controls include read-only mode, dry-run previews, confirmation requirements, and destructive-operation hints.
Provides tools to control the Thunderbird email client, including mail search, folder management, compose, settings, calendar, and message filters.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Thunderbird MCP draft an email to Sarah about the quarterly report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Thunderbird MCP
An MCP server that lets an AI agent drive the Thunderbird already running on your machine — mail, folders, contacts, calendar, filters and settings — through Thunderbird's own internals. Not a copy of your mailbox and not an IMAP client: the same Thunderbird you have open.
Built for Claude Code and Codex CLI, and able to serve both at once.
What is new in 1.4.0
Continue a saved draft. Read its current revision, edit the actual draft and send the reviewed version. User-owned compose windows remain untouched.
Preview, apply and undo a batch. Freeze a selection before changing flags, tags or moving mail within an account. Later user edits become conflicts.
Know what a search covered. Stable conversation/search pages carry coverage and truncation information; an unavailable index does not silently change the query.
Find possible follow-ups. Inspect outgoing conversations with no observed human reply, with header evidence and explicit limits.
Save selected attachments together. Preview filenames and sizes, then export without overwriting existing files.
Inspect uncertain work. Seven-day local operation history and runtime receipts replace blind retries after a lost reply. Event pages no longer skip buffered notifications.
Thunderbird 128 remains the minimum. Reading a saved draft works on 128.0; editing or sending it requires 128.4.3 or newer on the 128 ESR branch, or 133.0b3 or newer on the main release line.
See the workflow guide, validation results and changelog.
Related MCP server: Thunderbird MCP
Quick start
git clone https://github.com/U-C4N/Thunderbird-MCP
cd Thunderbird-MCP
python bootstrap.py --clients claude-code,codexOne command builds the environment, installs the add-on (Thunderbird restarts
once), registers the clients you name and verifies the chain. Re-running it is safe.
Agents can parse python bootstrap.py --json instead of the human output.
Then ask your agent something — "what did the accountant say about VAT in June?", "archive everything from newsletters older than a month", "draft a reply to the last mail from Ali and let me read it first".
Prefer to register a client by hand? tbmcp setup --print-config all prints the
exact block for Claude Code, Codex, Claude Desktop, Cursor, VS Code, Gemini CLI and
Zed. Use python -m tbmcp serve as the command, with an absolute interpreter path.
What you can do
Find | ranked full-text search across every account, threads rebuilt across Inbox, Sent and archives, substring filters by folder, sender, date, tag |
Triage | preview and undo marks/tags and same-account moves; archive/copy/delete remain separate tools |
Write | create a draft, continue editing the saved version, then send with a revision check and confirmation |
Follow up | find possible unanswered outgoing conversations with evidence and coverage limits |
Collect files | freeze attachment selections and export with non-overwriting writes and per-file outcomes |
Configure | server ports and security, identities and signatures, SMTP servers, junk handling, ~5,700 preferences — every write reports the old value so it can be undone |
Automate | create, reorder and run message filters; events and tasks on the calendar |
Diagnose |
|
Safety
Reads are unrestricted. Anything that sends, deletes or changes configuration needs
confirm=true, carries destructiveHint, and prompts for approval on clients that
support elicitation. mail_send drafts unless told mode="send"; dry_run_only
previews a write; preference writes are allowlisted and credentials, proxy and
security prefs are refused at both layers. --read-only registers no mutating tool
at all.
Toolsets
Tools are grouped so an agent only pays context for what it uses. The default set is
mail, folders, compose, search and admin; add the rest with --toolsets.
tbmcp serve --toolsets all # everything
tbmcp serve --toolsets +calendar # the default set plus one
tbmcp tools --toolsets all # list what would be registered124 tools across 10 toolsets; 54 of them read-only. Full signatures in docs/TOOL-REFERENCE.md.
Tool | What it does | |
| read | Search the user's mail. Combine |
| read | List messages in one folder, newest first by default |
| read | Read one message. |
| read | Read up to 50 messages in one round trip — for triaging a search result |
| read | Fetch a message's raw RFC 5322 source, for header forensics |
| read | List a message's attachments with part names, sizes and content types |
| write | Write one attachment to a directory on this machine |
| write | Set read/flagged/junk state or adjust tags on one or more messages |
| write | Move messages into another folder |
| write | Copy messages into another folder, leaving the originals in place |
| write | Archive messages using each account's configured archive layout |
| destructive | Delete messages. Moves to Trash unless |
| read | List the tags defined in Thunderbird, with keys, labels and colours |
| write | Create a tag, or recolour/rename an existing one |
| destructive | Remove a tag definition. Messages keep the raw keyword but lose the label |
| read | Preview changes to up to 500 messages without changing mail |
| write | Apply a preview once and return its operation id for tb_operation_status |
| write | Undo confirmed batch changes whose touched fields have not changed again |
| read | Find possible follow-ups using outgoing mail and indexed reply headers |
| read | Preview attachment downloads from up to 100 selected messages |
| write | Save a frozen attachment plan once, without overwriting existing files |
Tool | What it does | |
| read | List mail folders with their ids and message counts |
| read | Get one folder: counts, special use, flags and IMAP quota |
| read | Report what may be done to a folder before attempting it |
| read | Get the unified folder that spans every account, e.g. all inboxes at once |
| write | Create a folder inside another folder, or at the top of an account |
| write | Rename a folder, keeping its messages and subfolders |
| write | Move a folder under a different parent, with its subfolders |
| write | Copy a folder and its contents under another parent, leaving the original |
| destructive | Delete a folder, its subfolders and every message in them |
| write | Mark every message in a folder as read |
| write | Add or remove a folder from the user's favourites |
| destructive | Permanently delete everything in one account's Trash |
| destructive | Permanently delete everything in one account's Junk folder |
| write | Fetch an IMAP folder's message bodies so they are available offline |
| write | Reclaim the disk space left behind by deleted messages |
Tool | What it does | |
| destructive | Write a message. Saves a reviewable draft unless |
| destructive | Reply to a message. Saves a reviewable draft unless |
| destructive | Forward a message. Saves a reviewable draft unless |
| write | Save a message without sending it, as a draft or a template |
| read | Read a saved draft and its revision without opening a composer |
| write | Update the saved draft only if its reviewed revision is still current |
| destructive | Send exactly the saved draft revision the user reviewed, or queue it |
| write | Open a populated compose window for the user to finish by hand |
| read | List messages sitting in the Outbox, unsent |
Tool | What it does | |
| read | Ranked search of indexed mail, with stable snapshot pagination |
| read | Read a conversation oldest first, across indexed folders and accounts |
| read | Whether Thunderbird's global index is enabled, and how far along it is |
| read | List the saved searches (virtual folders) and what each one matches |
| write | Create a saved search that appears in the folder pane |
| write | Redefine an existing saved search, by name or uri |
| destructive | Remove a saved search. The messages it listed are not touched |
Tool | What it does | |
| read | Look someone up in the address book |
| read | List contacts, across every address book unless one is named |
| read | Read one contact in full, including its raw vCard |
| write | Add a contact to an address book |
| write | Change fields on an existing contact |
| destructive | Delete a contact. There is no Trash for contacts, so this cannot be undone |
| read | List the address books, with how many contacts and lists each holds |
| write | Create an empty local address book |
| destructive | Delete an address book together with all its contacts and mailing lists |
| read | List address book mailing lists, with member counts |
| write | Create an empty mailing list in an address book |
| write | Add an existing contact to a mailing list |
| write | Take a contact off a mailing list. The contact itself is left alone |
Tool | What it does | |
| read | List the user's calendars, with ids, types and whether each is writable |
| write | Create a calendar and register it with Thunderbird |
| write | Rename or recolour a calendar, or toggle read-only and disabled |
| destructive | Remove a calendar. Deletes its events and tasks with it |
| read | List events in a time window, soonest first |
| read | Read one event or task in full, including attendees and recurrence |
| write | Create an event. Omit |
| write | Change an event. Only the fields you pass are touched |
| destructive | Delete an event or a task. Calendars have no trash, so this is final |
| read | List tasks, soonest due first. Completed ones are hidden by default |
| write | Create a task. Everything but the title is optional |
| write | Change a task, or tick it off with |
Tool | What it does | |
| read | List filters in execution order, with their conditions and actions |
| read | Read one filter in full, by account and index |
| write | Create a filter. It is appended, so existing rules keep their order |
| write | Change a filter in place. Only what you pass is touched |
| write | Turn one filter on or off without changing its definition |
| write | Move a filter to a different position in the execution order |
| destructive | Delete a filter. Thunderbird keeps no history, so the rule is gone |
| write | Apply filters to folders on demand, as "Run Filters on Folder" does |
Tool | What it does | |
| read | List the mail accounts and how each one is configured |
| read | Read one account's incoming server settings |
| write | Change one incoming server setting. Getting the connection wrong stops mail |
| read | Read one account's junk-mail handling: level, whitelist, move and purge rules |
| write | Change one junk-mail setting for an account |
| read | Read where an identity files sent mail, drafts, templates and archives |
| write | Change where an identity files sent mail, drafts, templates or archives |
| read | Read an account's offline and synchronisation settings |
| write | Change one offline or synchronisation setting for an account |
| read | List the sending identities, across every account or just one |
| read | Read one identity in full: addresses, signature, outgoing server, filing folders |
| write | Change an identity's addresses and composition defaults |
| write | Replace an identity's signature text, or point it at a file |
| read | List the SMTP servers, and which one is the default |
| write | Add an SMTP server. Nothing sends through it until an identity points at it |
| write | Change an existing SMTP server. Only the fields you pass are touched |
| destructive | Remove an SMTP server. Identities using it will be left unable to send |
| write | Make one SMTP server the default for identities that have none of their own |
Tool | What it does | |
| read | Read one Thunderbird preference |
| read | Read up to 100 preferences in one round trip |
| read | List preferences under a branch, e.g. |
| read | Everything the user has changed from the shipped defaults |
| read | Map a human request onto the preference that controls it |
| write | Change one Thunderbird preference |
| write | Clear a user-set preference so the shipped default applies again |
| read | Read the global junk (bayesian) filter settings |
| write | Change the global junk filter settings. Only the fields you pass are touched |
| write | Teach the junk filter that these messages are junk, or are not |
| read | List the OpenPGP keys in Thunderbird's keyring |
Tool | What it does | |
| read | Inspect a queued, completed or uncertain operation without repeating it |
| read | List this profile's local, body-free operation history for the last seven days |
| write | Stop steps not yet started. A send already dispatched cannot be recalled |
| read | Whether Thunderbird is attached, and which halves of the add-on loaded |
| read | Block until Thunderbird attaches to the bridge, then report status |
| read | Read buffered Thunderbird notifications: new mail, folder and account changes |
| read | One report: versions, profile, which capabilities loaded, accounts, indexing |
| read | Recent lines from Thunderbird's error console, newest last |
| read | List installed add-ons with their enabled and signature state |
| destructive | Restart Thunderbird. Every call in flight fails, including other clients' |
How it works
Claude Code ──stdio──▶ tbmcp serve ─┐
├─local RPC─▶ tbmcp daemon ◀══WebSocket══ add-on
Codex CLI ──stdio──▶ tbmcp serve ─┘ owns the socket, inside
multiplexes clients ThunderbirdThunderbird has no external API, so an add-on runs inside it: the official
MailExtension API for mail and folders, plus a WebExtension Experiment for what that
API cannot reach (preferences, accounts, filters, calendar). Python listens on
loopback and the add-on dials out with a token from <profile>/tbmcp-bridge.json, so
nothing is bound inside Thunderbird and nothing leaves the machine. A small daemon
owns the one connection and shares it between clients.
More in docs/ARCHITECTURE.md and docs/PROTOCOL.md.
When something is wrong
Run tbmcp doctor. It checks every link — Python, the profile, the add-on that is
installed versus the one in this package, the daemon, the handshake from both sides —
and names the broken one with the command that fixes it.
Symptom | What to do |
"Thunderbird is not connected" | start Thunderbird; if it is running, |
the add-on connects but never completes the handshake | restart Thunderbird; |
|
|
settings tools fail, mail tools work | the privileged half did not load → |
full-text search finds nothing | the global indexer is off (Settings → General), or |
a dependency fails to load on Windows | Windows Application Control blocked a wheel; |
TBMCP_DEBUG=1 logs verbosely to stderr; TBMCP_STATE_DIR moves the daemon's
files; tb_console returns the add-on's [tbmcp] lines as a tool.
Requirements
Thunderbird 128 or newer (verified on 155), Python 3.11–3.14, Windows, macOS or Linux including Snap and Flatpak Thunderbird.
Development
uv venv && uv pip install -e ".[dev]"
pytest # no Thunderbird needed
node --test "tests/js/*.test.mjs" # real add-on scripts under node:vm
ruff check . && ruff format --check .
python tools/check_consistency.py # the three layers still agree
python tools/smoke_search.py # live acceptance, against a running ThunderbirdThe add-on's real scripts run under node:vm against fakes of the WebExtension and
XPCOM surfaces (tests/js), which is how the sandbox rules that broke 1.2.0's search
are caught before a release. Live workflow tests additionally use a separate profile
and local-only mail services; see the release gate in the workflow guide. Historical
measurements are in
docs/VERIFIED-FINDINGS.md.
Author
GitHub @U-C4N · X @UEdizaslan
Related: Autocad-MCP · U-Pool · Deuz-SDK
Issues and pull requests are welcome. Report a security problem through GitHub rather than a public issue.
Licence
MIT — see LICENSE. The add-on contains no Mozilla-licensed code.
Available Tools
62 toolsfolder_capabilitiesGet folder capabilitiesARead-onlyIdempotent
Report what may be done to a folder before attempting it.
Answers whether the folder can hold messages, take subfolders, be renamed, be deleted, or have messages deleted from it. Worth a call before offering the user a plan that a server would refuse.
Inputs: folder_id (required). Returns: object
folder_compactCompact foldersA
Reclaim the disk space left behind by deleted messages.
Deleted mail stays in the message store until the folder is compacted. Pass
folder_id for one folder or account_id for all of an account's. Nothing
readable is lost, but the store is rewritten, so do not interrupt it.
Inputs: confirm, folder_id, account_id. Returns: object
folder_copyCopy a folderA
Copy a folder and its contents under another parent, leaving the original.
Inputs: folder_id (required), destination_id (required), confirm. Returns: object
folder_createCreate a folderC
Create a folder inside another folder, or at the top of an account.
Inputs: name (required), confirm, parent_id, account_id. Returns: object
folder_deleteDelete a folderADestructive
Delete a folder, its subfolders and every message in them.
Thunderbird moves the folder to Trash unless it is already inside Trash, in
which case it goes for good. Check folder_get first if the count matters —
the reply reports what was removed, but cannot put it back.
Inputs: folder_id (required), confirm, dry_run_only. Returns: object
folder_empty_junkEmpty JunkADestructive
Permanently delete everything in one account's Junk folder.
Subfolders of Junk are emptied but kept, since they are usually filter targets the user set up deliberately. Not recoverable.
Inputs: confirm, folder_id, account_id, dry_run_only. Returns: object
folder_empty_trashEmpty TrashADestructive
Permanently delete everything in one account's Trash.
This is not recoverable from Thunderbird. Give account_id and the account's
configured Trash is used; give folder_id to empty a specific one. Subfolders
of Trash are removed too unless remove_subfolders=false.
Inputs: confirm, folder_id, account_id, dry_run_only, +1 more. Returns: object
folder_getGet a folderARead-onlyIdempotent
Get one folder: counts, special use, flags and IMAP quota.
Use this to re-check a count after a move or a delete; folder_list is the
cheaper way to find the id in the first place.
Inputs: folder_id (required), include_subfolders. Returns: object
folder_get_unifiedGet a unified folderARead-onlyIdempotent
Get the unified folder that spans every account, e.g. all inboxes at once.
Its id works anywhere a folder id is accepted, so mail_list on the unified
inbox lists new mail across all accounts in one call.
Inputs: folder_type (required), include_subfolders. Returns: object
folder_listList foldersARead-onlyIdempotent
List mail folders with their ids and message counts.
With no filters this browses: every account's root folder plus one level
below it. Raise depth to walk further, or give a filter — name is a
case-insensitive substring — and the whole tree is searched instead. Pass
tree=true to get folders nested under children rather than flat.
Counts come from Thunderbird's own folder database. On IMAP that database can lag until the folder has been selected once in Thunderbird, so treat unread and total counts as close rather than exact.
Inputs: name, tree, depth, limit, +10 more. Returns: object
folder_mark_readMark a folder readAIdempotent
Mark every message in a folder as read.
There is no per-message undo for this, which is why it asks first. On IMAP the flags are pushed to the server.
Inputs: folder_id (required), confirm, include_subfolders. Returns: object
folder_moveMove a folderA
Move a folder under a different parent, with its subfolders.
destination_id is the new parent folder — use an account's root folder to
move it to the top level. Across accounts this copies then deletes, which on
IMAP can take a while.
Inputs: folder_id (required), destination_id (required), confirm, dry_run_only. Returns: object
folder_renameRename a folderB
Rename a folder, keeping its messages and subfolders.
Inputs: new_name (required), folder_id (required), confirm. Returns: object
folder_set_favoriteFavourite a folderAIdempotent
Add or remove a folder from the user's favourites.
Cosmetic and reversible — it only affects the folder pane's Favourites view, so it is not gated. Prompting for something this harmless would only train the user to click through the prompts that do matter.
Inputs: folder_id (required), favorite. Returns: object
folder_sync_offlineDownload a folder for offline useA
Fetch an IMAP folder's message bodies so they are available offline.
This is what mail_get_source needs before it can return raw source for an
IMAP message. A large folder means a long download and real network traffic.
Inputs: folder_id (required), confirm, include_subfolders. Returns: object
mail_archiveArchive messagesA
Archive messages using each account's configured archive layout.
Inputs: message_ids (required), confirm. Returns: object
mail_attachmentsList attachmentsBRead-onlyIdempotent
List a message's attachments with part names, sizes and content types.
Inputs: message_id (required). Returns: object
mail_attachments_planPreview attachment downloadsARead-onlyIdempotent
Preview attachment downloads from up to 100 selected messages.
The existing absolute directory, source attachments and safe collision-free names are frozen for 15 minutes. Filters use filename substrings and exact MIME types, not PDF contents. Limits are 200 attachments, 25 MiB per file and 250 MiB total. Invalid selections must be corrected before saving.
Inputs: directory (required), message_ids (required), content_types, filename_contains. Returns: object
mail_attachments_saveSave reviewed attachmentsBIdempotent
Save a frozen attachment plan once, without overwriting existing files.
Returns an operation id for tb_operation_status. Repeating the same plan returns the existing job. Results identify each source, path and checksum; successfully written files are not automatically deleted on cancellation.
Inputs: plan_id (required), confirm. Returns: object
mail_batch_applyApply a reviewed batchAIdempotent
Apply a preview once and return its operation id for tb_operation_status.
Repeating the same plan returns the existing operation, never a second job. Conflicts are reported per message. An uncertain outcome stops further work.
Inputs: plan_id (required), confirm. Returns: object
mail_batch_previewPreview a reversible batchARead-onlyIdempotent
Preview changes to up to 500 messages without changing mail.
A plan fixes the exact messages and expires after 15 minutes. Mark changes
read/flagged state and tags; move supports concrete folders in one account.
Any invalid message prevents applying the plan. History and undo metadata
stay local for seven days; message bodies are never stored in the journal.
changes accepts read, flagged, add_tags and remove_tags. The separate
fields are aliases; do not combine them with a changes object.
Inputs: action (required), message_ids (required), read, changes, +4 more. Returns: object
mail_batch_undoUndo a completed batchAIdempotent
Undo confirmed batch changes whose touched fields have not changed again.
Messages changed by someone else are reported as conflicts. Unknown results are never guessed. Repeating the call returns the existing undo operation.
Inputs: operation_id (required), confirm. Returns: object
mail_compose_openOpen a compose windowA
Open a populated compose window for the user to finish by hand.
The right answer whenever the wording matters more than the automation, or when the user declined a send: they get the draft in front of them with the cursor in it. Nothing is sent or saved, and the user sees the window appear, so this is not gated.
Inputs: cc, to, bcc, body, +8 more. Returns: object
mail_copyCopy messagesC
Copy messages into another folder, leaving the originals in place.
Inputs: message_ids (required), destination_folder_id (required), confirm. Returns: object
mail_deleteDelete messagesADestructive
Delete messages. Moves to Trash unless permanent=true.
A permanent delete cannot be undone from Thunderbird, so prefer the default and let the user empty Trash themselves.
Inputs: message_ids (required), confirm, permanent, dry_run_only. Returns: object
mail_draft_getRead a saved draftARead-onlyIdempotent
Read a saved draft and its revision without opening a composer.
Pass exactly one reference. Protected or oversized drafts return metadata with editable=false; a preview must never be used as a replacement body. Unsaved changes in an open Thunderbird window are not this saved snapshot.
Inputs: draft_ref, message_id. Returns: object
mail_draft_saveSave a draft or templateA
Save a message without sending it, as a draft or a template.
Nothing leaves the machine, so this is not gated — a draft is exactly the thing to produce when you want the user to review before anything is sent. A template is the reusable kind: Thunderbird keeps it in Templates and opens a copy when the user picks it. Recipients are optional here, unlike a send.
Inputs: cc, to, bcc, body, +5 more. Returns: object
mail_draft_sendSend the reviewed saved draftADestructive
Send exactly the saved draft revision the user reviewed, or queue it.
A changed or open draft is refused. Reuse request_key after interruption; unknown means sending may have occurred and must not be retried with a new key. mode=later queues in Outbox, not at a scheduled date.
Inputs: draft_ref (required), request_key (required), expected_revision (required), mode, +1 more. Returns: object
mail_draft_updateUpdate a saved draftA
Update the saved draft only if its reviewed revision is still current.
Omitted fields stay unchanged; an empty recipient list clears that field.
Body replaces the complete body, including any signature, in its existing
format. Sender identity cannot change. If the user's composer is open,
return DRAFT_BUSY and leave the window for the user to save or close.
Reuse request_key to retrieve an operation without applying it twice.
changes accepts subject, body, to, cc, bcc, add_attachments and
remove_attachment_refs. Separate fields are aliases; use one form only.
Inputs: draft_ref (required), request_key (required), expected_revision (required), cc, +7 more. Returns: object
mail_followupsFind conversations awaiting a replyARead-onlyIdempotent
Find possible follow-ups using outgoing mail and indexed reply headers.
A candidate is not proof that a reply is required. By default inspect the last 30 days for conversations waiting at least seven days. Human replies close a conversation; automatic replies, mailing lists and self-only mail are excluded. Results name their evidence and incomplete coverage. No message is sent and no reminder is created. Continue with only cursor and limit; snapshots expire after five minutes.
Inputs: limit, cursor, account_id, waiting_days, +1 more. Returns: object
mail_forwardForward a messageBDestructive
Forward a message. Saves a reviewable draft unless mode="send".
inline quotes the original in the body; attachment attaches it as a
.eml, which preserves the headers a recipient may need. body is your
covering note and goes above the forwarded text.
Inputs: to (required), message_id (required), cc, bcc, +9 more. Returns: object
mail_getRead a messageARead-onlyIdempotent
Read one message. text gives headers plus the plain-text body.
summary skips the body entirely; full adds the MIME part tree and every
header. Encrypted mail is decrypted when Thunderbird can.
Inputs: message_id (required), detail, decrypt. Returns: object
mail_get_manyRead several messages at onceARead-onlyIdempotent
Read up to 50 messages in one round trip — for triaging a search result.
Inputs: message_ids (required), detail. Returns: object
mail_get_sourceGet raw message sourceARead-onlyIdempotent
Fetch a message's raw RFC 5322 source, for header forensics.
On IMAP this needs the message to be available offline; the tool says so rather than returning a partial.
Inputs: message_id (required), decrypt. Returns: object
mail_listList a folderARead-onlyIdempotent
List messages in one folder, newest first by default.
Use folder_list to discover folder ids. For anything selective, prefer
mail_search.
Inputs: folder_id (required), limit, cursor, sort_by, +1 more. Returns: object
mail_markMark messagesAIdempotent
Set read/flagged/junk state or adjust tags on one or more messages.
Cheap and reversible, so no confirmation is required. Tag keys come from
mail_tags.
Inputs: message_ids (required), junk, read, flagged, +2 more. Returns: object
mail_moveMove messagesB
Move messages into another folder.
On IMAP the move is asynchronous — the tool waits for Thunderbird to confirm before returning, so a following search reflects the change.
Inputs: message_ids (required), destination_folder_id (required), confirm, dry_run_only. Returns: object
mail_replyReply to a messageADestructive
Reply to a message. Saves a reviewable draft unless mode="send".
Thunderbird derives the recipients, the subject and the quoted original;
body goes above the quote. reply_all copies everyone, reply_to_list
answers the mailing list. Passing cc replaces the addresses Thunderbird
derived, so leave it unset unless that is the intent.
Inputs: body (required), message_id (required), cc, bcc, +10 more. Returns: object
mail_save_attachmentSave an attachmentA
Write one attachment to a directory on this machine.
part_name comes from mail_attachments. Refuses to clobber an existing
file unless overwrite=true.
Inputs: directory (required), part_name (required), message_id (required), filename, +1 more. Returns: object
mail_searchSearch mailARead-onlyIdempotent
Search the user's mail. Combine full_text with any filters below.
full_text uses Thunderbird's global index and searches headers and bodies
of already-indexed messages; subject/author/body are substring matches
evaluated per folder. Dates are ISO-8601. Results are summaries — call
mail_get for a body. Continue with cursor=nextCursor. A first page
carries requestedScope and coverage. Requested folders are not proof that
every message body is available or indexed.
Inputs: body, junk, tags, limit, +18 more. Returns: object
mail_sendSend or draft a messageADestructive
Write a message. Saves a reviewable draft unless mode="send".
mode="later" queues it in the Outbox instead. Recipients are one address per
list entry. attachments are paths to files on this machine. A draft still
asks for confirmation, because the identical call with mode="send" would
deliver it. Set reply_to_message_id to thread the message under an existing
one — but mail_reply is usually what you want, since it also quotes.
Inputs: to (required), body (required), subject (required), cc, +13 more. Returns: object
mail_send_statusCheck what is waiting to be sentARead-onlyIdempotent
List messages sitting in the Outbox, unsent.
An empty list is the normal answer. Anything here was queued with
mode="later", or written while Thunderbird was offline, and will go out on
the next 'Send Unsent Messages'.
Inputs: limit. Returns: object
mail_tag_deleteDelete a tagBDestructive
Remove a tag definition. Messages keep the raw keyword but lose the label.
Inputs: key (required), confirm. Returns: object
mail_tagsList message tagsARead-onlyIdempotent
List the tags defined in Thunderbird, with keys, labels and colours.
Inputs: no named parameters. Returns: object
mail_tag_upsertCreate or update a tagAIdempotent
Create a tag, or recolour/rename an existing one.
color is #RRGGBB. Omit key to create a new tag; pass an existing key to
update it.
Inputs: label (required), key, color, confirm. Returns: object
search_conversationRead a whole conversationARead-onlyIdempotent
Read a conversation oldest first, across indexed folders and accounts.
Start with one message identifier. Continue with only cursor=nextCursor and limit. A snapshot holds at most 1,000 messages and expires after five minutes; a truncated conversation is explicitly reported.
Inputs: limit, cursor, message_id, header_message_id. Returns: object
search_globalSearch everythingARead-onlyIdempotent
Ranked search of indexed mail, with stable snapshot pagination.
Start with query, optionally scoped to a folder. Continue with only
cursor=nextCursor and limit; a snapshot expires after five minutes or
a Thunderbird restart. offset remains for older callers. Coverage is
indexed mail only, never a claim that the whole mailbox was searched.
partialReasons explains retrieval limits or unavailable index terms.
alternativeSearch suggests a literal subject search without running it
or silently changing the original query's meaning.
Older add-ons retain live offset pages with snapshotSupported=false.
Inputs: limit, query, cursor, offset, +1 more. Returns: object
search_index_statusGlobal index statusARead-onlyIdempotent
Whether Thunderbird's global index is enabled, and how far along it is.
Call this to explain an empty search_global result. When indexing is off,
mail_search with subject/author/body filters still works.
Inputs: no named parameters. Returns: object
search_saved_createCreate a saved searchA
Create a saved search that appears in the folder pane.
search_folder_ids are folders to look in (from folder_list). Each term is
{"attribute": "subject", "operator": "contains", "value": "invoice"};
attributes and operators are listed in the error message if you get one
wrong. match_all=false makes the terms OR together. online_search asks
the IMAP server to run the search instead of using the local database.
Nothing is copied or moved — a saved search is a stored query.
Inputs: name (required), terms (required), search_folder_ids (required), confirm, +4 more. Returns: object
search_saved_deleteDelete a saved searchADestructive
Remove a saved search. The messages it listed are not touched.
A saved search only stores a query, so deleting one loses the query and nothing else — but the query itself is not recoverable, hence the prompt.
Inputs: saved_search (required), confirm. Returns: object
search_saved_listList saved searchesARead-onlyIdempotent
List the saved searches (virtual folders) and what each one matches.
Inputs: no named parameters. Returns: object
search_saved_updateChange a saved searchAIdempotent
Redefine an existing saved search, by name or uri.
Only what you pass is replaced; terms replaces the whole condition list
rather than merging, because a partial merge has no sensible meaning for a
boolean query.
Inputs: saved_search (required), terms, confirm, dry_run_only, +2 more. Returns: object
tb_addonsInstalled add-onsARead-onlyIdempotent
List installed add-ons with their enabled and signature state.
isBridge marks this server's own add-on. A signedState of 0 is expected
for it: the bridge is installed unsigned, which this Thunderbird permits.
Inputs: kind. Returns: object
tb_consoleThunderbird error consoleARead-onlyIdempotent
Recent lines from Thunderbird's error console, newest last.
Narrow it with contains — tbmcp shows this bridge's own complaints, and an
add-on id or a source filename shows someone else's. Anything shaped like a
password or token is redacted inside Thunderbird before it is sent.
Lines the bridge writes with console.* (source: "console") are included
alongside the error console's own entries, merged by time.
Inputs: limit, contains. Returns: object
tb_diagnosticsThunderbird diagnosticsARead-onlyIdempotent
One report: versions, profile, which capabilities loaded, accounts, indexing.
The first thing to fetch when anything behaves oddly. It includes whether this build permits unsigned add-ons and experiment APIs, which is what explains a half-installed bridge, and the message store type per account.
Inputs: no named parameters. Returns: object
tb_eventsRecent Thunderbird eventsARead-onlyIdempotent
Read buffered Thunderbird notifications: new mail, folder and account changes.
Continue with cursor=nextCursor. gap and resyncRequired explain lost
history; an old-session cursor is rejected. Legacy since=latestSeq is
supported but cannot identify a previous daemon session.
Inputs: limit, since, cursor. Returns: object
tb_operation_cancelStop remaining operation stepsA
Stop steps not yet started. A send already dispatched cannot be recalled.
Inputs: operation_id (required). Returns: object
tb_operation_listRecent operation historyBRead-onlyIdempotent
List this profile's local, body-free operation history for the last seven days.
Inputs: limit, cursor. Returns: object
tb_operation_statusInspect an operationBRead-onlyIdempotent
Inspect a queued, completed or uncertain operation without repeating it.
Inputs: operation_id (required), limit, cursor. Returns: object
tb_restartRestart ThunderbirdADestructive
Restart Thunderbird. Every call in flight fails, including other clients'.
The bridge connection drops, so this returns before the restart happens and
the result says nothing about whether it succeeded — wait with tb_wait
afterwards. Unsent compose windows and unsaved drafts are lost, so ask the
user before you do it; a stuck sync usually does not need it.
Inputs: confirm. Returns: object
tb_statusThunderbird connection statusARead-onlyIdempotent
Whether Thunderbird is attached, and which halves of the add-on loaded.
Answered by the local daemon, so it works when Thunderbird is closed. Call it first whenever another tool reports that it cannot reach Thunderbird.
Inputs: no named parameters. Returns: object
tb_waitWait for ThunderbirdARead-onlyIdempotent
Block until Thunderbird attaches to the bridge, then report status.
Use it after tb_restart, or after asking the user to start Thunderbird.
Fails with a message naming what is missing if nothing attaches in time.
Inputs: timeout_seconds. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 62 tools
Most tools target distinct resources and actions, and descriptions carefully distinguish overlapping clusters such as mail_search/search_global and mail_send/mail_draft_save/mail_compose_open. However, with 62 tools there is still some potential confusion between adjacent draft/send operations and between single-attachment versus planned batch-attachment saves.
Names consistently use snake_case with domain prefixes such as mail_, folder_, search_, and tb_. There are minor deviations like mail_attachments and mail_tags lacking an action verb, and mail_save_attachment being singular while related tools use attachments_plan/save, but the pattern is generally predictable.
62 tools is far beyond the typical well-scoped MCP surface, even for a full email client. The tools are organized and mostly purposeful, but the set is heavy enough that agents must navigate many adjacent operations and several niche tools could likely be consolidated.
The surface covers mail retrieval, search, composing, replies, forwarding, drafts, folders, moves/copies, deletes, tags, attachments, batch operations, saved searches, diagnostics, and operation tracking. For the apparent mail-focused domain, there are no obvious dead ends in core workflows.
Maintenance
Related MCP Connectors
Email, calendar and contacts for AI agents: Gmail, Microsoft 365 and IMAP accounts behind one API.
- MyAgentMailDeprecatedcom.myagentmail
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access Thunderbird email, contacts, and calendars through the Model Context Protocol, with tools for searching, reading, composing, and managing messages.3MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI assistants with full access to Thunderbird email, compose, filters, calendar, and contacts via the Model Context Protocol.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to work directly with a local Thunderbird client, providing roughly 40 tools to search and read mail, compose, reply and forward messages, manage folders, filters, contacts, calendars, events and tasks. Write operations open a review window by default, so nothing is sent or created without the user's confirmation.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI tools and shells to read, organize, and automate Thunderbird mail locally via MCP, with tools for accounts, folders, messages, rules, and archiving.MIT