dev.multimail/mcp-server

平台与服务

by multimail-dev

面向 AI agents 的 Email 服务,可在人工监督下以 markdown 收发邮件。

什么是 dev.multimail/mcp-server

面向 AI agents 的 Email 服务,可在人工监督下以 markdown 收发邮件。

README

@multimail/mcp-server

Your agent doesn't have email yet because nobody trusts it with email yet. MultiMail fixes that. A real email address with a trust ladder from read-only to fully autonomous, cryptographic identity on every message, and per-recipient sending controls.

Quick start

json
{
  "mcpServers": {
    "multimail": {
      "type": "url",
      "url": "https://mcp.multimail.dev/mcp"
    }
  }
}

Remote server. No install. Authenticates via OAuth on first connect.

Works with Claude.ai, Claude Desktop, Claude Code, Cursor, Windsurf, Copilot (VS Code), ChatGPT Desktop, and any MCP client that supports remote servers.

Alternative: local stdio server

json
{
  "mcpServers": {
    "multimail": {
      "command": "npx",
      "args": ["-y", "@multimail/mcp-server"],
      "env": {
        "MULTIMAIL_API_KEY": "mm_live_...",
        "MULTIMAIL_MAILBOX_ID": "01KJ1NHN8J..."
      }
    }
  }
}

Get a key at multimail.dev. Or run without one to create an account interactively.

Config file locations

ClientConfig file
Claude Code~/.claude/.mcp.json
Claude Desktopclaude_desktop_config.json
Cursor.cursor/mcp.json in your project
Windsurf~/.codeium/windsurf/mcp_config.json
Copilot (VS Code).vscode/mcp.json in your project
OpenCodemcp.json in your project
ChatGPT DesktopSettings > MCP Servers

Trust ladder

Every mailbox has an oversight mode. Start restrictive, graduate as the agent earns trust.

ModeBehavior
read_onlyAgent reads email. All sends blocked.
gated_allEvery action requires human approval.
gated_sendOutbound held for approval. Inbound immediate. (default)
monitoredAgent sends freely. Copies go to oversight address.
autonomousFull send/receive. No gates.

Agents request upgrades via the API. The operator approves with a one-time code. Downgrades need no approval. The agent can always restrict itself.

The gated approval flow is formally verified in Lean 4. No email reaches delivery without passing through operator approval, for every possible code path.

Per-recipient allowlist

In gated_send mode, allowlisted recipients bypass the approval queue. Add exact addresses (vendor@example.com) or domain wildcards (*@example.com). Every addition requires operator email approval. The agent cannot self-approve allowlist changes.

The practical middle ground: routine correspondence with known contacts goes immediately, new recipients still require oversight.

Cryptographic identity

Every outbound email carries a signed X-MultiMail-Identity header (ECDSA P-256). The payload includes operator name, oversight mode, capabilities, and verification status. Recipients verify against the public key at GET /.well-known/multimail-signing-key.

A separate X-MultiMail-Reputation header links to privacy-preserving reputation data: bounce rates, complaint rates, account age. No raw addresses exposed.

Without verified identity, recipients cannot distinguish your agent from a spammer. With it, they can verify the operator, the oversight level, and the sending history before reading a word.

Agent DID relay (optional). If your agent has bound a did:key to its MultiMail account, pass an optional ucan parameter to send_email / reply_email. MultiMail relays your agent's self-signed UCAN verbatim in a separate X-Agent-Identity header (did="…"; ucan="…") — it does not sign or vouch for it; recipient tooling verifies the delegation independently. Inert unless a DID is bound.

Agent self-registration (auth.md)

Agents can register themselves without a browser. The protocol uses verified-email identity assertion, following the auth.md convention inspired by WorkOS AuthKit:

code
POST /agent/auth -> claim_token + OTP sent to operator email
POST /agent/auth/claim/complete -> API key + tenant_id + granted scopes

Discovery follows RFC 9728:

  • GET /.well-known/oauth-protected-resource (resource metadata)
  • GET /.well-known/oauth-authorization-server (authorization metadata with agent_auth extension)
  • GET /auth.md (human/agent-readable registration guide)

The WWW-Authenticate header on 401 responses points agents to these endpoints automatically. An agent that hits a 401 can follow the link, read the registration protocol, and onboard itself.

Content scanning

Every outbound email is scanned before delivery. Emails enter pending_scan status, then transition to delivery or pending_send_approval (in gated modes). Inbound emails go through the same pipeline. Phishing, malware, and prompt injection patterns are flagged before reaching the agent's inbox.

How it works

  • Email bodies are markdown in, formatted HTML out. Inbound HTML arrives as clean markdown (15x fewer tokens than raw MIME).
  • Threading is automatic. Reply to an email and headers are set correctly.
  • Sends return pending_scan while scanned. Gated mailboxes then transition to pending_send_approval for human review. Do not retry.
  • Every outbound email carries a cryptographically signed X-MultiMail-Identity header.
  • Reputation data via X-MultiMail-Reputation header: bounce rates, complaint rates, account age. Privacy-preserving, updated daily.

