Real email and SMS for AI agents — send mail, receive verification codes, drive a real inbox.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agenticmail --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcp~/.codex/config.toml
[mcp_servers.agenticmail]
command = "npx"
args = ["-y", "@agenticmail/mcp"]
env = { AGENTICMAIL_API_KEY = "<AGENTICMAIL_API_KEY>", AGENTICMAIL_MASTER_KEY = "<AGENTICMAIL_MASTER_KEY>" }
# codex mcp add agenticmail --env AGENTICMAIL_API_KEY='<AGENTICMAIL_API_KEY>' --env AGENTICMAIL_MASTER_KEY='<AGENTICMAIL_MASTER_KEY>' -- npx -y @agenticmail/mcp~/.cursor/mcp.json
{
"mcpServers": {
"agenticmail": {
"command": "npx",
"args": [
"-y",
"@agenticmail/mcp"
],
"env": {
"AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
"AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agenticmail": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agenticmail/mcp"
],
"env": {
"AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
"AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agenticmail": {
"command": "npx",
"args": [
"-y",
"@agenticmail/mcp"
],
"env": {
"AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
"AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agenticmail": {
"command": "npx",
"args": [
"-y",
"@agenticmail/mcp"
],
"env": {
"AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
"AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agenticmail": {
"command": "npx",
"args": [
"-y",
"@agenticmail/mcp"
],
"env": {
"AGENTICMAIL_API_KEY": "<AGENTICMAIL_API_KEY>",
"AGENTICMAIL_MASTER_KEY": "<AGENTICMAIL_MASTER_KEY>"
}
}
}
}需要的环境变量
AGENTICMAIL_API_KEYAGENTICMAIL_MASTER_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。