@emailalias/mcp
@emailalias/mcp
用于 EmailAlias.io REST API 的 MCP 服务器。让你能够通过自然语言在 Claude Desktop、Cursor、Zed、Cline 以及任何其他兼容 MCP 的 AI 助手上创建、管理和监控电子邮件别名。
“为 Substack 创建一个新别名,标签设为 'newsletter'” “禁用 amazon 别名,我收到垃圾邮件了” “显示本周被标记为可疑发件人的别名”
API 访问是高级 (Premium) 功能。请从仪表板的 Settings → API Keys 生成 API 密钥。
安装
Claude Desktop
编辑你的配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
在 mcpServers 下添加 emailalias 条目:
{
"mcpServers": {
"emailalias": {
"command": "npx",
"args": ["-y", "@emailalias/mcp"],
"env": {
"EMAILALIAS_API_KEY": "ea_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}重启 Claude Desktop。你应该能看到一个 🔌 插头图标,确认服务器已连接。
Cursor、Zed、Cline 及其他 MCP 客户端
每个兼容 MCP 的客户端都接受相同的配置格式。请查阅你所用客户端的文档以获取确切的配置路径,然后使用:
command: npx
args: -y @emailalias/mcp
env: EMAILALIAS_API_KEY=ea_live_...全局安装(可选)
如果你不希望 npx 在每次启动时都下载该包:
npm install -g @emailalias/mcp然后将 command 改为 emailalias-mcp 并去掉 -y @emailalias/mcp 参数。
Related MCP server: Inbound Email MCP Server
配置
环境变量 | 必需 | 默认值 | 说明 |
| ✅ | — | 仅限高级版。以 |
| ❌ |
| 用于暂存环境或自托管的覆盖设置。 |
可用工具
工具 | 功能 |
| 获取所有别名及其转发/拦截计数 |
| 创建随机/自定义/带标签的别名 |
| 切换激活状态、重命名标签 |
| 更改发件人显示名称(高级功能,24小时冷却) |
| 永久删除别名 |
| 系统 + 可用的自定义域名 |
| 主收件箱 + 已验证的转发收件箱 |
| 注册新的转发目的地(触发验证邮件) |
| 移除目的地(如果仍有别名在使用则会拦截) |
| 通过别名发送邮件(高级功能) |
| 账户范围内的统计计数 |
| 分页转发日志(最近 90 天) |
| 可疑发件人警报 |
示例提示词 (Claude Desktop)
Create a disposable alias for signing up to Substack. Label it "newsletter".Show me all aliases that have received zero emails in 30 days.Disable every alias labelled "shopping" and list what you disabled.What's my exposure alert count for this month?开发
git clone https://github.com/emailalias/emailalias-mcp.git
cd emailalias-mcp
npm install
npm run build
# Test against the MCP Inspector (installs on demand)
npx @modelcontextprotocol/inspector node dist/index.js手动运行时必须在 shell 中设置 EMAILALIAS_API_KEY。
安全说明
你的 API 密钥保留在本地机器上。 此服务器在本地运行(stdio 传输),通过 HTTPS 调用 EmailAlias API,并直接发送密钥。没有第三方能看到它。
不要提交
claude_desktop_config.json— 它包含你的密钥。请像对待.env文件一样对待它。作用域很重要。 你的 LLM 决定调用的任何 MCP 工具都会针对你的实时账户执行。在批准像
delete_alias这样具有破坏性的操作之前,请务必审查模型提出的建议。
链接
EmailAlias.io: https://emailalias.io
模型上下文协议 (Model Context Protocol): https://modelcontextprotocol.io
许可证
MIT
Available Tools
13 toolsadd_destinationA
Add a new forwarding destination. Triggers a verification email to that address; the destination is unusable until the recipient clicks the link. Premium feature.
Inputs: email (required).
create_aliasA
Create a new email alias. 'random' generates a short code; 'custom' uses custom_code; 'tagged' prepends a random code to a user-provided tag. destination_email must be the user's primary email OR a verified forwarding destination. display_name is Premium-only and shown as the sender on outbound mail.
Inputs: tag, label, domain, alias_type, +3 more.
delete_aliasA
Permanently delete an alias. This cannot be undone. Prefer update_alias with active=false if the user might want it back.
Inputs: alias_id (required).
delete_destinationA
Remove a forwarding destination. Fails with 409 if any alias still forwards to it — reassign those aliases first.
Inputs: destination_id (required).
get_dashboard_statsA
Account-wide counters: total aliases, active aliases, emails forwarded, emails blocked, exposure alerts.
Inputs: no named parameters.
list_aliasesA
List all email aliases on the authenticated EmailAlias account. Returns id, alias_email, destination_email, active, label, emails_forwarded, emails_blocked.
Inputs: no named parameters.
list_available_domainsA
List domains the user can create aliases on (system domains + their verified custom domains).
Inputs: no named parameters.
list_destinationsA
List the user's forwarding destinations (primary email plus verified extras). is_primary=true marks the account email.
Inputs: no named parameters.
list_email_logsA
Paginated email-forwarding log covering the last 90 days. Each item has sender, subject, direction, status, block_reason.
Inputs: page, per_page.
list_exposure_eventsA
Suspicious-sender alerts scored against the user's aliases. Use this to identify risky senders and decide which aliases to disable.
Inputs: page, per_page.
send_emailB
Send an email from one of the user's aliases. The recipient sees only the alias address. Requires Premium and a verified, active alias.
Inputs: body (required), subject (required), alias_id (required), to_email (required), +1 more.
update_aliasA
Update an alias: toggle active (enable/disable) or rename its label. To change the sender display name, use update_alias_display_name (separate 24h-cooldown endpoint).
Inputs: alias_id (required), label, active.
update_alias_display_nameA
Schedule a display-name change on an alias (Premium-only). Edits do NOT take effect immediately — the new value lands in display_name_pending and promotes 24h after the most recent edit. Editing again resets the clock. Capped at 3 edits per rolling 24h per alias. Pass display_name=null (or empty string) to clear; clearing follows the same cooldown. Brand-impersonation patterns (PayPal, Apple, banks, etc.) are rejected with 400.
Inputs: alias_id (required), display_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Every tool targets a distinct resource or action: aliases, display names, destinations, domains, sending, and monitoring are cleanly separated. The potential overlap between update_alias and update_alias_display_name is explicitly disambiguated, and list_email_logs vs list_exposure_events serve clearly different purposes.
Most tools follow a verb_noun snake_case pattern (list_aliases, create_alias, delete_destination, send_email). Minor inconsistencies exist: get_dashboard_stats breaks the list_* convention, and add_destination vs create_alias use different verbs for the same kind of operation.
13 tools is well-scoped for an email alias management server. Each tool covers a meaningful part of the lifecycle without redundant or filler operations, and the count sits comfortably in the ideal range.
The server covers the full alias lifecycle (create, list, update, delete) plus display-name-specific updates, destination management, sending, and monitoring (stats, logs, exposure alerts). No obvious dead ends or critical missing operations for the core domain.
Maintenance
Related MCP Connectors
Private email aliases that forward to your inbox: create, find, edit and turn aliases off or on.
Send email, manage domains, templates, webhooks and broadcasts from your AI agent.
Send email, manage domains, templates, webhooks and broadcasts from your AI agent.
Give AI agents secure access to your email via private aliases with dedicated mailbox storage.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Migadu email hosting services through natural language, including creating mailboxes, setting up aliases, configuring autoresponders, and handling bulk operations efficiently.3533 PyPI17MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with the Inbound Email API to manage domains, endpoints, and email communications. Users can send or schedule emails, manage webhooks, and retrieve email threads through natural language commands.142Apache 2.0
- AlicenseCqualityCmaintenanceProvides AI assistants with access to PurelyMail's email management API, enabling user, domain, routing, and billing management through natural language.19181 npm14MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language email operations (send, search, read, manage) via IMAP/SMTP, with support for attachments, multiple mailboxes, and secure configuration.MIT