npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

email-doc-sender

v1.0.4

Published

MCP server for sending generated documents to email

Readme

Email Doc Sender MCP

一个基于 MCP (Model Context Protocol) 的本地服务器,为 AI 助手提供邮件发送能力。

功能特性

  • 📧 邮件发送: 通过 AI 助手发送邮件
  • 📄 多格式支持: Markdown、HTML、纯文本、附件
  • 🔒 安全可靠: 支持 TLS/SSL 加密传输
  • ⚙️ 灵活配置: 支持配置文件和环境变量
  • 🤖 智能判断: 自动检测内容格式

安装

Claude CLI (推荐)

claude mcp add email-doc-sender --scope user -- npx email-doc-sender@latest

全局安装

npm install -g email-doc-sender

从源码安装

git clone <repository-url>
cd email-doc-sender
npm install
npm run build

配置

配置文件

创建配置文件 ~/.email-doc-sender/config.json

{
  "host": "smtp.qq.com",
  "port": 587,
  "secure": false,
  "auth": {
    "user": "[email protected]",
    "pass": "授权码"
  },
  "from": "[email protected]"
}

环境变量 (可选,优先级更高)

  • EMAIL_SMTP_HOST - SMTP 服务器地址
  • EMAIL_SMTP_PORT - SMTP 端口
  • EMAIL_SMTP_SECURE - 是否使用 SSL (true/false)
  • EMAIL_SMTP_USER - 邮箱用户名
  • EMAIL_SMTP_PASS - 邮箱密码或授权码
  • EMAIL_FROM - 发件人邮箱地址

邮箱配置示例

QQ 邮箱

  • 获取授权码:设置 → 账户 → POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务 → 生成授权码
  • SMTP: smtp.qq.com:587, secure: false

163 邮箱

  • SMTP: smtp.163.com:465, secure: true

Gmail

Outlook / Microsoft 365

Outlook.com (个人账户)

| 参数 | 值 | |------|-----| | SMTP 服务器 | smtp-mail.outlook.com | | 端口 | 587 | | 加密方式 | STARTTLS (secure: false) |

Microsoft 365 / Office 365 (企业账户)

| 参数 | 值 | |------|-----| | SMTP 服务器 | smtp.office365.com | | 端口 | 587 | | 加密方式 | STARTTLS (secure: false) |

重要提示: 如果启用了双因素验证 (2FA),需要生成应用专用密码,使用应用密码而非账户密码。

126 / 163 邮箱

  • SMTP: smtp.163.com:465, secure: true

使用

配置完成后重启 Claude,然后:

# 发送文字
请把这段文字发送到 [email protected]

# 发送文件
请把 README.md 作为附件发送到 [email protected]

# 发送 Markdown
请把项目总结发送到 [email protected]

故障排查

  • 认证失败: 检查是否使用授权码,确认 SMTP 服务已开启
  • 连接超时: 检查网络和 SMTP 配置
  • 配置不生效: 环境变量优先级高于配置文件

开发

npm run dev    # 开发模式
npm run build  # 构建
npm test       # 测试

许可证

MIT