VS

vitalio-sh/thunderbird-cli

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

65 stars 14 forks 品質 80 トレンド 28MIT

Mozilla Thunderbird 経由でメールに Claude にアクセスしてください。 CLI + MCP サーバー for AI エージェント.

概要

Mozilla Thunderbird 経由でメールに Claude (およびその他の AI エージェント) をフルアクセスします。 IMAP ライブラリは、認証情報、OAuth フロー、同期状態を管理し、AI エージェントのコンテキストで危険にさらします。 このツールは、Thunderbird を真のソースとして扱い、CLI コマンドや MCP ツールとしてすべての機能を公開します。そのため、AI エージェントはパスワードに触れることなくメールを読み、検索、書きできます。 スケールでテスト: - 単一のCLIを介してすべての管理されたライブ。 - 🔐 — すべての IMAP/SMTP は、Thunderbird に留まっています。 - 12 MCP ツール、1 行の構成 - ◦ — 読み込み、検索、コンポーズ、応答、バルクオプス、フォルダ CRUD、添付ファイル - ️️ — 作曲/reply/forward は、ドラフトとして保存します。永久的な削除には --confirm - -- フィールド選択、 --compact モード、 --max-body truncation - なし - クラウドなし、テレメットなし、署名されたマシンの葉 - なし - 完了 - 完了 - 完了 - 完了 - 完了します。 サンダーバード.

概要(AI 翻訳)

Mozilla Thunderbirdを通じてメールにフルアクセスし、Claude(およびその他のAIエージェント)を付与します。

なぜ

IMAP ライブラリは、認証情報、OAuth フロー、同期状態を管理し、AI エージェントのコンテキストで危険にさらします。 サンダーバードは既にそのすべてを解決しています。 このツールは、Thunderbird を真のソースとして扱い、CLI コマンドや MCP ツールとしてすべての機能を公開します。そのため、AI エージェントはパスワードに触れることなくメールを読み、検索、書きできます。

スケールでテスト:22のアカウント、249,000 +メッセージ、86,000 +未読 - 単一のCLIを介してすべてのマネージドライブ。

##特徴

  • 🔐 ゼロクレデンシャル暴露 — IMAP/SMTPはThunderbirdに滞在
  • ✓Claudeデスクトップの準備** — 12 MCPツール、ワンライン設定
  • ̇38 CLIコマンド — 読み、検索、コンポース、応答、バルクオプス、フォルダCRUD、添付ファイル
  • 🛡️** デフォルトで安全** — ドラフトとしてコンシュート/リード/フォワード保存; 永久削除が必要です --confirm
  • --fields 選択、 [--compact] モード、 [[--max-body] トランセン
  • Localhost-only —雲無し、テレメトリー無し、あなたの機械を残しません
  • ✅ サンダーバード128 + — addons.thunderbird.netに署名し、承認

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

thunderbird-cli

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

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+ — signed and approved on addons.thunderbird.net
  • 🧪 80 tests — 46 CLI/bridge + 34 MCP integration tests

Quick Start

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

# 2. Install the signed 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
GitHub で README 全文を見る

インストール

npx -y thunderbird-cli-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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