Feedback

MCP 邮件通知服务

@fantasy-lotus Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
fantasy-lotus
Submitted by
Community
Quality
35
Stars
2

About MCP 邮件通知服务 Server

基于Typescript实现的Notify MCP Server,支持Docker一键部署到remote|local

MCP 邮件通知服务 is a MCP server in the Communication category listed in the AddMCP.net directory, published by fantasy-lotus. Supported transport: stdio. Runtime: node. The repository has 2 GitHub stars. Source code is hosted on github.com. Related topics: docker, email, mcp, mcp-server, notification.

Setup

{
    "mcpServers": {
        "mcp_email_ts": {
            "command": "npx",
            "args": [
                "ts-node",
                "src/index.ts"
            ]
        }
    }
}

MCP 邮件通知服务 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"
            ]
        }
    }
}

MCP 邮件通知服务 tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

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 邮件通知服务?

  1. 安装依赖: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 开发与部署的入门项目。

Frequently asked questions

1 如何配置 SMTP 服务?

在 .env 文件中设置 SMTP_USER(邮箱账号)、SMTP_PASS(SMTP 授权码)、SMTP_SERVICE(如 QQ)、SMTP_HOST(如 smtp.qq.com),可选 PORT。

2 支持哪些通信协议?

本服务同时支持 SSE(GET /sse 建立连接)和 Streamable HTTP(POST /mcp)两种协议与 MCP 客户端通信。

3 需要哪些运行时依赖?

Node.js 环境,npm 包依赖包括 @modelcontextprotocol/sdk、nodemailer、zod、dotenv、express。

4 如何用 Docker 部署?

构建镜像:docker build -t yourname/mcp-email-docker .,运行容器时通过 -e 或 --env-file 传入环境变量,映射端口(如 8080:8080)。

5 邮件通知需要哪些参数?

MCP 调用时需传入 method(当前仅支持 "email")、to(收件人邮箱)、content(邮件内容)。

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