Skip to main content
Glama
emailalias

@emailalias/mcp

by emailalias

@emailalias/mcp

用于 EmailAlias.io REST API 的 MCP 服务器。让你能够通过自然语言Claude DesktopCursorZedCline 以及任何其他兼容 MCP 的 AI 助手上创建、管理和监控电子邮件别名。

“为 Substack 创建一个新别名,标签设为 'newsletter'” “禁用 amazon 别名,我收到垃圾邮件了” “显示本周被标记为可疑发件人的别名”

API 访问是高级 (Premium) 功能。请从仪表板的 Settings → API Keys 生成 API 密钥。

安装

Claude Desktop

编辑你的配置文件:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.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

配置

环境变量

必需

默认值

说明

EMAILALIAS_API_KEY

仅限高级版。以 ea_live_ 开头。

EMAILALIAS_BASE_URL

https://emailalias.io

用于暂存环境或自托管的覆盖设置。

可用工具

工具

功能

list_aliases

获取所有别名及其转发/拦截计数

create_alias

创建随机/自定义/带标签的别名

update_alias

切换激活状态、重命名标签

update_alias_display_name

更改发件人显示名称(高级功能,24小时冷却)

delete_alias

永久删除别名

list_available_domains

系统 + 可用的自定义域名

list_destinations

主收件箱 + 已验证的转发收件箱

add_destination

注册新的转发目的地(触发验证邮件)

delete_destination

移除目的地(如果仍有别名在使用则会拦截)

send_email

通过别名发送邮件(高级功能)

get_dashboard_stats

账户范围内的统计计数

list_email_logs

分页转发日志(最近 90 天)

list_exposure_events

可疑发件人警报

示例提示词 (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 这样具有破坏性的操作之前,请务必审查模型提出的建议。

链接

许可证

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    B
    maintenance
    Enables AI assistants to manage Migadu email hosting services through natural language, including creating mailboxes, setting up aliases, configuring autoresponders, and handling bulk operations efficiently.
    35
    13
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Enables AI assistants to manage temporary email addresses via the mail.tm API, including creating disposable inboxes, reading messages, and managing accounts.
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Provides AI assistants with access to PurelyMail's email management API, enabling user, domain, routing, and billing management through natural language.
    20
    7
    MIT

View all related MCP servers

Related MCP Connectors

  • Email for AI agents — send, receive as a webhook, manage domains, templates, routing.

  • AI email automation, follow-ups, training, previews, and mailbox troubleshooting.

  • Streamline your Attio workflows using natural language to search, create, update, and organize com…

View all MCP Connectors

Latest Blog Posts

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/emailalias/emailalias-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server