Agent Email
概要
作者による説明(英語の原文)
Local email connectivity for AI agents — read, draft, send, and organize Outlook mail via MCP
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: チャット・メール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 2/2 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "email-agent": { "command": "npx", "args": [ "-y", "email-agent-mcp" ] } } }Claude を終了してもう一度開く
試してみる
Agent Email を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Agent Email を使っていると言うか、回答に Agent Email のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Agent Email につなげません
Agent Email はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Agent Email につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · チャット・メール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Inbox Zero✓ ChatGPT
- Agent-Native Chat✓ ChatGPT
- draw.io✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add email-agent -- npx -y email-agent-mcpClaude Code で /mcp と入力
Agent Email が一覧にあり、接続済みと表示されれば OK です
試してみる
Agent Email を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Agent Email を使っていると言うか、回答に Agent Email のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
Agent Email を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Agent Email を使っていると言うか、回答に Agent Email のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
Agent Email を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Agent Email を使っていると言うか、回答に Agent Email のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add email-agent -- npx -y email-agent-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"email-agent": {
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"email-agent": {
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"email-agent": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"email-agent-mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月11日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント UseJunior で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:3 日前
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
チャット・メールのほかのサーバーとの比較i
- このカテゴリのほかの1938件のうち94%よりスターが多い
- このカテゴリのほかの1938件のうち100%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの1938件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Agent Emailは安全ですか?
当てはまる基本チェック2項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は3 日前、最新バージョン(0.5.1)がレジストリに届いたのは今日です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:Inbox Zero, Agent-Native Chat, draw.io
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Agent-Native Chat
Minimal chat-first app with durable threads, actions, and the app-agent loop
draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Agent Email
English | Español | 简体中文 | Português (Brasil) | Deutsch
email-agent-mcp by UseJunior -- local email connectivity for AI agents.
Agent Email is an open-source TypeScript MCP server that lets Claude Code, Cursor, Gemini CLI, OpenClaw, and other MCP-compatible runtimes read email, search threads, draft replies, label messages, change read state, move messages, and send mail through your own mailbox. Microsoft 365 / Outlook and Gmail are supported today. Security-first defaults mean agents cannot send email until you explicitly configure an allowlist.
Quick Start
npx -y email-agent-mcp
The interactive setup wizard walks you through OAuth configuration and mailbox selection.
What Works Today
- Microsoft 365 / Outlook mailbox access through MCP stdio
list_emails,read_email,search_emails, andget_threadcreate_draft,update_draft,send_draft,send_email, andreply_to_emaillabel_email,mark_read, andmove_to_folder- send allowlists, delete disabled by default, and sanitized errors
The current launch-prep pass was validated against a real Outlook mailbox for read, draft, send, categorize, move, and read-state flows.
Why This Exists
AI agents need to read, reply to, and act on email, but email APIs are complex. OAuth flows, Graph delta queries, Gmail push subscriptions, HTML-to-markdown conversion, threading semantics -- each provider has its own quirks.
Agent Email wraps this complexity into deterministic MCP tools with security guardrails:
- send and receive allowlists that control who agents can contact
- delete disabled by default (requires explicit opt-in)
- error sanitization that strips API keys, file paths, and stack traces
- body file sandboxing with path traversal protection
Use with Claude Code
Add to ~/.claude/settings.json or your project .claude/settings.json:
{
"mcpServers": { "email-agent-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "email-agent-mcp"] } } }
Use with Cursor
// .cursor/mcp.json
{ "mcpServers": { "email-agent-mcp": { "command": "npx", "args": ["-y", "email-agent-mcp"] } } }
Use with Gemini CLI
gemini extensions install https://github.com/UseJunior/email-agent-mcp
Use with OpenClaw
Add an mcp block to ~/.openclaw/openclaw.json:
{
// ... existing config ... mcp: { servers: { email: { command: "npx", args: ["tsx", "/path/to/email-agent-mcp/packages/email-mcp/src/serve-entry.ts"], transport: "stdio" } } } }
Version note: The
mcpconfig key requires OpenClaw app >= 2026.3.24. If the CLI is older than the app, it may reject this key during validation even though the gateway accepts it. Update the CLI withnpm install openclaw@latestin your NemoClaw directory, or restart the gateway directly withlaunchctl kickstart -k gui/501/ai.openclaw.gateway.
Email watcher
The watcher polls your mailbox and sends wake signals to OpenClaw when new email arrives:
# Set the hooks token (must match hooks.token in openclaw.json)
export OPENCLAW_HOOKS_TOKEN="your-hooks-token"
Start the watcher (defaults to http://localhost:18789/hooks/wake)
npm run dev:watch
The watcher requires at least one configured mailbox. Run npx email-agent-mcp or npm run dev:configure first to complete the OAuth flow.
Launch Prep Smoke Test
Before recording a demo, run the live smoke script against a real mailbox and a safe send allowlist. The script exercises:
get_mailbox_statuslist_emails+read_emailmark_readunread -> read -> unreadlabel_emailon a safe inbox candidatecreate_draft- draft-only
reply_to_email - optional
send_email
Example:
EMAIL_AGENT_MCP_HOME=/tmp/email-agent-mcp-live \
AGENT_EMAIL_SEND_ALLOWLIST=/tmp/email-agent-mcp-live/send-allowlist.json \ npm run launch:prep:smoke -- --live-write --send-to beta@usejunior.com
Default safe-candidate selection looks for notifications@github.com in the inbox so you can rehearse the recording flow on a public-safe message instead of customer mail. If your mailbox status name is not an email address, pass --reply-sender or set EMAIL_AGENT_MCP_REPLY_SENDER so the script can find a self-sent message for the draft-reply check.
Tool Reference
Scope profiles
Set EMAIL_AGENT_MCP_SCOPE_PROFILE before configuring and starting the server to choose the permissions exposed to an agent. The default is full for backward compatibility.
| Profile | Microsoft delegated scopes | Exposed tools |
|---|---|---|
observe | Mail.Read, User.Read, offline_access | Read-only email tools, minus list_inbox_rules (see below) |
full (default) | Mail.Read, Mail.ReadWrite, Mail.Send, MailboxSettings.ReadWrite, User.Read, offline_access | All tools |
For an observation-only deployment, set the profile for both configuration and runtime so the OAuth consent and MCP tool list agree:
export EMAIL_AGENT_MCP_SCOPE_PROFILE=observe
npx email-agent-mcp configure npx email-agent-mcp serve
observe's scopes are a deliberate strict subset of full's. That is what makes the profile adoptable: a tenant that has already consented to the full set grants observe silently, so switching full → observe needs no new consent. Switching observe → full does require a new interactive consent, because it asks for scopes that were never granted.
For the same reason observe does not expose list_inbox_rules. Graph gates /mailFolders/inbox/messageRules behind MailboxSettings, and Entra treats MailboxSettings.Read as a distinct scope from full's MailboxSettings.ReadWrite rather than implied by it. Requesting it would break the subset property and force a fresh consent on every observe deployment — an admin-approval request in tenants that restrict user consent. Use full if you need inbox-rule visibility.
An invalid profile value stops startup instead of silently granting broader access. If cached credentials do not cover the profile's scopes, the server fails fast with an actionable error rather than blocking on an interactive sign-in.
What observe does and does not guarantee
observe always removes the write tools from the MCP tool surface, so an agent cannot invoke them. That part holds everywhere.
It only narrows the OAuth token on a mailbox that has not already consented to the write scopes. Entra issues an access token carrying every scope the user or tenant has already consented to for that application — not just the subset requested at token-acquisition time. So if you point observe at a mailbox previously configured as full, the underlying token still carries Mail.ReadWrite and Mail.Send; only the tool surface is reduced.
For a genuine least-privilege token, consent to observe from a mailbox that has never been granted the write scopes — a fresh configure against an app registration whose delegated permissions stop at Mail.Read/User.Read. Treat the tool-surface reduction as defense in depth, not as an OAuth boundary, unless you control the grant.
Tools
The full profile exposes 27 MCP tools; observe omits every tool whose action is marked as mailbox-mutating:
| Tool | Description | Type |
|---|---|---|
list_emails | List recent emails with filtering | read |
read_email | Read full email content as markdown, or raw HTML with format: "html" | read |
search_emails | Full-text search across mailboxes | read |
list_mailboxes | Enumerate configured mailboxes, their status, and the default | read |
get_mailbox_status | Connection status and warnings | read |
get_thread | Full conversation context | read |
list_attachments | List attachment metadata for an email | read |
download_attachment | Download a file attachment as base64, or save it to a sandboxed directory with save_to | read |
download_message | Save a whole message as a raw .eml file to a sandboxed directory | read |
send_email | Send new email (allowlist-gated) | write |
reply_to_email | Reply within thread (allowlist-gated on send) | write |
create_draft | Create email draft | write |
update_draft | Update draft content | write |
send_draft | Send a saved draft | write |
list_scheduled_sends | List pending provider-held scheduled sends (Microsoft 365) | read |
cancel_scheduled_send | Cancel a pending scheduled send (Microsoft 365) | destructive |
label_email | Apply labels/categories | write |
flag_email | Flag/unflag emails | write |
mark_read | Mark as read/unread | write |
move_to_folder | Move between folders | write |
delete_email | Delete (requires operator env + caller flag) | destructive |
list_folders | Recursively list folders and computed paths (Microsoft 365) | read |
create_folder | Create a custom child folder (Microsoft 365) | write |
delete_folder | Delete a custom folder (requires operator env + caller flag); system folders are protected (Microsoft 365) | destructive |
list_inbox_rules | List server-side inbox rules (Microsoft 365) | read |
create_inbox_rule | Create a persistent safe inbox rule; forwarding, redirection, deletion, and discarding to Deleted Items are blocked (Microsoft 365) | write |
delete_inbox_rule | Delete a server-side inbox rule (requires operator env + caller flag) (Microsoft 365) | destructive |
This is a shared cross-provider tool surface. Although label_email, flag_email, mark_read, and move_to_folder are advertised, the Gmail adapter intentionally does not implement those mutation capabilities. They fail closed with NOT_SUPPORTED before any Gmail mutation request. The default gmail.readonly plus gmail.compose grant would not authorize those mutations either; do not add gmail.modify to try to make the tools available. They remain available only for providers whose adapters and grants support them.
On Gmail, delete_email deletes drafts only, through users.drafts.delete, which gmail.compose authorizes. Pass either the draft id (r…) or the id of the draft's message (what list_emails with folder: "drafts" returns). The delete is permanent, because Gmail has no trash for drafts, but it still sits behind the same AGENT_EMAIL_DELETE_ENABLED gate and `user_expl