mail-mcp
mail-mcp
davidvornholt/standards上に構築されています。
Thunderbirdのワークフロー向けの下書き専用IMAPヘルパーで、Codex、Claude、その他の互換クライアントにはMCPサーバーとして、あなたには共有のEffectコアを介した**mail CLI**として公開されています。MCPサーバーを通じて、メールと受信添付ファイルの検索・閲覧、HTMLと添付ファイル付きの下書きの作成・更新・削除ができます。mail CLIは、ログイン、ステータス、フォルダ/検索/読み取り、プレーンテキストの下書き作成をカバーします。メールの送信はできません。下書きはThunderbirdに同期され、確認と送信が行われます。
レイアウト
apps/mail the application (MCP server + CLI)
src/app entrypoints: server.ts (MCP, stdio), cli.ts (the `mail` bin)
src/features/mail schemas, tagged errors, and Effect services (config, secrets, status, IMAP, draft, login)
src/shared app-local infrastructure (arg parsing, hidden-input terminal prompt)
packages/* canonical shared config synced from the standards templateツール一覧、設定、シークレットの取り扱いについては、apps/mail/README.mdを参照してください。
Related MCP server: imap-mcp
セットアップ
bun install
# put the `mail` command on your PATH (one-time; links the app's bin into
# ~/.bun/bin). After this, run `mail …` from anywhere.
bun link --cwd apps/mail
# configure your accounts (non-secret: addresses, IMAP hosts, and ports). The real
# file is git-ignored so your addresses never land in git.
cp apps/mail/accounts.example.toml apps/mail/accounts.toml
# …edit apps/mail/accounts.toml…
# verify every account's password against IMAP, then store each in the OS keyring
# (hidden prompts — nothing is echoed or written to disk). Run this yourself;
# the secrets never leave your machine.
mail login
# confirm each account authenticates cleanly (or shows what still needs a login)
mail statusMCPサーバーをCodexに登録します:
codex mcp add mail -- bun run <repo>/apps/mail/src/app/server.ts
codex mcp get mailCodexはMCPツール定義を関連するまで遅延させるため、サーバーを登録してもすべてのメールツールスキーマがモデルコンテキストに即座に追加されるわけではありません。追加後はCodexを再起動し、/mcpを使用して接続されたサーバーを確認してください。
明示的な書き込み承認とIMAP操作のための余裕を持たせるには、生成されたエントリを~/.codex/config.tomlで編集します:
[mcp_servers.mail]
command = "bun"
args = ["run", "<repo>/apps/mail/src/app/server.ts"]
startup_timeout_sec = 15
tool_timeout_sec = 120
default_tools_approval_mode = "writes"
[mcp_servers.mail.tools.delete_draft]
approval_mode = "prompt"Claude Code(ユーザースコープ)の場合は、次を使用します:
claude mcp add --scope user mail -- bun run <repo>/apps/mail/src/app/server.tsパスワードが保存されたら、MCPクライアントにメールの検索や下書きの作成を依頼できます。また、レビュー優先のCLIを自分で操作することもできます:
mail search invoice
mail search --account you@example.com invoice--accountを省略すると、設定済みのすべてのアカウントを検索し、結果をマージして重複を排除し、制限をグローバルに適用します。--account <email>を渡すと、そのアカウントのみを検索します。各結果にはアカウントハンドルが含まれ、個々のアカウントの失敗は部分的な結果とともに報告されます。すべてのアカウントが失敗した場合、コマンドはすべてのアカウントエラーとともに失敗します。
フォルダ検索はアカウント固有です。1つの正確なフォルダを検索するにはmail search --account you@example.com --scope folder --folder INBOX ...を、フォルダとそのサブフォルダを検索するには--scope subtree --folder Projectsを使用します。
グローバルコマンドをリンクする準備ができていませんか?すべての例はbun run apps/mail/src/app/cli.ts <args>としても動作します。
要件
Bun(
package.jsonのpackageManagerを参照)。OSキーリング用に、実行中でロック解除されたSecret Serviceプロバイダ(gnome-keyring)。
品質ゲート
bun run checkは、standardsドリフトチェックを実行し、その後、すべてのワークスペースでlint、型チェック、テスト、ビルド、a11yを実行します。変更が完了する前にこれがパスする必要があります。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityBmaintenanceA lightweight MCP server for interacting with IMAP email accounts to read messages, manage folders, and compose draft replies. It supports standard providers and local bridges, providing tools for searching, fetching attachments, and organizing mailboxes without the ability to send or delete emails.197
- FlicenseNot gradedqualityDmaintenanceAn IMAP client MCP server for reading mail from Dovecot or Synology MailPlus mailboxes, with optional webhook triggers for new messages. It provides tools for managing emails and automates workflows by firing webhooks when matching messages arrive.
- AlicenseBqualityCmaintenanceUniversal IMAP/SMTP MCP server that works with any email provider, providing tools to read, search, send, and manage emails.101361MIT
- AlicenseNot gradedqualityDmaintenanceA high-fidelity IMAP/SMTP MCP server that enables reading, searching, and sending emails from providers like iCloud and Gmail, handling real-world IMAP quirks automatically.MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidvornholt/mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server