Skip to content
MCP server
Registry

thunderbird-cli MCP Server

Give AI agents full read/write email access via Mozilla Thunderbird. Zero credentials.

thunderbird-cli scores 72 (Good), licensed MIT and written in JavaScript. It installs as a local process. It does not declare tools yet. Filed under Communication. GitHub shows 75 stars. Package registries report about 207 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by vitalio-shMITJavaScript75 stars
Trust score
72Good
Trust score 72 of 100, Good

Good trust

72 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 72 comes from

22 + 20 + 9 + 10 + 4 + 7 = 72. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity9 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 9 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "vitalio-sh-thunderbird-cli": {      "command": "npx",      "args": [        "-y",        "thunderbird-cli-mcp@1.2.0"      ],      "env": {        "TB_BRIDGE_HOST": "",        "TB_BRIDGE_PORT": "",        "TB_AUTH_TOKEN": "YOUR_TB_AUTH_TOKEN"      }    }  }}

Environment variables

NameRequiredNotes
TB_BRIDGE_HOSTOptionalHostname of the thunderbird-cli-bridge (default: 127.0.0.1). Set to host.docker.internal when running inside a container.
TB_BRIDGE_PORTOptionalHTTP port of the thunderbird-cli-bridge (default: 7700).
TB_AUTH_TOKENSecretOptionalBearer token, required only if the bridge was started with TB_AUTH_TOKEN.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

thunderbird-cli

Give Claude (and other AI agents) full access to your email through Mozilla Thunderbird.

tests License: MIT Node Thunderbird MCP

Why

IMAP libraries force you to manage credentials, OAuth flows, and sync state β€” dangerous in an AI-agent context. Thunderbird already solves all of that. This tool treats Thunderbird as the source of truth and exposes every capability as a CLI command or MCP tool, so AI agents can read, search, and write email without ever touching a password.

Tested at scale: 22 accounts, 249,000+ messages, 86,000+ unread β€” all managed live through a single CLI.

Features

  • πŸ” Zero credential exposure β€” all IMAP/SMTP stays in Thunderbird
  • πŸ€– Claude Desktop ready β€” 12 MCP tools, one-line config
  • πŸ“¨ 38 CLI commands β€” read, search, compose, reply, bulk ops, folder CRUD, attachments
  • πŸ›‘οΈ Safe by default β€” compose/reply/forward save as drafts; permanent delete requires --confirm
  • 🎯 Token-optimized β€” --fields selection, --compact mode, --max-body truncation
  • 🏠 Localhost-only β€” no cloud, no telemetry, nothing leaves your machine
  • βœ… Thunderbird 128+ β€” extension distributed through addons.thunderbird.net; the release XPI is byte-identical to extension/
  • πŸ§ͺ 235 tests β€” CLI/bridge, MCP, bridge security (real bridge process) and extension background-script tests

Quick Start

# 1. Install CLI + bridge from npm
npm install -g thunderbird-cli thunderbird-cli-bridge

# 2. Install the Thunderbird extension
#    Download: https://github.com/vitalio-sh/thunderbird-cli/releases/latest
#    Thunderbird β†’ Add-ons β†’ βš™ β†’ Install Add-on From File… β†’ thunderbird_ai_bridge-*.xpi

# 3. Start the bridge daemon (keep running)
tb-bridge

# 4. Try it
tb health
tb stats

Full setup guide (including background service, Docker, troubleshooting): docs/SETUP.md

Usage

# How many unread across all accounts?
tb stats

# Find invoices from AWS in the last 30 days
tb search "invoice" --from aws --since 30d --fields id,author,subject,date

# Read a message (token-efficient β€” headers + text only, max 500 chars)
tb read 89900 --max-body 500

# Reply as draft (never auto-sends)
tb reply 89900 --body "Thanks, I'll review tomorrow"

# Download a PDF attachment
tb attachment-download 11 1.2 --output invoice.pdf

# Bulk archive old newsletters
tb bulk move "account1://INBOX" "account1://Archive" \
  --from "newsletter@" --older-than 30

