Skip to main content
Glama
tanwenxin

126 Email MCP Server

by tanwenxin

126 Email MCP Server

一个支持126邮箱SMTP服务的MCP (Model Context Protocol) 服务器,可以通过126邮箱安全地发送邮件。

功能特性

  • 支持126邮箱SMTP服务 (SSL加密)

  • 发送纯文本和HTML格式邮件

  • 支持抄送(CC)和密送(BCC)

  • SMTP连接验证

  • 环境变量配置

  • 调试模式

  • SSL/TLS安全连接

环境变量配置

复制 .env.example 文件为 .env 并填入你的配置:

cp .env.example .env

必需的环境变量:

  • EMAIL_USER: 你的126邮箱地址

  • EMAIL_PASSWORD: 你的126邮箱密码或应用专用密码

可选的环境变量:

  • DEBUG: 启用调试模式 (默认: false)

  • SMTP_HOST: SMTP服务器地址 (默认: smtp.126.com)

  • SMTP_PORT: SMTP端口 (默认: 465,SSL端口)

  • SMTP_SECURE: 是否使用SSL/TLS (默认: true,启用SSL)

  • FROM_NAME: 发件人显示名称

126邮箱设置

  1. 登录126邮箱

  2. 进入设置 -> POP3/SMTP/IMAP

  3. 开启SMTP服务

  4. 如果启用了两步验证,需要生成应用专用密码

可用工具

send_email

发送邮件

参数:

  • to (必需): 收件人邮箱地址

  • subject (必需): 邮件主题

  • text (可选): 纯文本内容

  • html (可选): HTML内容

  • cc (可选): 抄送地址,多个地址用逗号分隔

  • bcc (可选): 密送地址,多个地址用逗号分隔

verify_smtp_connection

验证SMTP连接

无需参数,用于测试SMTP服务器连接是否正常。

开发

# 安装依赖
npm install

# 开发模式运行
npm run dev

部署到Smithery

确保你的 smithery.yaml 配置正确,然后使用Smithery CLI部署。

注意事项

  • 确保126邮箱已开启SMTP服务

  • 如果使用两步验证,请使用应用专用密码

  • 建议在生产环境中使用环境变量管理敏感信息

  • 发送邮件时请遵守相关法律法规和邮箱服务商的使用条款

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/tanwenxin/126-email-mcp-server'

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