Tools (50)

ToolDescription
Core email
send_emailSend email as markdown. Supports attachments, idempotency_key, scheduled delivery via send_at.
check_inboxList emails with filters: status, sender, subject, date range, direction, attachments, pagination.
read_emailFull email content. Trusted metadata and untrusted body returned as separate content blocks.
reply_emailReply in-thread. Threading headers set automatically.
get_threadAll emails in a conversation thread with participants and metadata.
download_attachmentDownload attachment as base64 with content type.
cancel_messageCancel a pending or scheduled email.
edit_scheduled_emailEdit scheduled email before it sends.
wait_for_emailBlock until matching email arrives or timeout (max 120s).
get_tagsGet all tags on an email. Persistent key-value agent memory across sessions.
set_tagsSet tags on an email. Merges with existing tags.
delete_tagDelete a specific tag key from an email.
Oversight
list_pendingEmails awaiting oversight decision (requires oversight scope).
decide_emailApprove or reject a pending email (requires oversight scope).
manage_upgradeRequest or apply oversight mode upgrade (action: request|apply).
Sending allowlist
list_allowlistList sending allowlist entries.
add_allowlist_entryAdd a recipient to the sending allowlist. Operator approval required.
remove_allowlist_entryRemove an allowlist entry.
Mailbox management
list_mailboxesAll mailboxes with ID, address, oversight mode, display name.
configure_mailboxFirst-run setup: oversight mode, display name, CC/BCC, scheduling, signature.
update_mailboxUpdate settings (display name, oversight mode, signature, webhooks).
create_mailboxCreate mailbox (admin scope + operator approval).
delete_mailboxPermanently delete a mailbox (admin scope).
Account & billing
get_accountAccount status, plan, quota, sending enabled, enforcement tier.
update_accountUpdate org name, oversight email, physical address.
delete_accountPermanently delete account and all data (admin scope).
get_usageQuota and usage stats for the billing period.
upgrade_planUpgrade to paid plan (Builder $9/mo, Pro $29/mo, Scale $99/mo).
cancel_subscriptionCancel paid subscription, revert to starter at period end.
get_billing_portalStripe portal URL for self-service billing.
Signup (no API key needed)
request_challengeALTCHA proof-of-work challenge for account creation.
create_accountCreate account with solved PoW challenge.
resend_confirmationResend activation email with new code.
activate_accountActivate account using confirmation code.
setup_multimailGuided onboarding on the public /onboard endpoint.
API keys & audit
list_api_keysList all API keys (admin scope).
create_api_keyCreate API key with scopes (admin + operator approval). send+oversight rejected to prevent self-approval.
revoke_api_keyRevoke an API key (admin scope).
get_audit_logAccount audit log (admin scope).
Contacts & spam
search_contactsSearch contacts by name or email.
add_contactAdd a contact.
delete_contactDelete a contact.
manage_spam_statusReport spam or clear spam status (action: report|clear).
list_spamSpam-flagged and quarantined emails.
list_suppressionList suppressed recipients with pagination.
remove_suppressionRemove a recipient from the suppression list.
Webhooks
create_webhookCreate webhook for real-time email event notifications.
list_webhooksList all webhooks.
delete_webhookDelete a webhook.
Meta
report_issueReport a bug, site problem, or feature request.

Example prompts

text
Find the most recent email from alice@example.com, summarize what she's asking,
then draft a reply saying I'll review this week. Don't send until I approve.
text
Check my inbox and summarize the last 5 unread emails.
For each: sender, subject, time, and whether it needs action today.
text
Review the pending approval queue. For each pending email: who it goes to,
the subject, risk factors, and whether to approve or reject.
text
Show my current sending allowlist. Then add *@acme.com so emails to Acme skip approval.

Environment variables

VariableRequiredDescription
MULTIMAIL_API_KEYFor stdio modeYour API key (mm_live_...). Not needed for remote server (uses OAuth).
MULTIMAIL_MAILBOX_IDNoDefault mailbox ID. If unset, pass mailbox_id per tool or call list_mailboxes.
MULTIMAIL_API_URLNoAPI base URL. Defaults to https://api.multimail.dev.

Also available

Development

bash
npm install
npm run dev   # Run with tsx
npm run build # Compile TypeScript
npm start     # Run compiled version

License

MIT

By using MultiMail you agree to the Terms of Service and Acceptable Use Policy.

常见问题

dev.multimail/mcp-server 是什么?

面向 AI agents 的 Email 服务,可在人工监督下以 markdown 收发邮件。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描165.3k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描165.3k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.5k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.1k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.9k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.9k

评论