# Thunderbird CLI Enhanced [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/odience-network/thunderbird-cli-enhanced  
**GitHub Stars:** 1  
**npm Downloads (last month):** 62  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/odience-network-thunderbird-cli-enhanced

## Description
Thunderbird email for AI agents: the tb CLI, the tb-bridge daemon and the tb-mcp MCP server in one package. Enhanced fork of thunderbird-cli by Vitalii Ionov.

## Tools
Capabilities this server exposes over MCP:

- **calendar_list** — List calendars registered in Thunderbird (id, name, type, url, read-only/enabled state, color). Requires the calendar Experiment API to be built into the add-on — see docs/decisions/calendar-backend.md. For events within a calendar, see calendar_events/calendar_event_create/calendar_event_update/calendar_event_delete.
- **email_stats** — Get an overview of all email accounts: total accounts, unread counts, message totals. Optionally filter to a single account or include per-folder breakdown.
- **email_search** — Search for emails across all accounts. The general query searches body, subject, and sender with OR logic. Add field-specific filters (from, to, subject) as AND constraints. Excludes junk by default.
- **email_list** — List messages in a specific folder. Use email_folders first to get folder IDs. Supports pagination and sorting.
- **email_read** — Read a specific email message. Modes: 'default' (headers + text body), 'headers' (cheapest), 'full' (with HTML), 'raw' (RFC822). Use maxBody to truncate long messages.
- **email_thread** — Get the full conversation thread for a message — all related messages sorted chronologically, resolved across accounts via References/In-Reply-To headers.
- **email_compose** — Compose a new email. Default mode is 'draft' (saved to Drafts folder, not sent). Use mode='send' to send immediately, mode='open' to open in Thunderbird's compose window for human review. ALWAYS prefer draft mode unless the human explicitly asked to send.
- **email_reply** — Reply to a message. Default mode is 'draft'. Use mode='send' for immediate send. Set replyAll=true to reply to all recipients. The earlier thread is appended below the reply as quoted conversation history by default; set includeHistory=false to omit it.
- **email_forward** — Forward a message to a new recipient. Default mode is 'draft' for human review. The earlier thread is appended below the body as quoted conversation history by default; set includeHistory=false to omit it.
- **email_edit** — Edit an existing draft message in place. Only works on messages in a Drafts folder. Pass only the fields you want to change (to, cc, bcc, subject, body, from, priority). Default mode is 'draft' (save silently). The saved draft messageId may change after save (IMAP) — always use the returned messageId. Use mode='open' to open in Thunderbird for human review, mode='send' to send immediately.
- **email_mark** — Update message flags: read/unread, flagged/unflagged, junk/not-junk. Accepts a single ID or array of IDs for batch operations.
- **email_archive** — Archive, move, or delete messages. Operations: 'archive' (move to archive folder), 'move' (to specific folder), 'delete' (to trash). Permanent delete requires confirm=true. 'delete' is refused (FORBIDDEN) unless the Thunderbird add-on was built with access policy delete=true; use 'move' to Trash instead. archive and non-permanent delete mark messages read by default; pass keepUnread=true to keep unread state.
- **email_attachments** — List or download attachments from a message. Operation 'list' returns attachment metadata. Operation 'download' returns base64-encoded file data (use partName from list results).
- **email_folders** — List folders for an account, get folder info with message counts, or trigger sync. Operations: 'list' (folders for account), 'all' (across all accounts), 'info' (one folder), 'sync' (refresh from IMAP).
- **contact_search** — Search or list address book contacts across all address books, matching name and any email property (primary, secondary, etc). Omit query to list all.
- **contact_create** — Create a new contact in an address book. Requires the target address book (by id or name) and at least one property.
- **contact_update** — Update properties on an existing contact by id. Only the properties you provide are changed.
- **note_list** — List all notes in the local Markdown notes workspace (title, created date, source message id if any, size, last modified). Purely local — no Thunderbird round-trip.
- **note_read** — Read a note's full Markdown body and metadata by name. Use this to pull a saved note in as context for the current conversation ("Use as Context").
- **note_save** — Save a note to the local Markdown notes workspace, overwriting it if a note with the same name already exists ("Save to Notes"). Use this to save an AI reply, summary, or other generated content as a note.
- **note_append** — Append Markdown text to a note, creating it first if it doesn't exist yet ("Save to Notes" for incremental additions, e.g. appending a new AI reply to an existing note).
- **note_transcribe** — Transcribe a local audio file to text with a local speech-to-text engine (whisper.cpp or faster-whisper, auto-detected on this machine) and save the transcript as a note. Local-first: no audio or text ever leaves this machine, and no cloud STT provider is used. Source metadata (the audio file name and engine used) is recorded in the note's front matter.
- **note_to_draft** — Render a note's Markdown to sanitized HTML and open it as a new email draft via the same compose route as email_compose. Default mode is 'draft' (saved to Drafts, not sent); mode='open' opens it in Thunderbird's compose window for human review. This tool never sends — there is no 'send' mode.
- **task_list** — List calendar tasks (VTODO), optionally scoped to one calendar or filtered by completion state. Requires the calendar Experiment API — see docs/decisions/calendar-backend.md.
- **task_create** — Create a calendar task (VTODO). Requires the tasksWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **task_update** — Update properties on an existing calendar task by id. Only the properties you provide are changed. Requires the tasksWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **email_action_items** — Extract candidate action items from a message body as a Markdown checklist. Deterministic (no LLM) — looks for imperative lines, bullets/checklists, and 'please/can you' request phrasing, plus 'by <date>' due-date hints. Returns both the structured items and the rendered Markdown.
- **calendar_events** — List calendar events in a date range, optionally scoped to one calendar. Recurring events are expanded into individual occurrences. Requires the calendar Experiment API — see docs/decisions/calendar-backend.md.
- **calendar_event_create** — Create a calendar event. Requires the calendarWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **calendar_event_update** — Update properties on an existing calendar event by id. Only the properties you provide are changed. Requires the calendarWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **calendar_event_delete** — Delete a calendar event by id. Requires the calendarWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **calendar_clashes** — Detect overlapping ('clashing') events across all calendars in a date range. Ignores cancelled and free/transparent events; DST- and all-day-aware. Returns groups of mutually overlapping events.
- **skill_today** — Today at a glance: today's calendar events (all calendars) plus unread and flagged mail counts. Returns ready-to-show Markdown, not JSON — do not reformat or re-summarize it.
- **skill_week** — This week at a glance: calendar events (all calendars) for the next 7 days, grouped by day. Returns ready-to-show Markdown, not JSON — do not reformat or re-summarize it.
- **skill_clashes** — Find overlapping ('clashing') events across all calendars in the next N days (default 7). Ignores cancelled and free/transparent events. Returns ready-to-show Markdown, not JSON — do not reformat or re-summarize it.
- **skill_from** — Recent mail from a sender address or domain, grouped into threads by subject. Returns ready-to-show Markdown, not JSON — do not reformat or re-summarize it.
- **address_book_list** — List address books (id and name). Used to pick a target book for contact_create / email_to_contact.
- **email_to_note** — Save an email to the local notes workspace ("Save to Notes" fast action). Purely local once the message body is fetched — no access switch required.
- **email_to_task** — Create a task from an email, using action-item extraction for the title/description ("Create Task" fast action). Requires the tasksWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **email_to_event** — Create a calendar event from an email via deterministic (no LLM) date/time/location parsing ("Create Event" fast action). When no date/time is found, falls back to a placeholder draft with status TENTATIVE for the user to edit. Requires the calendarWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **email_to_contact** — Add an email's sender as a contact, deduped by email address ("Add Sender to Contacts" fast action). Requires the contactsWrite access switch to be enabled (disabled by default) — see docs/ACCESS-CONTROL.md.
- **notes_listen_once** — Wait for a 'Save to Notes' click in Thunderbird, then save the resulting note. Long-polls the bridge event feed, so this call blocks until either a request arrives or the timeout elapses.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "thunderbird-cli-enhanced": {
    "command": "npx",
    "args": ["-y","-p","@odience-network/thunderbird-cli-enhanced","tb-mcp"]
  }
}
```

## Documentation

## What Thunderbird CLI Enhanced does

The Thunderbird CLI Enhanced MCP server gives AI agents access to data and actions in a local Mozilla Thunderbird profile. It packages three related commands: `tb` for direct CLI use, `tb-bridge` for the local bridge daemon, and `tb-mcp` for exposing the capabilities through Model Context Protocol.

Email operations include reading messages, searching by text and metadata, inspecting folders, handling attachments, composing, replying, forwarding, editing drafts, moving messages, and performing bulk actions. The package also covers contact read and write operations, calendars and events, tasks, and local Markdown notes. Fast Actions can turn an email into a note, task, event, or contact when the required Thunderbird add-on version and policy permissions are available.

The design keeps mailbox credentials inside Thunderbird. Agents communicate with local processes instead of receiving IMAP or SMTP passwords, and the project states that it does not use a cloud service or telemetry.

## How it works

An agent invokes `tb-mcp` over MCP, or a user runs `tb` directly. The CLI and MCP server can start the bridge automatically on first use. The bridge communicates over localhost with the Thunderbird WebExtension, which performs the requested mailbox or productivity operation through Thunderbird APIs.

The extension applies the configured access policy before write, send, deletion, contact, calendar, or task operations proceed. Unknown routes are denied, and deletion requires explicit confirmation. Compose, reply, forward, and draft-edit operations are designed to save drafts rather than send messages automatically.

Output can be reduced for agent workflows with field selection, compact formatting, body-length limits, and an optional output version. Search supports full-text queries and additional filters such as sender, subject, dates, unread state, flagged state, size, and tags. The CLI also provides compact views for daily events, weekly information, clashes, and sender-based summaries.

## Setup and configuration

Install Node.js 20 or newer, Thunderbird 128 or newer, and the npm package:

```bash
npm i -g @odience-network/thunderbird-cli-enhanced
```

This provides `tb`, `tb-bridge`, and `tb-mcp`. Source installation is also available through the repository’s macOS/Linux setup script or Windows PowerShell script. A compatible Thunderbird extension must be installed separately from the project’s release files. The README distinguishes the older ATN-signed 2.1.0 extension from the newer 2.4.0 build, which is unsigned while its review is pending and includes calendar, task, and Fast Action support.

For Claude Desktop, configure `tb-mcp` directly or use `npx` to fetch the package on demand. Claude Code can add the same server with its `claude mcp add` command. After installation, `tb health` and `tb stats` provide basic checks and mailbox statistics.

The Thunderbird CLI Enhanced MCP server also includes a companion Claude skill, installed separately, that guides safer defaults and token-efficient tool use. The skill is optional; the MCP server functions without it.

## Tools and capabilities

Supported capability areas include:

- Read, search, count, filter, move, archive, and bulk-process email.
- Compose, reply, forward, and edit messages as drafts.
- Download attachments and manage folders.
- Read and write contacts.
- List calendars and events, create or update events, delete events, and detect cross-calendar clashes.
- Create, update, delete, and extract action items for tasks.
- Store local Markdown notes, render notes into drafts, and transcribe local voice memos with supported local transcription tools.
- Produce one-click email actions for notes, tasks, events, and contacts.

## Limitations and notes

The Thunderbird CLI Enhanced MCP server is local-only and depends on a running, configured Thunderbird environment plus the required extension. Calendar, task, and Fast Action features require the newer add-on; some task and email-to-task actions specifically require the `tasksWrite` permission and add-on 2.4.0.

Write permissions are not all enabled by default. Deletion and contact, calendar, and task writes are governed by policy, and unknown routes fail closed. Permanent deletion needs `--confirm`, while draft-oriented message operations do not automatically send mail.

The README identifies Claude Desktop and Claude Code setup examples, but it does not document provider-specific behavior for other MCP clients. The package is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/odience-network-thunderbird-cli-enhanced/readme_

