经 AI Skill Hub 精选评估,agenticmail MCP工具 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.8 分,适合有一定技术背景的用户使用。
为AI智能体提供邮件和短信基础设施的MCP工具。支持AI代理发送和接收真实邮件、文本消息,实现完整的电子邮件通讯能力。适合需要邮件集成的自动化系统、智能客服和工作流应用开发者。
agenticmail MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
为AI智能体提供邮件和短信基础设施的MCP工具。支持AI代理发送和接收真实邮件、文本消息,实现完整的电子邮件通讯能力。适合需要邮件集成的自动化系统、智能客服和工作流应用开发者。
agenticmail MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/agenticmail/agenticmail
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"agenticmail-mcp--": {
"command": "npx",
"args": ["-y", "agenticmail"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 agenticmail MCP工具 执行以下任务... Claude: [自动调用 agenticmail MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"agenticmail_mcp__": {
"command": "npx",
"args": ["-y", "agenticmail"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="./docs/images/logo-200.png" alt="AgenticMail logo (pink bow)" width="180" /> </p>
<p align="center"> <a href="https://github.com/agenticmail/agenticmail/actions/workflows/ci.yml"><img src="https://github.com/agenticmail/agenticmail/actions/workflows/ci.yml/badge.svg" alt="CI" /></a> </p>
The first platform to give AI agents real email addresses and phone numbers. Send and receive email, SMS, and verification codes — all programmatically.
### Are you an AI agent reading this on behalf of a human? Your human asked you to install / set up AgenticMail. Pick either of these and then tell them to restart Claude Code:Zero prompts, ~2 minutes, fully autonomous. For the full runbook (verification, common failures, repo conventions if you're modifying the code), see> # Option A — one-line installer (recommended) > curl -fsSL https://raw.githubusercontent.com/agenticmail/agenticmail/main/install.sh | bash > > # Option B — manual two-command install > npm install -g @agenticmail/cli@latest > agenticmail bootstrap >AGENTS.md— the agents.md file at this repo's root.
---
A local, opt-in media / video-editing toolset for AgenticMail agents.
media_tts / media_tts_voices (Edge text-to-speech), media_image_edit, media_video_edit, media_audio_edit, media_info, media_video_understand, media_voice_clone, and media_capabilities. Available as MCP media_* tools and OpenClaw agenticmail_media_* tools, both thin clients of new /media/* API routes over a core MediaManager.media block on /health and the media_capabilities tool surface what is available.execFile with an argument array — no shell, no string interpolation. Untrusted input paths are validated (no control characters, no leading-dash flag-injection, must exist); numeric options are clamped; every call carries a bounded timeout and output buffer; output files land only inside the configured media directory.Twilio joins 46elks as a phone transport provider.
PhoneTransportProvider is now 46elks or twilio — chosen at phone setup. 46elks behaviour is unchanged; Twilio is at full parity (outbound call-control + realtime voice).Calls.json REST API, TwiML webhooks, status-callback cost tracking. Inbound webhooks are verified with the X-Twilio-Signature header (HMAC-SHA1, timing-safe, fail-closed) on top of the per-mission token.RealtimeVoiceBridge was generalised behind a RealtimeTransportAdapter seam — one bridge serves both carriers, function-calling / barge-in / transcript logic written once. Twilio audio is G.711 µ-law @ 8 kHz and the OpenAI session uses audio/pcmu, so a Twilio call needs no transcoding. A <Connect><Stream> connects to /api/agenticmail/calls/twilio-stream.1038 tests pass; full build green. The live Twilio ↔ OpenAI call path still needs an operator smoke-test before the npm publish.
node:sqlite module — zero native compilation, no node-gyp headaches)brew (macOS) or apt (Linux) so the wizard can install Colima / Docker if you don't already have itHeads-up for anyone running agenticmail setup-email (or telling Claude / Codex to do it for them). Once that command succeeds, your sub-agents are reachable from the public internet via Gmail / Outlook plus-addressing. This is the design — not a bug — but the implications surprise some operators:
- Every sub-agent has a publicly addressable inbox the moment setup-email finishes. Anyone who knows your relay address can hit yourrelay+<agentname>@gmail.com and the corresponding agent's AgenticMail inbox receives the message. Plus-addresses are publicly guessable (+secretary, +kepler, …) — don't treat them as a secret. - External mail wakes the dispatcher the same way internal @localhost mail does. When a new-mail event lands on a watched inbox, the dispatcher runs dedup + thread-cache + wake-budget checks and spawns a Claude Code (or Codex) worker turn. Source doesn't matter — bob@gmail.com and secretary@localhost are indistinguishable from the dispatcher's point of view. - The host bridge takes a different path. Mail to yourrelay+claudecode@gmail.com or yourrelay+codex@gmail.com doesn't spawn a worker — it goes to handleBridgeMail, which uses the host SDK's resume option to wake your last session headlessly. If that fails (session expired, host CLI not running), it falls through to the bridge-escalation email at setup_operator_email. So external mail to the bridge can wake your CLI / forward to your phone. - Watchout — spam wakes Claude / Codex turns. A scraper that finds astrumsphere+secretary@gmail.com in a leaked address book can drive worker turns at your expense. Throttles available, ordered from least invasive: 1. Let the wake-budget guard in dispatcher.handleEvent rate-limit naturally (default cap per minute per agent). 2. Add inbound spam rules at the relay layer so spam gets filtered before the SSE event publishes (built-in spam filter + tags can do this; see the Security section below). 3. For agents that should be internal-only, set metadata.host to a value no dispatcher matches, or stop the relay's IMAP poller from publishing on that inbox.
| Path | When to use | Command |
|---|---|---|
| **Autonomous** ✨ | Letting an AI agent (e.g. Claude Code) install AgenticMail on your behalf, or you just want zero questions | npm install -g @agenticmail/cli && agenticmail bootstrap |
| **Interactive** | You want to connect a Gmail relay or your own domain right away | npm install -g @agenticmail/cli && agenticmail setup |
```bash
curl -fsSL https://raw.githubusercontent.com/agenticmail/agenticmail/main/install.sh | bash
Same setup, no prompts — secrets ride in via env vars. Useful for Claude / Codex / scripted installs:
```bash
agenticmail tunnel start # cloudflared quick-tunnel agenticmail tunnel url # prints the *.trycloudflare.com URL agenticmail tunnel stop ```
Add to your MCP client configuration (e.g., .mcp.json or project settings):
{
"mcpServers": {
"agenticmail": {
"command": "npx",
"args": ["agenticmail-mcp"],
"env": {
"AGENTICMAIL_API_URL": "http://127.0.0.1:3829",
"AGENTICMAIL_API_KEY": "ak_your_agent_key"
}
}
}
}
| You want… | Run |
|---|
npm install -g @agenticmail/cli agenticmail bootstrap
Either path: zero prompts. The pipeline:
1. **`agenticmail setup --yes`** — auto-installs Colima + Docker if missing, starts the Stalwart mail server, generates your master key, creates a default "secretary" agent. **Skips external email/SMS setup** (those need user-owned credentials; add them later if you want).
2. **`agenticmail service install`** — registers a launchd plist (macOS) / systemd unit (Linux) so the API auto-starts on boot, and starts it now.
3. Waits for `GET /api/agenticmail/health` to come up on the configured port (default `http://127.0.0.1:3829`).
4. **`agenticmail claudecode`** — wires the Claude Code integration in if you have Claude Code installed (idempotent / no-op otherwise).
After this, you have a fully working local AgenticMail with internal multi-agent coordination over `*@localhost`. Add an external Gmail relay or your own domain anytime with `agenticmail setup` (interactive).
#### Interactive install
bash npm install -g @agenticmail/cli agenticmail setup ```
The wizard walks you through everything: dependency checks, master key generation, mail-server start, optional Gmail relay or custom domain, optional SMS setup, optional realtime voice (OpenAI API key), optional phone calling (pick 46elks or Twilio and enter that carrier's credentials), optional Telegram channel (bot token + chat link), and optional OpenClaw integration. Every optional step is skippable and re-runnable any time. With --yes / --non-interactive all the optional steps are skipped with safe defaults.
The new optional steps in detail:
openaiApiKey in ~/.agenticmail/config.json (file mode 0600).46elks or twilio), enter that carrier's credentials (46elks API username/password, or Twilio Account SID/Auth Token), a caller number, and a public HTTPS webhook base URL. The webhook secret is auto-generated if you don't supply one. Persisted to the agent's phone-transport config.@BotFather and your chat id. The token is verified with Telegram before it's stored; the channel comes up in poll mode and agenticmail start auto-spawns a standalone bridge service that wakes the agent on inbound DMs with the full MCP toolset (memory, send_email, call_phone, …) available.AgenticMail includes a full CLI for managing your server. All commands are available via agenticmail <command> or npx @agenticmail/cli@latest <command>.
curl -X POST http://127.0.0.1:3829/api/agenticmail/gateway/relay \ -H "Authorization: Bearer mk_your_master_key" \ -H "Content-Type: application/json" \ -d '{ "provider": "gmail", "email": "you@gmail.com", "password": "xxxx xxxx xxxx xxxx" }' ```
Requirements: - Gmail: App password (not your regular password) - Outlook: App password from Microsoft account security settings
All endpoints are under /api/agenticmail. Authentication via Authorization: Bearer <key> header.
Two key types: - Master key (mk_...) — full admin access (create/delete agents, approve blocked emails, gateway config) - Agent key (ak_...) — scoped to one agent (read own inbox, send email, manage own drafts/contacts/etc.)
| Method | Path | Auth | Description |
|---|---|---|---|
| **Mail** | |||
POST | /mail/send | Agent | Send email (text, HTML, attachments) |
GET | /mail/inbox | Agent | List inbox messages (paginated) |
GET | /mail/digest | Agent | Inbox with body previews |
GET | /mail/messages/:uid | Agent | Read full email with headers and attachments |
POST | /mail/search | Agent | Search by from, subject, body, date |
POST | /mail/messages/:uid/move | Agent | Move to folder |
POST | /mail/messages/:uid/spam | Agent | Report as spam |
GET | /mail/folders | Agent | List all folders |
GET | /mail/pending | Both | List blocked outbound emails |
POST | /mail/pending/:id/approve | Master | Approve blocked email |
POST | /mail/pending/:id/reject | Master | Reject blocked email |
| **Accounts** | |||
POST | /accounts | Master | Create new agent |
GET | /accounts | Master | List all agents with metadata |
GET | /accounts/me | Agent | Get own agent info |
DELETE | /accounts/:id | Master | Delete agent (with email archival) |
GET | /accounts/directory | Both | Agent discovery directory |
| **Events** | |||
GET | /events | Agent | SSE stream — new email with route metadata, flags, expunge events |
| **Gateway** | |||
GET | /gateway/status | Both | Current gateway mode and health |
POST | /gateway/relay | Master | Configure relay mode |
POST | /gateway/domain | Master | Configure domain mode |
POST | /gateway/test | Both | Send a test email |
| **Tasks** | |||
POST | /tasks/assign | Both | Assign task to another agent |
POST | /tasks/rpc | Both | Synchronous agent-to-agent RPC (long-poll) |
GET | /tasks/pending | Agent | List tasks assigned to me |
POST | /tasks/:id/claim | Agent | Claim a pending task |
POST | /tasks/:id/result | Agent | Submit task result |
Plus endpoints for drafts, contacts, tags, rules, signatures, templates, scheduled emails, spam management, batch operations, domains, and agent deletion/cleanup.
See the API package README for complete endpoint documentation.
---
agenticmail update or /update in shell, with OpenClaw compatibility check---
| Command | Description |
|---|---|
agenticmail openclaw | **Set up AgenticMail for OpenClaw.** Starts infrastructure, creates an agent, configures the OpenClaw plugin, enables agent auto-spawn via hooks, and restarts the OpenClaw gateway. |
agenticmail claudecode | ✨ **Set up AgenticMail for Claude Code.** Provisions a dedicated "claudecode" bridge agent, writes an MCP server entry to ~/.claude.json, generates a Claude Code subagent file per AgenticMail agent under ~/.claude/agents/, and starts the dispatcher daemon (PM2-managed) that auto-wakes agents on inbound mail or /tasks/rpc. No separate Anthropic key needed — workers ride on your existing Claude OAuth. Flags: --status, --remove, --purge-bridge. See [@agenticmail/claudecode on npm](https://www.npmjs.com/package/@agenticmail/claudecode) for the full design. |
This is a TypeScript monorepo. Seven packages, each shipped to npm independently.
| Package | Description | Install |
|---|---|---|
[@agenticmail/cli](./agenticmail) | CLI, setup wizard, interactive shell. Install this to get started. | npm i -g @agenticmail/cli |
[@agenticmail/core](./packages/core) | Core SDK — accounts, SMTP/IMAP, gateway, spam filter, outbound guard, storage | npm i @agenticmail/core |
[@agenticmail/api](./packages/api) | Express REST API server with 75+ endpoints | npm i @agenticmail/api |
[@agenticmail/mcp](./packages/mcp) | MCP server with 100 tools for any MCP-compatible AI client | npm i -g @agenticmail/mcp |
[@agenticmail/claudecode](./packages/claudecode) | Anthropic Claude Code integration — registers MCP server + native subagents + lifecycle hooks + dispatcher daemon | npm i -g @agenticmail/claudecode |
[@agenticmail/codex](./packages/codex) | OpenAI Codex CLI integration — same architecture as @agenticmail/claudecode, adapted to Codex's TOML config and spawn_agent tool | npm i -g @agenticmail/codex |
[@agenticmail/openclaw](./packages/openclaw) | OpenClaw plugin with 89 tools and skill definition | openclaw plugin install agenticmail |
Plugin folders (host marketplace manifests, separate from npm packages):
| Folder | Host | What's inside |
|---|---|---|
[plugin/](./plugin) | Claude Code | .claude-plugin/plugin.json manifest + .mcp.json + skills. Ship target for Anthropic's plugin marketplace. |
[plugin-codex/](./plugin-codex) | OpenAI Codex CLI | .codex-plugin/plugin.json manifest + hooks/hooks.json + mcp_servers.toml snippet + agent template. Ship target for Codex's plugin discovery (~/.codex/plugins/). |
Dependency graph:
@agenticmail/cli ──────> @agenticmail/api ────> @agenticmail/core
@agenticmail/mcp (standalone — HTTP calls to API)
@agenticmail/claudecode (peer-dep on @anthropic-ai/claude-agent-sdk)
@agenticmail/codex (peer-dep on @openai/codex-sdk)
@agenticmail/openclaw (standalone — HTTP calls to API)
---
The MCP server exposes 80+ tools to any MCP-compatible AI client via stdio transport.
AgenticMail is host-agnostic at the protocol level (it's just SMTP/IMAP/HTTP/MCP under the hood), but each agentic CLI host expects its config + hooks + subagent definitions in a slightly different shape. We ship one host integration package per supported host. Each one:
SessionStart, UserPromptSubmit, Stop) so the agent gets a fresh-mail digest and capabilities preamble at the right moments.AgenticMail 是首个为 AI Agent 提供真实电子邮件能力的平台。它通过创新的设计,让 AI 智能体能够像人类一样处理邮件通信,从而实现更具自主性的自动化工作流。
最新版本引入了强大的媒体工具集(Media Toolset),支持包括 `media_tts`、`media_video_edit` 在内的 9 种媒体处理工具,并可通过 MCP 或 OpenClaw 协议调用。此外,系统现已支持 Twilio 作为电话传输提供商,通过 Twilio REST API 和 TwiML webhooks 实现完整的出站通话控制与实时语音功能。
运行本项目需要 Node.js 22 或更高版本(利用内置的 `node:sqlite` 模块实现零原生编译,避免 `node-gyp` 带来的安装难题)。此外,macOS 用户需安装 `brew`,Linux 用户需安装 `apt`,以便安装向导能够自动配置 Colima 或 Docker 环境。
项目提供两种安装路径:1. Autonomous(自主模式):适用于让 Claude Code 等 AI Agent 代为安装,或追求零交互体验的用户,通过 `agenticmail bootstrap` 一键完成;2. Interactive(交互模式):适用于需要立即连接 Gmail Relay 或自定义域名的用户。此外,也支持使用 curl 一键脚本进行快速部署。
安装完成后,系统会自动启动 Stalwart 邮件服务器,生成 Master Key,并创建一个默认的“秘书” Agent。用户可以通过 CLI 或 API 进行管理。请注意,执行 `setup-email` 后,子 Agent 将通过 Gmail/Outlook 的加号地址(plus-addressing)在公网可见,这是其设计的核心特性。
系统通过 Master Key (`mk_...`) 进行全局管理,拥有创建/删除 Agent 及配置网关的最高权限;通过 Agent Key (`ak_...`) 进行权限隔离,限制 Agent 仅能访问其自身的收件箱。媒体工具集可通过 MCP `media_*` 工具或 OpenClaw `agenticmail_media_*` 工具进行配置与调用。
AgenticMail 提供完整的 CLI 工具及 REST API 接口。所有 API 端点均位于 `/api/agenticmail` 路径下,采用 Bearer Token 认证机制。开发者可以通过 HTTP POST 请求与网关交互,实现邮件中继(Relay)等高级功能,并支持 OpenAPI 风格的规范。
AgenticMail 具备高度的集成能力:支持作为 MCP Server 提供 90 多个工具供兼容客户端调用;提供 OpenClaw 插件支持 80 多个技能定义;通过 REST API 提供 75 多个端点;并利用 SSE(Server-Sent Events)实现实时的收件箱通知,构建完整的智能体通信工作流。
实用的MCP邮件工具,补充了AI代理通讯能力短板。架构清晰、集成便捷,125星热度适中但维护活跃,值得关注。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:agenticmail MCP工具 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | agenticmail |
| 原始描述 | 开源MCP工具:Email & SMS infrastructure for AI agents — send and receive real email and text 。⭐125 · TypeScript |
| Topics | 邮件服务短信服务AI代理MCP工具通讯集成 |
| GitHub | https://github.com/agenticmail/agenticmail |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-18 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端