Full command reference: docs/COMMANDS.md

Use with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "thunderbird": {
      "command": "npx",
      "args": ["-y", "thunderbird-cli-mcp"]
    }
  }
}

Restart Claude Desktop. Now ask:

"How many unread emails do I have?" "Find invoices from AWS last month" "Reply to message 118 saying I'll attend β€” save as draft" "Download the PDF attachment from message 245"

Full MCP guide: mcp/README.md

Companion skill for Claude

A Claude Skill ships alongside the MCP server. It teaches Claude how to use the 12 email tools well β€” token-efficient field selection, draft-by-default safety, trust-metadata checking before acting on links, recipes for common workflows. Install it from skills/thunderbird-cli/:

# Claude Code
cp -r skills/thunderbird-cli ~/.claude/skills/

# Claude.ai β€” zip and upload via Settings β†’ Capabilities β†’ Skills
cd skills && zip -r thunderbird-cli.zip thunderbird-cli

Without the skill, the MCP still works. With it, Claude automatically uses the safest defaults and most efficient response shapes.

How It Works

ComponentRole
Extension (extension/)Thunderbird WebExtension. Calls messenger.* APIs. 43 route handlers.
Bridge (bridge/)Stateless HTTP↔WebSocket proxy daemon. No business logic.
CLI (cli/)tb command β€” 38 commands. Thin HTTP client. JSON output.
MCP (mcp/)tb-mcp server β€” 12 curated tools for Claude Desktop.

Thunderbird is the source of truth. The CLI never caches or stores email data.

How this compares

ToolCredentialsAI-agent readyCompose / sendMulti-accountRuntime
thunderbird-clistay in Thunderbirdβœ… CLI + MCP, JSON outβœ… draft / open / sendβœ… any Thunderbird accountNode.js
Raw IMAP libs (imapflow, imaplib)you manage themyou wire it yourselfSMTP, separatemanual per accountvaries
notmuchvia your MUACLI only, text output❌ reader onlyvia configC
mu / mu4evia your MUACLI only, sexp/text❌ reader onlyvia configC
himalayain config filesβœ… CLI, JSON outβœ…βœ…Rust
mutt / neomuttin muttrc❌ interactive TUIβœ…via configC

The niche: you already trust Thunderbird with your credentials and account state. This tool surfaces that as a machine-readable API without asking you to re-configure IMAP/SMTP anywhere else.

Documentation

DocWhat's inside
docs/SETUP.mdInstallation, background service, Docker, troubleshooting
docs/COMMANDS.mdFull reference for all 38 CLI commands
docs/CLAUDE.mdAI-agent-focused quick reference + security rules
skills/thunderbird-cli/SKILL.mdCompanion Claude Skill β€” recipes, safety defaults, token patterns
mcp/README.mdClaude Desktop integration guide
AGENTS.mdGuide for AI agents editing this codebase
SPEC.mdFull technical specification
SECURITY.mdThreat model, prompt-injection defenses
CONTRIBUTING.mdDev setup, code style, PR process
CHANGELOG.mdRelease notes

Contributing

Contributions welcome. Please open an issue first to discuss non-trivial changes. See CONTRIBUTING.md for local dev setup and the 80-test suite.

License

MIT β€” see LICENSE

Frequently asked questions

What is thunderbird-cli MCP Server?

Give AI agents full read/write email access via Mozilla Thunderbird. Zero credentials.

How do I install thunderbird-cli MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. thunderbird-cli MCP Server runs locally from the npm package thunderbird-cli-mcp with the command npx -y thunderbird-cli-mcp@1.2.0.

Is thunderbird-cli MCP Server free and open source?

Yes. thunderbird-cli MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does thunderbird-cli MCP Server support remote (HTTP) connections?

No remote endpoint is listed for thunderbird-cli MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is thunderbird-cli MCP Server's trust score calculated?

thunderbird-cli MCP Server scores 72 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

β€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server