MCP 邮件通知服务
@fantasy-lotus
About MCP 邮件通知服务
基于Typescript实现的Notify MCP Server,支持Docker一键部署到remote|local
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp_email_ts": {
"command": "npx",
"args": [
"ts-node",
"src/index.ts"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP 邮件通知服务?
MCP 邮件通知服务是一个基于 Model Context Protocol (MCP) 的邮件发送工具,通过 Streamable HTTP 或 SSE (Server-Sent Events) 协议与客户端通信,并使用 SMTP 服务发送通知邮件。它支持 Docker 镜像一键部署,适合新手学习 MCP Server 或用于远程/本地邮件通知场景。
How to use MCP 邮件通知服务?
- 安装依赖:
npm install。2. 在项目根目录创建.env文件,配置 SMTP_USER、SMTP_PASS、SMTP_SERVICE、SMTP_HOST 等变量。3. 构建并启动:npm run build && npm start,或直接npx ts-node src/index.ts。Docker 部署可构建镜像:docker build -t yourname/mcp-email-docker .,然后运行容器:docker run -p 8080:8080 -e SMTP_USER=... yourname/mcp-email-docker。
Key features of MCP 邮件通知服务
- 接入 MCP Client 通过 MCP 协议发送邮件通知。
- 兼容旧 SSE 和新 Streamable HTTP 协议通信。
- 支持 Docker 一键部署,使用多阶段构建和 slim Node.js 环境。
- 通过 HTTP 而非 Stdio 进行远程或本地服务通信。
Use cases of MCP 邮件通知服务
- 从 MCP 客户端(如 AI 助手)发送邮件通知。
- 在 Docker 容器中部署远程邮件通知服务。
- 学习 MCP Server 开发与部署的入门项目。
FAQ from MCP 邮件通知服务
如何配置 SMTP 服务?
在 .env 文件中设置 SMTP_USER(邮箱账号)、SMTP_PASS(SMTP 授权码)、SMTP_SERVICE(如 QQ)、SMTP_HOST(如 smtp.qq.com),可选 PORT。
支持哪些通信协议?
本服务同时支持 SSE(GET /sse 建立连接)和 Streamable HTTP(POST /mcp)两种协议与 MCP 客户端通信。
需要哪些运行时依赖?
Node.js 环境,npm 包依赖包括 @modelcontextprotocol/sdk、nodemailer、zod、dotenv、express。
如何用 Docker 部署?
构建镜像:docker build -t yourname/mcp-email-docker .,运行容器时通过 -e 或 --env-file 传入环境变量,映射端口(如 8080:8080)。
邮件通知需要哪些参数?
MCP 调用时需传入 method(当前仅支持 "email")、to(收件人邮箱)、content(邮件内容)。
More Communication MCP servers
Modular Outlook MCP Server
ryakerMCP server for Claude to access Outlook data via Microsoft Graph API
MCP Teams Server
InditexTechAn MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to messages, mention members.
Mcp Telegram
dryeabMCP Server for Telegram
Teams Mcp
floriscornelMCP server providing comprehensive Microsoft Teams and Graph API access for AI assistants including messaging, search, and user management.
WhatsApp MCP Server
msaelicesWhatsapp MCP Server implemented in Python
Comments