thunderbird-mcp
A read-only MCP server that lets Claude read and search emails from Thunderbird accounts and access contacts, working directly with profile files.
README
thunderbird-mcp
An MCP server that gives Claude access to Thunderbird — read and search emails across all connected accounts (including iCloud), look up contacts, and access the unified calendar.
The read path works directly with your Thunderbird profile files and does not require Thunderbird to be running. Sending email requires Thunderbird to be running with the bundled WebExtension loaded (see below).
Status
- ✅ Email read path: list accounts/folders, search emails, read full messages
- ✅ Contacts read path: list address books, list/search contacts
- ✅ Calendar read path: list calendars, list events (requires Thunderbird closed)
- ✅ Local HTTP bridge + WebExtension: heartbeat + send email
- ✅ Message management: move, delete, mark read/unread, add/remove tags
- ✅ Contact writes: create/update contacts
- ❌ Calendar writes — blocked, no standard
browser.calendarWebExtension API exists (seedocs/DECISIONS.mdD-010); calendar remains read-only
Setup
-
Find your Thunderbird profile directory:
cat ~/.thunderbird/profiles.ini ls ~/.thunderbird/Pick the profile directory containing
Mail/,ImapMail/,abook.sqlite, etc. -
Install dependencies:
npm install -
Copy
.env.exampleto.envand setTHUNDERBIRD_PROFILEto your profile directory:cp .env.example .env # edit .env -
Verify it works:
npm run test:tools
Wiring into Claude Desktop / Cowork
Add an entry to ~/.config/Claude/claude_desktop_config.json under mcpServers:
"thunderbird": {
"command": "node",
"args": ["/absolute/path/to/thunderbird-mcp/src/index.js"],
"env": {
"THUNDERBIRD_PROFILE": "/home/<you>/.thunderbird/<profile-dir>"
}
}
Restart Claude Desktop. You should then be able to ask things like "list my Thunderbird accounts" or "search my inbox for invoices".
Tools
list_accounts— lists configured Thunderbird accountslist_folders— lists the folder tree for an accountsearch_emails— search by account, folder, sender, subject, keyword, date rangeread_email— full headers, text body, and attachment metadata for one messagelist_address_books— lists configured address books and their synced accountlist_contacts— lists/searches contacts by name or emaillist_calendars— lists configured calendarslist_events— lists calendar events by calendar/date range (requires Thunderbird to be closed)bridge_status— reports whether the Thunderbird WebExtension is connectedsend_email— composes and sends a new email from a connected account (requires Thunderbird running with the extension loaded; checkbridge_statusfirst)list_tags— lists configured message tags/labels (key, name, color)move_message— moves a message to another folder/account (requires the extension)delete_message— deletes a message, to Trash by default (requires the extension)set_message_read— marks a message read or unread (requires the extension)update_message_tags— adds/removes tags on a message (requires the extension)create_contact— creates a contact in an address book (requires the extension)update_contact— updates fields on an existing contact (requires the extension)
See docs/ARCHITECTURE.md for how email parsing, message addressing, and the
WebExtension bridge work, and docs/BRIEF.md for the full project scope and roadmap.
WebExtension
extension/ is a Manifest V2 Thunderbird WebExtension that connects to the local
bridge. To load it:
- In Thunderbird: Settings → General → "Add-ons and Themes" → gear icon →
"Debug Add-ons" → "Load Temporary Add-on" → select
extension/manifest.json. - With
npm startrunning, call thebridge_statustool (orcurl http://127.0.0.1:8084/health) —extensionConnectedshould becometruewithin ~30 seconds.
Once connected, send_email, the message management tools (move_message,
delete_message, set_message_read, update_message_tags), and the contact write
tools (create_contact, update_contact) are available. Calendar write operations
are not implemented — see docs/DECISIONS.md D-010.
Constraints
- Local only — no network exposure, no Cloudflare tunnel. The bridge binds to
127.0.0.1:8084(override withBRIDGE_PORT) and must never be tunneled. sqlite3, notbetter-sqlite3(required for Node v24 compatibility)THUNDERBIRD_PROFILEmust be set via environment variable — never hardcoded
Known limitations
- Calendar is read-only.
create_event/update_event/delete_eventare not implemented — Thunderbird has no standardbrowser.calendarWebExtension API (seedocs/DECISIONS.mdD-010). Workaround for Google-backed calendars: if your Thunderbird calendar is CalDAV-synced from a Google account, use Claude's separate Google Calendar connector to create/update/delete events on that account directly — the change syncs back into Thunderbird and shows up vialist_events. This doesn't help with iCloud-backed calendars. list_eventsrequires Thunderbird to be closed — the calendar cache database (calendar-data/local.sqlite) is held with an exclusive lock while Thunderbird runs (D-006).- Reply/reply-all are not implemented — only compose-and-send (D-008).
- Message ids from
search_emails/read_emailare based on mbox byte offsets and can go stale after Thunderbird compacts a folder (e.g. emptying Trash) — re-runsearch_emailsif a tool reports "message not found".
Troubleshooting
bridge_statusreportsextensionConnected: false: make sure Thunderbird is running and the extension is loaded (see "WebExtension" above), and that no other thunderbird-mcp process is bound to the sameBRIDGE_PORT(only one process can hold the port;npm run test:toolsuses a separate port for this reason).list_events/list_contactsreport a "locked" error:list_eventsrequires Thunderbird to be closed (D-006).list_contactscan hit this transiently while Thunderbird is actively CardDAV-syncing an address book — wait a moment and retry (D-008).- A management tool (
move_message, etc.) reports "message not found": theidis stale — re-runsearch_emailsto get a fresh one. - Send/management/contact-write tools time out: the extension didn't respond
within 30s. Check the Browser Console (Settings → General → "Add-ons and Themes" →
gear icon → "Debug Add-ons" → "Inspect") for errors in
background.js.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.