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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。