MCP server for sending SMTP email notifications
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add email-sender --env SMTP_HOST='<SMTP_HOST>' --env SMTP_USER='<SMTP_USER>' --env SMTP_PASS='<SMTP_PASS>' -- npx -y --quiet @agguy/email-sender-mcp@latest~/.codex/config.toml
[mcp_servers.email-sender]
command = "npx"
args = ["-y", "--quiet", "@agguy/email-sender-mcp@latest"]
env = { SMTP_HOST = "<SMTP_HOST>", SMTP_USER = "<SMTP_USER>", SMTP_PASS = "<SMTP_PASS>" }
# codex mcp add email-sender --env SMTP_HOST='<SMTP_HOST>' --env SMTP_USER='<SMTP_USER>' --env SMTP_PASS='<SMTP_PASS>' -- npx -y --quiet @agguy/email-sender-mcp@latest~/.cursor/mcp.json
{
"mcpServers": {
"email-sender": {
"command": "npx",
"args": [
"-y",
"--quiet",
"@agguy/email-sender-mcp@latest"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASS": "<SMTP_PASS>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"email-sender": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"--quiet",
"@agguy/email-sender-mcp@latest"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASS": "<SMTP_PASS>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"email-sender": {
"command": "npx",
"args": [
"-y",
"--quiet",
"@agguy/email-sender-mcp@latest"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASS": "<SMTP_PASS>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"email-sender": {
"command": "npx",
"args": [
"-y",
"--quiet",
"@agguy/email-sender-mcp@latest"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASS": "<SMTP_PASS>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"email-sender": {
"command": "npx",
"args": [
"-y",
"--quiet",
"@agguy/email-sender-mcp@latest"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASS": "<SMTP_PASS>"
}
}
}
}需要的环境变量
SMTP_HOSTSMTP_USERSMTP_PASS
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。