Thunderbird MCP
Enables interaction with Thunderbird email client to search and read emails, manage contacts, list calendars, and draft messages with pre-filled content through a local HTTP bridge.
README
Thunderbird MCP
Inspired by bb1/thunderbird-mcp. Rewritten from scratch with a bundled HTTP server, proper MIME decoding, and UTF-8 handling throughout.
An MCP server that lets Claude Code read your email, search contacts, and draft replies in Thunderbird.
How it works
Claude Code <--stdio--> mcp-bridge.cjs <--HTTP--> Thunderbird Extension
The Thunderbird extension runs a local HTTP server on port 8765. The Node.js bridge translates between MCP's stdio protocol and HTTP so Claude Code can talk to it.
Setup
1. Install the extension
./scripts/build.sh
./scripts/install.sh
Restart Thunderbird.
2. Configure Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"thunderbird-mail": {
"command": "node",
"args": ["/path/to/thunderbird-mcp/mcp-bridge.cjs"]
}
}
}
What you can do
| Tool | What it does |
|---|---|
searchMessages |
Find emails by subject, sender, or recipient |
getMessage |
Read full email content |
searchContacts |
Look up contacts |
listCalendars |
List your calendars |
sendMail |
Open a compose window with pre-filled content |
replyToMessage |
Open a reply with proper threading |
Compose tools open a window for you to review before sending. Nothing gets sent automatically.
Security
The extension only listens on localhost, but any local process can access it while Thunderbird is running. Keep this in mind on shared machines.
Troubleshooting
Extension not loading? Check Tools → Add-ons and Themes. For errors: Tools → Developer Tools → Error Console.
Connection refused? Make sure Thunderbird is running and the extension is enabled.
Can't find recent emails? IMAP folders can be stale. Click on the folder in Thunderbird to sync, or right-click → Properties → Repair Folder.
Development
# Build the extension
./scripts/build.sh
# Test the HTTP API directly
curl -X POST http://localhost:8765 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# Test the bridge
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node mcp-bridge.cjs
After changing extension code, you'll need to remove it from Thunderbird, restart, reinstall, and restart again. Thunderbird caches aggressively.
Known issues
- Replies don't include the quoted original message (Thunderbird limitation workaround)
- IMAP folder databases can be stale until you click on them
- Email bodies with weird control characters get sanitized to avoid breaking JSON
Project structure
thunderbird-mcp/
├── mcp-bridge.cjs # stdio-to-HTTP bridge
├── extension/
│ ├── manifest.json
│ ├── background.js # Extension entry point
│ ├── httpd.sys.mjs # Mozilla's HTTP server lib
│ └── mcp_server/
│ ├── api.js # The actual MCP implementation
│ └── schema.json
└── scripts/
├── build.sh
└── install.sh
License
MIT. The bundled httpd.sys.mjs is from Mozilla and licensed under MPL-2.0.
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
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.
Neon Database
MCP server for interacting with Neon Management API and databases